mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
ALSA: usb/mixer - use get_iface_desc() rather than direct structure
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
1 parent
f09d045e2a
commit
ca4c2adaf2
1 file changed
+1
-1
+1
-1
@@ -2055,7 +2055,7 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
|
||||
}
|
||||
|
||||
host_iface = &usb_ifnum_to_if(chip->dev, ctrlif)->altsetting[0];
|
||||
mixer->protocol = host_iface->desc.bInterfaceProtocol;
|
||||
mixer->protocol = get_iface_desc(host_iface)->bInterfaceProtocol;
|
||||
|
||||
if ((err = snd_usb_mixer_controls(mixer)) < 0 ||
|
||||
(err = snd_usb_mixer_status_create(mixer)) < 0)
|
||||
|
||||
Reference in new issue
Block a user