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

Commit ca4c2ada authored by Jaroslav Kysela's avatar Jaroslav Kysela
Browse files

ALSA: usb/mixer - use get_iface_desc() rather than direct structure



Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent f09d045e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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];
	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 ||
	if ((err = snd_usb_mixer_controls(mixer)) < 0 ||
	    (err = snd_usb_mixer_status_create(mixer)) < 0)
	    (err = snd_usb_mixer_status_create(mixer)) < 0)