diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2010-08-03 13:28:57 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-08-03 12:53:27 +0200 |
commit | 32c168c892e2c6936c714d1653ba5e19e07d5c26 (patch) | |
tree | 5d00d0d7b345da9285ea26be1787f0829b9eee3e /sound/pci/hda/hda_codec.c | |
parent | 68c18697910fdcacea36bd58d2d3d8febfa199a2 (diff) | |
download | blackbird-op-linux-32c168c892e2c6936c714d1653ba5e19e07d5c26.tar.gz blackbird-op-linux-32c168c892e2c6936c714d1653ba5e19e07d5c26.zip |
ALSA: hda - Set Stream Type in Stream Format according to AES0
Set bit 15 (Stream Type) of HDA Stream Format to 1 (Non-PCM) when IEC958
channel status bit 1 (AES0 & 0x02) is set to 1 (non-audio).
This is a prequisite for HDMI HBR passthrough.
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index d9d1c91dfd1b..bd8d7a63d7fe 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -3051,7 +3051,8 @@ static struct hda_rate_tbl rate_bits[] = { unsigned int snd_hda_calc_stream_format(unsigned int rate, unsigned int channels, unsigned int format, - unsigned int maxbps) + unsigned int maxbps, + unsigned short spdif_ctls) { int i; unsigned int val = 0; @@ -3095,6 +3096,9 @@ unsigned int snd_hda_calc_stream_format(unsigned int rate, return 0; } + if (spdif_ctls & AC_DIG1_NONAUDIO) + val |= 0x8000; + return val; } EXPORT_SYMBOL_HDA(snd_hda_calc_stream_format); |