diff mbox

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

Message ID 9d3aa456eb4d753c38fc642bf0a8cd5fdc5af54a.1413306131.git.jsarha@ti.com (mailing list archive)
State Accepted
Commit 74d813cf37c210e94d155b0c19598fe269b8f78c
Headers show

Commit Message

Jyri Sarha Oct. 14, 2014, 5:29 p.m. UTC
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 <jsarha@ti.com>
---
 sound/soc/codecs/hdmi.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown Oct. 15, 2014, 10:25 a.m. UTC | #1
On Tue, Oct 14, 2014 at 08:29:26PM +0300, Jyri Sarha wrote:
> 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.

Applied, thanks.  Please use subject lines matching the style for the
subsystem (no codecs/).
diff mbox

Patch

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",