mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
alsa: Add separate sinks/sources for UCM modifiers if needed
Modifiers may have their own PlaybackPCM/CapturePCM and for these, we create separate sinks/sources. These are marked with the device.intended_roles property to let role-based routing take care if streams are tagged appropriately.
This commit is contained in:
parent
a08c85d299
commit
5c12ce5985
4 changed files with 195 additions and 10 deletions
|
|
@ -73,6 +73,9 @@
|
|||
/** For devices: Quality of Service */
|
||||
#define PA_ALSA_PROP_UCM_QOS "alsa.ucm.qos"
|
||||
|
||||
/** For devices: The modifier (if any) that this device corresponds to */
|
||||
#define PA_ALSA_PROP_UCM_MODIFIER "alsa.ucm.modifier"
|
||||
|
||||
typedef struct pa_alsa_ucm_verb pa_alsa_ucm_verb;
|
||||
typedef struct pa_alsa_ucm_modifier pa_alsa_ucm_modifier;
|
||||
typedef struct pa_alsa_ucm_device pa_alsa_ucm_device;
|
||||
|
|
@ -140,6 +143,10 @@ struct pa_alsa_ucm_modifier {
|
|||
pa_direction_t action_direction;
|
||||
|
||||
char *media_role;
|
||||
|
||||
/* Non-NULL if the modifier has its own PlaybackPCM/CapturePCM */
|
||||
pa_alsa_mapping *playback_mapping;
|
||||
pa_alsa_mapping *capture_mapping;
|
||||
};
|
||||
|
||||
struct pa_alsa_ucm_verb {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue