Skip to content

Commit

Permalink
ALSA: usb/mixer - use get_iface_desc() rather than direct structure
Browse files Browse the repository at this point in the history
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
perexg committed Apr 16, 2010
1 parent f09d045 commit ca4c2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca4c2ad

Please sign in to comment.