alsa: initialise the format

Otherwise the format is 0 (S8) and only S8 will be allowed.
This commit is contained in:
Wim Taymans 2022-09-20 17:45:46 +02:00
parent 7bf84fa5e2
commit 95cfb531a0

View file

@ -1282,6 +1282,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(pipewire)
PW_LOG_TOPIC_INIT(alsa_log_topic);
spa_zero(params);
params.format = SND_PCM_FORMAT_UNKNOWN;
snd_config_for_each(i, next, conf) {
snd_config_t *n = snd_config_iterator_entry(i);