]> Git Repo - linux.git/commitdiff
ALSA: usb/mixer - use get_iface_desc() rather than direct structure
authorJaroslav Kysela <[email protected]>
Fri, 16 Apr 2010 08:32:54 +0000 (10:32 +0200)
committerJaroslav Kysela <[email protected]>
Fri, 16 Apr 2010 08:37:50 +0000 (10:37 +0200)
Signed-off-by: Jaroslav Kysela <[email protected]>
sound/usb/mixer.c

index 1deef623c0810e36af237893e264d8813046848a..21613fe0c1a2a9576251486d30ea04eeac1fad17 100644 (file)
@@ -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)
This page took 0.053963 seconds and 4 git commands to generate.