diff options
Diffstat (limited to 'sound/usb/format.c')
-rw-r--r-- | sound/usb/format.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/usb/format.c b/sound/usb/format.c index 020ede0259eb..99299ffb33ac 100644 --- a/sound/usb/format.c +++ b/sound/usb/format.c | |||
@@ -365,7 +365,8 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, | |||
365 | { | 365 | { |
366 | struct usb_interface_descriptor *altsd = get_iface_desc(iface); | 366 | struct usb_interface_descriptor *altsd = get_iface_desc(iface); |
367 | int protocol = altsd->bInterfaceProtocol; | 367 | int protocol = altsd->bInterfaceProtocol; |
368 | int pcm_format, ret; | 368 | snd_pcm_format_t pcm_format; |
369 | int ret; | ||
369 | 370 | ||
370 | if (fmt->bFormatType == UAC_FORMAT_TYPE_III) { | 371 | if (fmt->bFormatType == UAC_FORMAT_TYPE_III) { |
371 | /* FIXME: the format type is really IECxxx | 372 | /* FIXME: the format type is really IECxxx |
@@ -384,7 +385,7 @@ static int parse_audio_format_i(struct snd_usb_audio *chip, | |||
384 | default: | 385 | default: |
385 | pcm_format = SNDRV_PCM_FORMAT_S16_LE; | 386 | pcm_format = SNDRV_PCM_FORMAT_S16_LE; |
386 | } | 387 | } |
387 | fp->formats = 1uLL << pcm_format; | 388 | fp->formats = pcm_format_to_bits(pcm_format); |
388 | } else { | 389 | } else { |
389 | fp->formats = parse_audio_format_i_type(chip, fp, format, | 390 | fp->formats = parse_audio_format_i_type(chip, fp, format, |
390 | fmt, protocol); | 391 | fmt, protocol); |