Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fe2ca14 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - More coverage for odd-number channels elimination for HDMI



The commit ad09fc9d didn't cover the
case for Intel and Nvidia HDMIs, where hdmi_pcm_open() is called.
Put the hw_constraint there, too.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 639cef0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -850,6 +850,9 @@ static int hdmi_pcm_open(struct hda_pcm_stream *hinfo,
	runtime->hw.channels_max = hinfo->channels_max;
	runtime->hw.formats = hinfo->formats;
	runtime->hw.rates = hinfo->rates;

	snd_pcm_hw_constraint_step(substream->runtime, 0,
				   SNDRV_PCM_HW_PARAM_CHANNELS, 2);
	return 0;
}