diff options
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index a9d78e275138..d285904cdb64 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -739,39 +739,6 @@ static int patch_ad1981(struct hda_codec *codec) | |||
739 | * E/F quad mic array | 739 | * E/F quad mic array |
740 | */ | 740 | */ |
741 | 741 | ||
742 | #ifdef ENABLE_AD_STATIC_QUIRKS | ||
743 | static int ad198x_ch_mode_info(struct snd_kcontrol *kcontrol, | ||
744 | struct snd_ctl_elem_info *uinfo) | ||
745 | { | ||
746 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | ||
747 | struct ad198x_spec *spec = codec->spec; | ||
748 | return snd_hda_ch_mode_info(codec, uinfo, spec->channel_mode, | ||
749 | spec->num_channel_mode); | ||
750 | } | ||
751 | |||
752 | static int ad198x_ch_mode_get(struct snd_kcontrol *kcontrol, | ||
753 | struct snd_ctl_elem_value *ucontrol) | ||
754 | { | ||
755 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | ||
756 | struct ad198x_spec *spec = codec->spec; | ||
757 | return snd_hda_ch_mode_get(codec, ucontrol, spec->channel_mode, | ||
758 | spec->num_channel_mode, spec->multiout.max_channels); | ||
759 | } | ||
760 | |||
761 | static int ad198x_ch_mode_put(struct snd_kcontrol *kcontrol, | ||
762 | struct snd_ctl_elem_value *ucontrol) | ||
763 | { | ||
764 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | ||
765 | struct ad198x_spec *spec = codec->spec; | ||
766 | int err = snd_hda_ch_mode_put(codec, ucontrol, spec->channel_mode, | ||
767 | spec->num_channel_mode, | ||
768 | &spec->multiout.max_channels); | ||
769 | if (err >= 0 && spec->need_dac_fix) | ||
770 | spec->multiout.num_dacs = spec->multiout.max_channels / 2; | ||
771 | return err; | ||
772 | } | ||
773 | #endif /* ENABLE_AD_STATIC_QUIRKS */ | ||
774 | |||
775 | static int ad1988_auto_smux_enum_info(struct snd_kcontrol *kcontrol, | 742 | static int ad1988_auto_smux_enum_info(struct snd_kcontrol *kcontrol, |
776 | struct snd_ctl_elem_info *uinfo) | 743 | struct snd_ctl_elem_info *uinfo) |
777 | { | 744 | { |