aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-01-14 03:42:27 -0500
committerTakashi Iwai <tiwai@suse.de>2011-01-14 03:42:27 -0500
commitad09fc9d2156f3d37537b34418a6b79309013d33 (patch)
treee8e74b2d03c57802885f4487beb9d19eae615cf6 /sound
parent5870112021fb38e73b25dad3baec4ca0819c594a (diff)
ALSA: hda - Suppress the odd number of channels for HDMI
It looks like that HDMI codecs don't support the odd number of channels although HD-audio spec doesn't have the restriction. Add the hw_constraint to limit to only the even number of channels. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_hdmi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index f29b97b5de8f..2d288793ceb3 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1238,6 +1238,9 @@ static int simple_playback_pcm_open(struct hda_pcm_stream *hinfo,
1238 snd_pcm_hw_constraint_list(substream->runtime, 0, 1238 snd_pcm_hw_constraint_list(substream->runtime, 0,
1239 SNDRV_PCM_HW_PARAM_CHANNELS, 1239 SNDRV_PCM_HW_PARAM_CHANNELS,
1240 hw_constraints_channels); 1240 hw_constraints_channels);
1241 } else {
1242 snd_pcm_hw_constraint_step(substream->runtime, 0,
1243 SNDRV_PCM_HW_PARAM_CHANNELS, 2);
1241 } 1244 }
1242 1245
1243 return snd_hda_multi_out_dig_open(codec, &spec->multiout); 1246 return snd_hda_multi_out_dig_open(codec, &spec->multiout);