alsa: rework buffer/period configuration
commit557c4295107dc7374c850b0bd5331dd35e8fdd0f
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2009 02:28:52 +0000 (9 04:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2009 02:28:52 +0000 (9 04:28 +0200)
tree19c1c9c9777cb8ecdb644398f95ab95c8d795e63
parent71e066c873e5bd31bd446ac0f8d0e97cc0b12ace
alsa: rework buffer/period configuration

- As discussed on alsa-devel it's probably better to initialize the
  buffer size first, followed by the period size. If that fails try the
  other way round. If that fails try to configure only buffer size. If
  that fails try to configure only period size. Finally, try to
  configure neither.

- Don't require integral periods anymore.

Both of these changes should help improving compatibility with various
weirder sound devices, such as TV cards.
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/alsa/alsa-util.c
src/modules/alsa/alsa-util.h