pcm/kernel: Add DSD formats silence patterns
PATCH 1/1 pcm/kernel: Add DSD formats silence patterns
This patch adds the silence patterns for the DSD sample formats, kernel side.
--- sound/core/pcm_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/core/pcm_misc.c +2 -2
@@ -142,11 +142,11 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = { }, [SNDRV_PCM_FORMAT_DSD_U8] = { .width = 8, .phys = 8, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69 }, }, [SNDRV_PCM_FORMAT_DSD_U16_LE] = { .width = 16, .phys = 16, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69, 0x69 }, }, /* FIXME: the following three formats are not defined properly yet */ [SNDRV_PCM_FORMAT_MPEG] = {
Signature · 1 line
1.9.3
At Sun, 24 Aug 2014 10:04:08 +0200,
Quoted 4 lines · Jurgen Kramer
This patch adds the silence patterns for the DSD sample formats, kernel side.
Signed-off-by Jurgen Kramer <[email protected]>
A similar patch has been already submitted and merged :)
thanks,
Takashi
Quoted 30 lines
--- sound/core/pcm_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/core/pcm_misc.c +2
-2@@ -142,11 +142,11 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = { }, [SNDRV_PCM_FORMAT_DSD_U8] = { .width = 8, .phys = 8, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69 }, }, [SNDRV_PCM_FORMAT_DSD_U16_LE] = { .width = 16, .phys = 16, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69, 0x69 }, }, /* FIXME: the following three formats are not defined properly yet */ [SNDRV_PCM_FORMAT_MPEG] = {Signature · 6 lines
1.9.3 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 9 lines · Takashi Iwai
At Sun, 24 Aug 2014 10:04:08 +0200,
Quoted 4 lines · Jurgen Kramer
This patch adds the silence patterns for the DSD sample formats, kernel side.
Signed-off-by Jurgen Kramer <[email protected]>A similar patch has been already submitted and merged :)
OK thanks, must have missed it.
BTW I could not find it in your git repo or current kernel git, where is is hiding? :-)
Jurgen
Quoted 39 lines
thanks,
Takashi
Quoted 30 lines
--- sound/core/pcm_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/core/pcm_misc.c +2
-2@@ -142,11 +142,11 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = { }, [SNDRV_PCM_FORMAT_DSD_U8] = { .width = 8, .phys = 8, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69 }, }, [SNDRV_PCM_FORMAT_DSD_U16_LE] = { .width = 16, .phys = 16, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69, 0x69 }, }, /* FIXME: the following three formats are not defined properly yet */ [SNDRV_PCM_FORMAT_MPEG] = {Signature · 6 lines
1.9.3 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Mon, 25 Aug 2014 10:18:10 +0200,
Quoted 7 lines · Jurgen Kramer
Quoted 5 lines · Takashi Iwai
At Sun, 24 Aug 2014 10:04:08 +0200,
Quoted 3 lines · Jurgen Kramer
This patch adds the silence patterns for the DSD sample formats, kernel side.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Jurgen Kramer <[email protected]>A similar patch has been already submitted and merged :)
OK thanks, must have missed it.
BTW I could not find it in your git repo or current kernel git, where is is hiding? :-)
The git commit wasn't published until today, as I've watched any review reaction. Now it's there.
Takashi
Quoted 44 lines
Jurgen
Quoted 39 lines
thanks,
Takashi
Quoted 30 lines
--- sound/core/pcm_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/core/pcm_misc.c +2
-2@@ -142,11 +142,11 @@ static struct pcm_format_data pcm_formats[(INT)SNDRV_PCM_FORMAT_LAST+1] = { }, [SNDRV_PCM_FORMAT_DSD_U8] = { .width = 8, .phys = 8, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69 }, }, [SNDRV_PCM_FORMAT_DSD_U16_LE] = { .width = 16, .phys = 16, .le = 1, .signd = 0, - .silence = {}, + .silence = { 0x69, 0x69 }, }, /* FIXME: the following three formats are not defined properly yet */ [SNDRV_PCM_FORMAT_MPEG] = {Signature · 6 lines
1.9.3 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel