Skip to content

Commit

Permalink
ALSA: HDMI - Setup channel mapping for non_pcm audio
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Xingchao authored and Takashi Iwai committed Sep 6, 2012
1 parent 433968d commit 2d7e887
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/pci/hda/patch_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec, int pin_idx,
hdmi_fill_audio_infoframe(codec, pin_nid,
ai.bytes, sizeof(ai));
hdmi_start_infoframe_trans(codec, pin_nid);
} else {
/* For non-pcm audio switch, setup new channel mapping
* accordingly */
if (per_cvt->non_pcm != non_pcm)
hdmi_setup_channel_mapping(codec, pin_nid, cvt_nid, non_pcm, ca);
}

per_cvt->non_pcm = non_pcm;
Expand Down

0 comments on commit 2d7e887

Please sign in to comment.