Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bac84ed authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai
Browse files

ALSA: virtuoso: fix Xonar DS input switches



Use the correct number, register bits, and names for the input switches.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent da0dab5e
Loading
Loading
Loading
Loading
+11 −1
Original line number Original line Diff line number Diff line
@@ -29,6 +29,13 @@
 * GPIO 6 -> route input jack to input 1/2 (1/0)
 * GPIO 6 -> route input jack to input 1/2 (1/0)
 * GPIO 7 -> enable output to speakers
 * GPIO 7 -> enable output to speakers
 * GPIO 8 -> enable output to speakers
 * GPIO 8 -> enable output to speakers
 *
 * WM8766:
 *
 * input 1 <- line
 * input 2 <- mic
 * input 3 <- front mic
 * input 4 <- aux
 */
 */


#include <linux/pci.h>
#include <linux/pci.h>
@@ -896,7 +903,10 @@ static const struct snd_kcontrol_new ds_controls[] = {
		.put = wm8776_input_mux_put,
		.put = wm8776_input_mux_put,
		.private_value = 1 << 1,
		.private_value = 1 << 1,
	},
	},
	WM8776_BIT_SWITCH("Aux", WM8776_ADCMUX, 1 << 2, 0, 0),
	WM8776_BIT_SWITCH("Front Mic Capture Switch",
			  WM8776_ADCMUX, 1 << 2, 0, 0),
	WM8776_BIT_SWITCH("Aux Capture Switch",
			  WM8776_ADCMUX, 1 << 3, 0, 0),
	{
	{
		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
		.name = "ADC Filter Capture Enum",
		.name = "ADC Filter Capture Enum",