From 11864b4b84194b459fc20e0ec47906885bddb12e Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Wed, 9 Apr 2008 09:16:14 +0200 Subject: [ALSA] virtuoso: correctly switch input jack on Xonar DX When selecting the capture source on the Xonar DX, the input jack must be routed to either the line input or the microphone input by setting a GPIO pin. This requires an additional callback so that the model driver can hook into the toggling of AC97 switches. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai --- sound/pci/oxygen/oxygen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound/pci/oxygen/oxygen.h') diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h index d53c18c6fcd8..7efbf54bc4ec 100644 --- a/sound/pci/oxygen/oxygen.h +++ b/sound/pci/oxygen/oxygen.h @@ -98,6 +98,8 @@ struct oxygen_model { void (*update_dac_volume)(struct oxygen *chip); void (*update_dac_mute)(struct oxygen *chip); void (*gpio_changed)(struct oxygen *chip); + void (*ac97_switch)(struct oxygen *chip, + unsigned int reg, unsigned int mute); size_t model_data_size; unsigned int pcm_dev_cfg; u8 dac_channels; -- cgit v1.2.3-55-g7522