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

@ -221,6 +221,8 @@ struct spa_audio_info_raw {
#define SPA_KEY_AUDIO_CHANNEL "audio.channel" /**< an audio channel as string,
* Ex. "FL" */
#define SPA_KEY_AUDIO_CHANNELS "audio.channels" /**< an audio channel count as int */
struct spa_audio_info_dsp {
enum spa_audio_format format; /*< format, one of the DSP formats in enum spa_audio_format_dsp */
};