[alsa-devel] [PATCH] pcm/kernel: Add DSD formats silence patterns

Takashi Iwai tiwai at suse.de
Mon Aug 25 09:23:15 CEST 2014


At Sun, 24 Aug 2014 10:04:08 +0200,
Jurgen Kramer wrote:
> 
> This patch adds the silence patterns for the DSD sample formats, kernel side.
> 
> Signed-off-by: Jurgen Kramer <gtmkramer at xs4all.nl>

A similar patch has been already submitted and merged :)


thanks,

Takashi

> ---
>  sound/core/pcm_misc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/core/pcm_misc.c b/sound/core/pcm_misc.c
> index 4560ca0..2c6fd80 100644
> --- a/sound/core/pcm_misc.c
> +++ b/sound/core/pcm_misc.c
> @@ -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] = {
> -- 
> 1.9.3
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


More information about the Alsa-devel mailing list