diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-28 02:35:20 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:30:17 -0500 |
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) | |||
247 | } | 247 | } |
248 | } | 248 | } |
249 | 249 | ||
250 | static void xonar_ac97_switch_hook(struct oxygen *chip, | 250 | static void xonar_ac97_switch_hook(struct oxygen *chip, unsigned int codec, |
251 | unsigned int reg, int mute) | 251 | unsigned int reg, int mute) |
252 | { | 252 | { |
253 | if (codec != 0) | ||
254 | return; | ||
253 | /* line-in is exclusive */ | 255 | /* line-in is exclusive */ |
254 | switch (reg) { | 256 | switch (reg) { |
255 | case AC97_LINE: | 257 | case AC97_LINE: |