alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Incorrect sbits for snd-usb-audio
@ 2013-09-17 18:23 Sander Jansen
  0 siblings, 0 replies; only message in thread
From: Sander Jansen @ 2013-09-17 18:23 UTC (permalink / raw)
  To: alsa-devel

Hi,

I have a Focusrite Scarlett 2i4 USB Audio Interface. The audio format
exposed by ALSA for  this device is S32_LE. From the hardware specs and
lsusb. it supposed to only have a 24 bit resolution (with the LSB bits set
to 0):

AudioStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bSubslotSize            4
        bBitResolution         24

When I query the sbits for this device, I expect it to return 24, but
instead it returns 32. Looking through the usb audio driver code, it
doesn't look like this information is actually exposed to userspace. The
'parse_audio_format_i_type'  in usb/format.c merely returns the supported
formats, but doesn't include any msbits info. (and it doesn't look like it
can be easily changed to return the msbits info as well).

Was this intentionally left out, or is this a missing feature in the driver?

Thanks,

Sander

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-17 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 18:23 Incorrect sbits for snd-usb-audio Sander Jansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).