From: Kuninori Morimoto Date: Wed, 7 May 2025 05:00:12 +0000 (+0000) Subject: ALSA: usb: mixer_quirks: use snd_kcontrol_chip() X-Git-Tag: v6.16-rc1~13^2~43 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f0fe4663cb72f443caac3b348e3827ff64d2b7c9;p=linux-block.git ALSA: usb: mixer_quirks: use snd_kcontrol_chip() We can use snd_kcontrol_chip(). Let's use it. Signed-off-by: Kuninori Morimoto Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/87h61xaucj.wl-kuninori.morimoto.gx@renesas.com --- diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 01091c3a83fc..2cabf3bf63d7 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -2000,7 +2000,7 @@ static int realtek_hda_get(struct snd_usb_audio *chip, u32 cmd, u32 *value) static int realtek_ctl_connector_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { - struct usb_mixer_elem_info *cval = kcontrol->private_data; + struct usb_mixer_elem_info *cval = snd_kcontrol_chip(kcontrol); struct snd_usb_audio *chip = cval->head.mixer->chip; u32 pv = kcontrol->private_value; u32 node_id = pv & 0xff;