diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-24 10:05:04 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:29:45 -0500 |
commit | b2ec642362eef10f660e2b857dda12e2d61e0198 (patch) | |
tree | d8370e3a0cdaef7d2000c9576b8dce06837b4907 /sound | |
parent | 606ad75fb5372c0edb5ee6276c8e29fcb525f3e1 (diff) |
[ALSA] hda-codec - Fix channel mode helper
Modules: HDA Codec driver
Fix the channel mode helper (for put callback).
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 402ce00c6a13..5ead2a3d05ad 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -1771,7 +1771,7 @@ int snd_hda_ch_mode_put(struct hda_codec *codec, struct snd_ctl_elem_value *ucon | |||
1771 | 1771 | ||
1772 | mode = ucontrol->value.enumerated.item[0]; | 1772 | mode = ucontrol->value.enumerated.item[0]; |
1773 | snd_assert(mode < num_chmodes, return -EINVAL); | 1773 | snd_assert(mode < num_chmodes, return -EINVAL); |
1774 | if (*max_channelsp && ! codec->in_resume) | 1774 | if (*max_channelsp == chmode[mode].channels && ! codec->in_resume) |
1775 | return 0; | 1775 | return 0; |
1776 | /* change the current channel setting */ | 1776 | /* change the current channel setting */ |
1777 | *max_channelsp = chmode[mode].channels; | 1777 | *max_channelsp = chmode[mode].channels; |