]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/usb/clock.c
Merge remote-tracking branch 'idle/next'
[karo-tx-linux.git] / sound / usb / clock.c
index 3a2ce390e278afed2e9793d7d7b981965e604462..86f80c60b21f91202c8c17c40d7981c3d7f873f8 100644 (file)
@@ -407,9 +407,7 @@ int snd_usb_init_sample_rate(struct snd_usb_audio *chip, int iface,
                             struct usb_host_interface *alts,
                             struct audioformat *fmt, int rate)
 {
-       struct usb_interface_descriptor *altsd = get_iface_desc(alts);
-
-       switch (altsd->bInterfaceProtocol) {
+       switch (fmt->protocol) {
        case UAC_VERSION_1:
        default:
                return set_sample_rate_v1(chip, iface, alts, fmt, rate);