aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/usb/quirks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 5b01330b8452..1bc45e71f1fe 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -129,6 +129,7 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,
129{ 129{
130 struct audioformat *fp; 130 struct audioformat *fp;
131 struct usb_host_interface *alts; 131 struct usb_host_interface *alts;
132 struct usb_interface_descriptor *altsd;
132 int stream, err; 133 int stream, err;
133 unsigned *rate_table = NULL; 134 unsigned *rate_table = NULL;
134 135
@@ -166,6 +167,9 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,
166 return -EINVAL; 167 return -EINVAL;
167 } 168 }
168 alts = &iface->altsetting[fp->altset_idx]; 169 alts = &iface->altsetting[fp->altset_idx];
170 altsd = get_iface_desc(alts);
171 fp->protocol = altsd->bInterfaceProtocol;
172
169 if (fp->datainterval == 0) 173 if (fp->datainterval == 0)
170 fp->datainterval = snd_usb_parse_datainterval(chip, alts); 174 fp->datainterval = snd_usb_parse_datainterval(chip, alts);
171 if (fp->maxpacksize == 0) 175 if (fp->maxpacksize == 0)