summaryrefslogtreecommitdiff
path: root/src/modules/alsa/alsa-ucm.h
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2021-11-16 19:24:05 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-06-28 15:11:56 +0300
commit0789a8fb767abffaf6070b14fe805ef41728c60f (patch)
tree64a32564ee581b045108c955c72b22b6b913adc6 /src/modules/alsa/alsa-ucm.h
parenta50330a4a5ea7619f4de41c6d907a36a5e5ce022 (diff)
downloadpulseaudio-0789a8fb767abffaf6070b14fe805ef41728c60f.tar.gz
alsa-ucm: Remove combination port generation logic
A previous commit makes mapping names depend on the UCM device name. Since UCM device names are unique, this means a mapping will at most have one port and thus no combination ports can be generated. This removes the dead code in the pa_alsa_ucm_add_ports_combination() function, unrolls the remaining code in its helper functions that it used, and renames it to pa_alsa_ucm_add_port() to signal that it no longer generates combinations. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/596>
Diffstat (limited to 'src/modules/alsa/alsa-ucm.h')
-rw-r--r--src/modules/alsa/alsa-ucm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-ucm.h b/src/modules/alsa/alsa-ucm.h
index 1652aff8f..236a2452d 100644
--- a/src/modules/alsa/alsa-ucm.h
+++ b/src/modules/alsa/alsa-ucm.h
@@ -158,7 +158,7 @@ void pa_alsa_ucm_add_ports(
pa_card *card,
snd_pcm_t *pcm_handle,
bool ignore_dB);
-void pa_alsa_ucm_add_ports_combination(
+void pa_alsa_ucm_add_port(
pa_hashmap *hash,
pa_alsa_ucm_mapping_context *context,
bool is_sink,