From: Sugar Zhang Date: Thu, 9 Jul 2015 08:17:50 +0000 (+0800) Subject: ASoC: hdmi_spdif: support format SNDRV_PCM_FMTBIT_S24_LE X-Git-Tag: firefly_0821_release~3939 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;ds=sidebyside;h=0bf4fb5a1f25649d467869c4fac8d4c927a423f6;p=firefly-linux-kernel-4.4.55.git ASoC: hdmi_spdif: support format SNDRV_PCM_FMTBIT_S24_LE because of DMA_SLAVE_BUSWIDTH_4_BYTES, we support SNDRV_PCM_FMTBIT_S24_LE which store data in low three bytes. not support SNDRV_PCM_FMTBIT_S24_3LE Signed-off-by: Sugar Zhang --- diff --git a/sound/soc/codecs/hdmi_spdif.c b/sound/soc/codecs/hdmi_spdif.c index a820a8e13f98..792263cffa19 100755 --- a/sound/soc/codecs/hdmi_spdif.c +++ b/sound/soc/codecs/hdmi_spdif.c @@ -26,7 +26,7 @@ #define DRV_NAME "spdif-dit" #define STUB_RATES SNDRV_PCM_RATE_8000_192000 -#define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE +#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE) static struct snd_soc_codec_driver soc_codec_spdif_dit;