From: Lars-Peter Clausen <lars@metafoo.de>
To: alsa-devel@alsa-project.org
Subject: Re: Using snd_pcm_set_params() on a capture handle
Date: Mon, 26 Oct 2015 12:27:41 +0100 [thread overview]
Message-ID: <562E0E2D.9060400@metafoo.de> (raw)
In-Reply-To: <20151026205431.e306afd9e96991ebe7fa7889@mega-nerd.com>
On 10/26/2015 10:54 AM, Erik de Castro Lopo wrote:
> Clemens Ladisch wrote:
>
>> To get the current parameters of the device, use snd_pcm_hw_params_current().
>
> Ah, that makes sense. Now I get:
>
> ACCESS: RW_INTERLEAVED
> FORMAT: S32_LE
> SUBFORMAT: STD
> SAMPLE_BITS: [0 0]
> FRAME_BITS: [64 64]
> CHANNELS: [2 2]
> RATE: [48000 48000]
> PERIOD_TIME: [6250 6250]
> PERIOD_SIZE: [300 300]
> PERIOD_BYTES: [0 0]
> PERIODS: [0 0]
> BUFFER_TIME: [0 0]
> BUFFER_SIZE: [1200 1200]
> BUFFER_BYTES: [9600 9600]
> TICK_TIME: [0 0]
>
> Why is SAMPLE_BITS == [0 0], even though the format is S32_LE?
That appears to be a bug in snd_pcm_hw_params_current() which does simply
not set SAMPLE_BITS.
- Lars
next prev parent reply other threads:[~2015-10-26 11:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-25 6:44 Using snd_pcm_set_params() on a capture handle Erik de Castro Lopo
2015-10-25 20:11 ` Clemens Ladisch
2015-10-26 8:47 ` Erik de Castro Lopo
2015-10-26 9:17 ` Clemens Ladisch
2015-10-26 9:23 ` Erik de Castro Lopo
2015-10-26 9:44 ` Clemens Ladisch
2015-10-26 9:54 ` Erik de Castro Lopo
2015-10-26 11:27 ` Lars-Peter Clausen [this message]
2015-10-26 15:26 ` Raymond Yau
2015-10-26 20:00 ` Erik de Castro Lopo
2015-10-27 5:01 ` Raymond Yau
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=562E0E2D.9060400@metafoo.de \
--to=lars@metafoo.de \
--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