Skip to content

Commit f0fe466

Browse files
morimototiwai
authored andcommitted
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
1 parent a25ed23 commit f0fe466

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/usb/mixer_quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ static int realtek_hda_get(struct snd_usb_audio *chip, u32 cmd, u32 *value)
20002000
static int realtek_ctl_connector_get(struct snd_kcontrol *kcontrol,
20012001
struct snd_ctl_elem_value *ucontrol)
20022002
{
2003-
struct usb_mixer_elem_info *cval = kcontrol->private_data;
2003+
struct usb_mixer_elem_info *cval = snd_kcontrol_chip(kcontrol);
20042004
struct snd_usb_audio *chip = cval->head.mixer->chip;
20052005
u32 pv = kcontrol->private_value;
20062006
u32 node_id = pv & 0xff;

0 commit comments

Comments
 (0)