From: Sander Jansen <s.jansen@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Incorrect sbits for snd-usb-audio
Date: Tue, 17 Sep 2013 13:23:11 -0500 [thread overview]
Message-ID: <CACj81kHdoV6ReddOn_eiLikpzm=_-1WxoPACGOS4Noh7zrctLg@mail.gmail.com> (raw)
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
reply other threads:[~2013-09-17 18:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACj81kHdoV6ReddOn_eiLikpzm=_-1WxoPACGOS4Noh7zrctLg@mail.gmail.com' \
--to=s.jansen@gmail.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).