]> git.alsa-project.org Git - alsa-lib.git/commit
direct pcm plugins: fix channel number selection
authorClemens Ladisch <clemens@ladisch.de>
Mon, 4 Dec 2006 17:14:13 +0000 (18:14 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 4 Dec 2006 17:14:13 +0000 (18:14 +0100)
commit9819099e0e102cdb593d61b9d0c2508159bd9650
treec494c70cd63a1e272a0729a91cd0660479a50336
parent0f99fe7830fd50f1d4b804fbdb138cbbb462056f
direct pcm plugins: fix channel number selection

The code to set the number of channels did not work when the requested
channel count was not available and when the min/max channel counts were
not identical.

Replacing the entire selection code with
snd_pcm_hw_params_set_channels_near() gives the same result in the cases
where it previously worked, and works in all other cases.
src/pcm/pcm_direct.c