[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] alsa: handle unavailbale HW volume in UCM

Arun Raghavan gitlab at gitlab.freedesktop.org
Sat Mar 21 15:38:22 UTC 2020



Arun Raghavan pushed to branch master at PulseAudio / pulseaudio


Commits:
f3f16fe6 by Wim Taymans at 2020-03-20T12:07:36+01:00
alsa: handle unavailbale HW volume in UCM

It is possible that UCM doesn't specify hardware volume controls.
Fall back to software controls instead of aborting.

- - - - -


2 changed files:

- src/modules/alsa/alsa-sink.c
- src/modules/alsa/alsa-source.c


Changes:

=====================================
src/modules/alsa/alsa-sink.c
=====================================
@@ -1654,7 +1654,7 @@ static int sink_set_port_ucm_cb(pa_sink *s, pa_device_port *p) {
     pa_assert(u->ucm_context);
 
     data = PA_DEVICE_PORT_DATA(p);
-    pa_assert_se(u->mixer_path = data->path);
+    u->mixer_path = data->path;
     mixer_volume_init(u);
 
     if (s->flags & PA_SINK_DEFERRED_VOLUME)


=====================================
src/modules/alsa/alsa-source.c
=====================================
@@ -1525,7 +1525,7 @@ static int source_set_port_ucm_cb(pa_source *s, pa_device_port *p) {
     pa_assert(u->ucm_context);
 
     data = PA_DEVICE_PORT_DATA(p);
-    pa_assert_se(u->mixer_path = data->path);
+    u->mixer_path = data->path;
     mixer_volume_init(u);
 
     if (s->flags & PA_SOURCE_DEFERRED_VOLUME)



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/f3f16fe6df087e37f219fd829ae5f647c40fc456

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/f3f16fe6df087e37f219fd829ae5f647c40fc456
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/20200321/054822cb/attachment.htm>


More information about the pulseaudio-commits mailing list