From: Oleksandr Andrushchenko <andr2000@gmail.com>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>
Subject: alsalib and snd_pcm_hw_params_set_rate_minmax
Date: Thu, 15 Mar 2018 12:45:45 +0200 [thread overview]
Message-ID: <8f76589f-d64f-e6c2-db4a-57319e68ec3d@gmail.com> (raw)
Hi,
Is it possible for user-space to reduce configuration space
with snd_pcm_hw_params_set_rate_minmax and then change it
with another snd_pcm_hw_params_set_rate_minmax with values
out of the reduced config?
For example, the initial min/max is 44100/48000 and I set 44100
first, e.g.
snd_pcm_hw_params_set_rate_minmax(handle, hw_params, 44100, 0, 44100, 0)
and then want
snd_pcm_hw_params_set_rate_minmax(handle, hw_params, 48000, 0, 48000, 0)
Obviously, the last call fails as we have already a reduced
space of [44100; 44100].
Is there a way I can still set the range to [48000; 48000]?
Thank you,
Oleksandr
P.S. This is in context of work done for [1]
[1] https://www.spinics.net/lists/alsa-devel/msg75382.html
next reply other threads:[~2018-03-15 10:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 10:45 Oleksandr Andrushchenko [this message]
2018-03-15 11:59 ` alsalib and snd_pcm_hw_params_set_rate_minmax Takashi Sakamoto
2018-03-15 12:20 ` Oleksandr Andrushchenko
2018-03-15 12:45 ` Takashi Sakamoto
2018-03-15 13:15 ` Oleksandr Andrushchenko
2018-03-15 13:23 ` Takashi Iwai
2018-03-15 13:39 ` Oleksandr Andrushchenko
2018-03-15 20:29 ` Takashi Iwai
2018-03-16 10:17 ` Oleksandr Andrushchenko
2018-03-16 12:50 ` Konrad Rzeszutek Wilk
2018-03-16 12:54 ` Oleksandr Andrushchenko
2018-03-16 15:05 ` Takashi Iwai
2018-03-16 15:10 ` Oleksandr Andrushchenko
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=8f76589f-d64f-e6c2-db4a-57319e68ec3d@gmail.com \
--to=andr2000@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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