alsa-pcm: allow setting number of channels

Allow passing the number of channels when creating a device to
restrict the negotiated channels.
This commit is contained in:
Wim Taymans 2020-07-01 12:54:27 +02:00
parent 267eabaf69
commit 8168dfdbc1
5 changed files with 15 additions and 0 deletions

View file

@ -101,6 +101,8 @@ struct state {
bool have_format;
struct spa_audio_info current_format;
unsigned int default_channels;
snd_pcm_uframes_t buffer_frames;
snd_pcm_uframes_t period_frames;
snd_pcm_format_t format;