[PATCH v6 07/18] ASoC: codecs/hdmi: Mark the maximum significant bits to HDMI codec

From
Jyri Sarha <hidden>
Date
2014-10-14 17:29:26
Also in
alsa-devel, linux-omap
Reply to
Jyri Sarha, 2014-10-14
HDMI audio can not have more than 24 bits even if on i2s bus there
would be 32 bit samples. Mark this by adding .sig_bits = 24 to
playback stream definition.

Signed-off-by: Jyri Sarha <redacted>
---
 sound/soc/codecs/hdmi.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/hdmi.c b/sound/soc/codecs/hdmi.c
index 1087fd5..2a52b90 100644
--- a/sound/soc/codecs/hdmi.c
+++ b/sound/soc/codecs/hdmi.c
@@ -47,6 +47,7 @@ static struct snd_soc_dai_driver hdmi_codec_dai = {
 			SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE |
 			SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE,
+		.sig_bits = 24,
 	},
 	.capture = {
 		.stream_name = "Capture",
-- 
1.7.9.5
Thread (21 messages) 21 messages, 2 authors, last reply 2014-10-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help