alsa: always list PCM as iec958 codec

Always put PCM as the supported format for iec958.
Only accept iec958codecs for iec958 capable nodes.
This commit is contained in:
Wim Taymans 2021-09-01 11:16:38 +02:00
parent 592163fb0a
commit 01f640709e
2 changed files with 5 additions and 4 deletions

View file

@ -94,6 +94,7 @@ int spa_alsa_init(struct state *state)
if (state->stream == SND_PCM_STREAM_PLAYBACK) {
state->is_iec958 = spa_strstartswith(state->props.device, "iec958");
state->is_hdmi = spa_strstartswith(state->props.device, "hdmi");
state->iec958_codecs |= 1ULL << SPA_AUDIO_IEC958_CODEC_PCM;
}
if (state->open_ucm) {