spa: alsa: recognize plug+a52 as a52 device strings

HDMI/AC3 profiles use plug+a52 for a52 output, and should be handled
like a52.
This commit is contained in:
Pauli Virtanen 2024-07-05 16:04:23 +03:00
parent 589a06e105
commit ea19554e8d

View file

@ -2305,7 +2305,9 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
state->max_delay = state->buffer_frames / 2;
if (spa_strstartswith(state->props.device, "a52") ||
spa_strstartswith(state->props.device, "dca"))
spa_strstartswith(state->props.device, "dca") ||
(spa_strstartswith(state->props.device, "plug:") &&
strstr(state->props.device, "a52:")))
state->min_delay = SPA_MIN(2048u, state->buffer_frames);
else
state->min_delay = 0;