aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/patch_intelhdmi.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c
index c17feacab754..6be5ca44a83b 100644
--- a/sound/pci/hda/patch_intelhdmi.c
+++ b/sound/pci/hda/patch_intelhdmi.c
@@ -543,30 +543,30 @@ static void intel_hdmi_unsol_event(struct hda_codec *codec, unsigned int res)
543 * Callbacks 543 * Callbacks
544 */ 544 */
545 545
546static int intel_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, 546static int intel_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo,
547 struct hda_codec *codec, 547 struct hda_codec *codec,
548 unsigned int stream_tag,
549 unsigned int format,
548 struct snd_pcm_substream *substream) 550 struct snd_pcm_substream *substream)
549{ 551{
550 struct intel_hdmi_spec *spec = codec->spec; 552 hdmi_set_channel_count(codec, cvt_nid,
553 substream->runtime->channels);
551 554
552 hdmi_stop_infoframe_trans(codec, pin_nid); 555 hdmi_setup_audio_infoframe(codec, cvt_nid, substream);
553 556
554 snd_hda_codec_cleanup_stream(codec, hinfo->nid); 557 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format);
555 return 0; 558 return 0;
556} 559}
557 560
558static int intel_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo, 561static int intel_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo,
559 struct hda_codec *codec, 562 struct hda_codec *codec,
560 unsigned int stream_tag,
561 unsigned int format,
562 struct snd_pcm_substream *substream) 563 struct snd_pcm_substream *substream)
563{ 564{
564 hdmi_set_channel_count(codec, cvt_nid, 565 struct intel_hdmi_spec *spec = codec->spec;
565 substream->runtime->channels);
566 566
567 hdmi_setup_audio_infoframe(codec, cvt_nid, substream); 567 hdmi_stop_infoframe_trans(codec, pin_nid);
568 568
569 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); 569 snd_hda_codec_cleanup_stream(codec, hinfo->nid);
570 return 0; 570 return 0;
571} 571}
572 572