[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] alsa-ucm: Log about the correct path value when probing volumes
PulseAudio Marge Bot (@pulseaudio-merge-bot)
gitlab at gitlab.freedesktop.org
Wed Jun 30 15:12:57 UTC 2021
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
7580ef31 by Alper Nebi Yasak at 2021-06-30T15:09:14+00:00
alsa-ucm: Log about the correct path value when probing volumes
These two log messages are most likely intended for the path that was
just tried, but they are mistakenly printing the name of the port's
current path. Fix them.
Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/594>
- - - - -
1 changed file:
- src/modules/alsa/alsa-ucm.c
Changes:
=====================================
src/modules/alsa/alsa-ucm.c
=====================================
@@ -962,10 +962,10 @@ static void probe_volumes(pa_hashmap *hash, bool is_sink, snd_pcm_t *pcm_handle,
PA_HASHMAP_FOREACH_KV(profile, path, data->paths, state2) {
if (pa_alsa_path_probe(path, NULL, mixer_handle, ignore_dB) < 0) {
- pa_log_warn("Could not probe path: %s, using s/w volume", data->path->name);
+ pa_log_warn("Could not probe path: %s, using s/w volume", path->name);
pa_hashmap_remove(data->paths, profile);
} else if (!path->has_volume) {
- pa_log_warn("Path %s is not a volume control", data->path->name);
+ pa_log_warn("Path %s is not a volume control", path->name);
pa_hashmap_remove(data->paths, profile);
} else
pa_log_debug("Set up h/w volume using '%s' for %s:%s", path->name, profile, port->name);
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/7580ef31a1730d035385df4127b0aa25e8e9c590
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/7580ef31a1730d035385df4127b0aa25e8e9c590
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20210630/4df00d52/attachment.htm>
More information about the pulseaudio-commits
mailing list