mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-09 03:01:53 -04:00
spa: alsa: Detect ports for HDMI AC3 profiles
Because the a52 plugin (being an ioplug) does not proxy snd_pcm_info for its slave PCM, we need a different way to figure out the card associated with the device. It turns out we do have access to the card index already in the caller, so let's pass that index down as a fallback. This is done as a fallback rather than replacing the existing lookup in case there are situations where they might be mismatched. We could possibly just replace the existing lookup, but the cost seems low enough to not merit the risk of changing this.
This commit is contained in:
parent
bb634fb0f9
commit
cb327e5762
5 changed files with 17 additions and 11 deletions
|
|
@ -431,7 +431,7 @@ void pa_alsa_mapping_free (pa_alsa_mapping *m);
|
|||
void pa_alsa_profile_free (pa_alsa_profile *p);
|
||||
|
||||
pa_alsa_profile_set* pa_alsa_profile_set_new(const char *fname, const pa_channel_map *bonus);
|
||||
void pa_alsa_profile_set_probe(pa_alsa_profile_set *ps, pa_hashmap *mixers, const char *dev_id, const pa_sample_spec *ss, unsigned default_n_fragments, unsigned default_fragment_size_msec);
|
||||
void pa_alsa_profile_set_probe(pa_alsa_profile_set *ps, pa_hashmap *mixers, uint32_t card_index, const pa_sample_spec *ss, unsigned default_n_fragments, unsigned default_fragment_size_msec);
|
||||
void pa_alsa_profile_set_free(pa_alsa_profile_set *s);
|
||||
void pa_alsa_profile_set_dump(pa_alsa_profile_set *s);
|
||||
void pa_alsa_profile_set_drop_unsupported(pa_alsa_profile_set *s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue