mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04: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.
This commit is contained in:
parent
d504744396
commit
f3f16fe6df
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue