diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index acfb64534bf0..913955895094 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -1779,30 +1779,19 @@ static int build_cs421x_output(struct hda_codec *codec) | |||
1779 | struct auto_pin_cfg *cfg = &spec->autocfg; | 1779 | struct auto_pin_cfg *cfg = &spec->autocfg; |
1780 | struct snd_kcontrol *kctl; | 1780 | struct snd_kcontrol *kctl; |
1781 | int err; | 1781 | int err; |
1782 | char *name = "HP/Speakers"; | 1782 | char *name = "Master"; |
1783 | 1783 | ||
1784 | fix_volume_caps(codec, dac); | 1784 | fix_volume_caps(codec, dac); |
1785 | if (!spec->vmaster_sw) { | ||
1786 | err = add_vmaster(codec, dac); | ||
1787 | if (err < 0) | ||
1788 | return err; | ||
1789 | } | ||
1790 | 1785 | ||
1791 | err = add_mute(codec, name, 0, | 1786 | err = add_mute(codec, name, 0, |
1792 | HDA_COMPOSE_AMP_VAL(dac, 3, 0, HDA_OUTPUT), 0, &kctl); | 1787 | HDA_COMPOSE_AMP_VAL(dac, 3, 0, HDA_OUTPUT), 0, &kctl); |
1793 | if (err < 0) | 1788 | if (err < 0) |
1794 | return err; | 1789 | return err; |
1795 | err = snd_ctl_add_slave(spec->vmaster_sw, kctl); | ||
1796 | if (err < 0) | ||
1797 | return err; | ||
1798 | 1790 | ||
1799 | err = add_volume(codec, name, 0, | 1791 | err = add_volume(codec, name, 0, |
1800 | HDA_COMPOSE_AMP_VAL(dac, 3, 0, HDA_OUTPUT), 0, &kctl); | 1792 | HDA_COMPOSE_AMP_VAL(dac, 3, 0, HDA_OUTPUT), 0, &kctl); |
1801 | if (err < 0) | 1793 | if (err < 0) |
1802 | return err; | 1794 | return err; |
1803 | err = snd_ctl_add_slave(spec->vmaster_vol, kctl); | ||
1804 | if (err < 0) | ||
1805 | return err; | ||
1806 | 1795 | ||
1807 | if (cfg->speaker_outs) { | 1796 | if (cfg->speaker_outs) { |
1808 | err = snd_hda_ctl_add(codec, 0, | 1797 | err = snd_hda_ctl_add(codec, 0, |