Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* alsalib and snd_pcm_hw_params_set_rate_minmax
@ 2018-03-15 10:45 Oleksandr Andrushchenko
  2018-03-15 11:59 ` Takashi Sakamoto
  0 siblings, 1 reply; 13+ messages in thread
From: Oleksandr Andrushchenko @ 2018-03-15 10:45 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-03-16 15:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15 10:45 alsalib and snd_pcm_hw_params_set_rate_minmax Oleksandr Andrushchenko
2018-03-15 11:59 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox