mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa-mixer: Fill in input and output names
Fill in input_name and output_name to make routing easier for routing modules. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
b9818b016f
commit
2a71fd7597
3 changed files with 12 additions and 1 deletions
|
|
@ -143,6 +143,8 @@ static void add_profiles(struct userdata *u, pa_hashmap *h, pa_hashmap *ports) {
|
|||
|
||||
cp = pa_card_profile_new(ap->name, ap->description, sizeof(struct profile_data));
|
||||
cp->priority = ap->priority;
|
||||
cp->input_name = pa_xstrdup(ap->input_name);
|
||||
cp->output_name = pa_xstrdup(ap->output_name);
|
||||
|
||||
if (ap->output_mappings) {
|
||||
cp->n_sinks = pa_idxset_size(ap->output_mappings);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue