Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: usb: mixer_quirks: use snd_kcontrol_chip()

We can use snd_kcontrol_chip(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/87h61xaucj.wl-kuninori.morimoto.gx@renesas.com

authored by

Kuninori Morimoto and committed by
Takashi Iwai
f0fe4663 a25ed230

+1 -1
+1 -1
sound/usb/mixer_quirks.c
··· 2000 2000 static int realtek_ctl_connector_get(struct snd_kcontrol *kcontrol, 2001 2001 struct snd_ctl_elem_value *ucontrol) 2002 2002 { 2003 - struct usb_mixer_elem_info *cval = kcontrol->private_data; 2003 + struct usb_mixer_elem_info *cval = snd_kcontrol_chip(kcontrol); 2004 2004 struct snd_usb_audio *chip = cval->head.mixer->chip; 2005 2005 u32 pv = kcontrol->private_value; 2006 2006 u32 node_id = pv & 0xff;