diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-28 08:35:20 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 17:30:17 +0100 |
commit | a3601560496d7b46d2d1187169824d11570ff63a (patch) | |
tree | abcb52cdea5f118815994895b2375ad000fc4d24 /sound/pci/oxygen/virtuoso.c | |
parent | 1e821dd2763c97df1a0a451e553d218cb8886cd7 (diff) |
[ALSA] oxygen: add front panel controls
Add mixer controls for the front panel AC97 codec.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/virtuoso.c')
-rw-r--r-- | sound/pci/oxygen/virtuoso.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index 23bfab448844..2e1a6996fa86 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c @@ -247,9 +247,11 @@ static void mute_ac97_ctl(struct oxygen *chip, unsigned int control) } } -static void xonar_ac97_switch_hook(struct oxygen *chip, +static void xonar_ac97_switch_hook(struct oxygen *chip, unsigned int codec, unsigned int reg, int mute) { + if (codec != 0) + return; /* line-in is exclusive */ switch (reg) { case AC97_LINE: |