diff options
| -rw-r--r-- | sound/pci/au88x0/au88x0_mixer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/pci/au88x0/au88x0_mixer.c b/sound/pci/au88x0/au88x0_mixer.c index 557c782ae4fc..fa13efbebdaf 100644 --- a/sound/pci/au88x0/au88x0_mixer.c +++ b/sound/pci/au88x0/au88x0_mixer.c | |||
| @@ -10,6 +10,15 @@ | |||
| 10 | #include <sound/core.h> | 10 | #include <sound/core.h> |
| 11 | #include "au88x0.h" | 11 | #include "au88x0.h" |
| 12 | 12 | ||
| 13 | static int remove_ctl(struct snd_card *card, const char *name) | ||
| 14 | { | ||
| 15 | struct snd_ctl_elem_id id; | ||
| 16 | memset(&id, 0, sizeof(id)); | ||
| 17 | strcpy(id.name, name); | ||
| 18 | id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; | ||
| 19 | return snd_ctl_remove_id(card, &id); | ||
| 20 | } | ||
| 21 | |||
| 13 | static int __devinit snd_vortex_mixer(vortex_t * vortex) | 22 | static int __devinit snd_vortex_mixer(vortex_t * vortex) |
| 14 | { | 23 | { |
| 15 | struct snd_ac97_bus *pbus; | 24 | struct snd_ac97_bus *pbus; |
| @@ -28,5 +37,7 @@ static int __devinit snd_vortex_mixer(vortex_t * vortex) | |||
| 28 | ac97.scaps = AC97_SCAP_NO_SPDIF; | 37 | ac97.scaps = AC97_SCAP_NO_SPDIF; |
| 29 | err = snd_ac97_mixer(pbus, &ac97, &vortex->codec); | 38 | err = snd_ac97_mixer(pbus, &ac97, &vortex->codec); |
| 30 | vortex->isquad = ((vortex->codec == NULL) ? 0 : (vortex->codec->ext_id&0x80)); | 39 | vortex->isquad = ((vortex->codec == NULL) ? 0 : (vortex->codec->ext_id&0x80)); |
| 40 | remove_ctl(vortex->card, "Master Mono Playback Volume"); | ||
| 41 | remove_ctl(vortex->card, "Master Mono Playback Switch"); | ||
| 31 | return err; | 42 | return err; |
| 32 | } | 43 | } |
