projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639cef0
)
ALSA: hda - More coverage for odd-number channels elimination for HDMI
author
Takashi Iwai
<tiwai@suse.de>
Fri, 14 Jan 2011 09:33:26 +0000
(10:33 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 14 Jan 2011 09:33:26 +0000
(10:33 +0100)
The commit
ad09fc9d2156f3d37537b34418a6b79309013d33
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: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_hdmi.c
b/sound/pci/hda/patch_hdmi.c
index 5980552f59704fc739eee30b27a27ce1b84b1287..2d5b83fa8d24fcf164e69f845fb1bc1c8f06a726 100644
(file)
--- a/
sound/pci/hda/patch_hdmi.c
+++ b/
sound/pci/hda/patch_hdmi.c
@@
-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;
}