diff options
author | Wang Xingchao <xingchao.wang@intel.com> | 2012-09-05 22:02:38 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-06 02:50:35 -0400 |
commit | 2d7e887cbba8272a46c42d228d3ffd9a2de04168 (patch) | |
tree | a752f8a107496729af3952711f4a995f41dab1ee | |
parent | 433968da4d93a194b79da552f4ca707f979ef33b (diff) |
ALSA: HDMI - Setup channel mapping for non_pcm audio
For HBR stream test, use straight channel mapping way.
when switched back to "speaker-test -c8", even the audio
infoframe is up-to-date, there should be correct channel mapping setup.
Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index a6835bd9d9b5..5361298be4d0 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -780,6 +780,11 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec, int pin_idx, | |||
780 | hdmi_fill_audio_infoframe(codec, pin_nid, | 780 | hdmi_fill_audio_infoframe(codec, pin_nid, |
781 | ai.bytes, sizeof(ai)); | 781 | ai.bytes, sizeof(ai)); |
782 | hdmi_start_infoframe_trans(codec, pin_nid); | 782 | hdmi_start_infoframe_trans(codec, pin_nid); |
783 | } else { | ||
784 | /* For non-pcm audio switch, setup new channel mapping | ||
785 | * accordingly */ | ||
786 | if (per_cvt->non_pcm != non_pcm) | ||
787 | hdmi_setup_channel_mapping(codec, pin_nid, cvt_nid, non_pcm, ca); | ||
783 | } | 788 | } |
784 | 789 | ||
785 | per_cvt->non_pcm = non_pcm; | 790 | per_cvt->non_pcm = non_pcm; |