mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
589a06e105
commit
ea19554e8d
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue