diff options
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 3f53dee1270f..d65235c0106a 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c | |||
@@ -94,7 +94,7 @@ int snd_usb_add_audio_endpoint(struct snd_usb_audio *chip, int stream, struct au | |||
94 | if (subs->endpoint == fp->endpoint) { | 94 | if (subs->endpoint == fp->endpoint) { |
95 | list_add_tail(&fp->list, &subs->fmt_list); | 95 | list_add_tail(&fp->list, &subs->fmt_list); |
96 | subs->num_formats++; | 96 | subs->num_formats++; |
97 | subs->formats |= 1ULL << fp->format; | 97 | subs->formats |= fp->formats; |
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | } | 100 | } |
@@ -268,7 +268,7 @@ int snd_usb_parse_audio_endpoints(struct snd_usb_audio *chip, int iface_no) | |||
268 | */ | 268 | */ |
269 | if (fmt[4] == 1 && fmt[5] == 2 && altno == 2 && num == 3 && | 269 | if (fmt[4] == 1 && fmt[5] == 2 && altno == 2 && num == 3 && |
270 | fp && fp->altsetting == 1 && fp->channels == 1 && | 270 | fp && fp->altsetting == 1 && fp->channels == 1 && |
271 | fp->format == SNDRV_PCM_FORMAT_S16_LE && | 271 | fp->formats == SNDRV_PCM_FMTBIT_S16_LE && |
272 | protocol == UAC_VERSION_1 && | 272 | protocol == UAC_VERSION_1 && |
273 | le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize) == | 273 | le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize) == |
274 | fp->maxpacksize * 2) | 274 | fp->maxpacksize * 2) |