diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-02-25 14:55:58 -0500 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-04-20 11:37:52 +0300 |
commit | f1908e302b8c7317dc922164c37c4c50884684c6 (patch) | |
tree | 2b38d70e4c8bc77ee643b0083cf1096eb98c80b7 /binding/audiomixer-binding.c | |
parent | 54ea1cd48f13517773cc1395ca2e13e059f2525c (diff) |
audiomixer: port to wireplumber 0.4lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.011.92.0
* use module-mixer-api and module-default-nodes-api
* use endpoints without endpoint streams (new design)
* improve thread safety a little bit
Bug-AGL: SPEC-3844
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Change-Id: Ia180d607698d7a8875c19cc48bd2b2c503772945
Diffstat (limited to 'binding/audiomixer-binding.c')
-rw-r--r-- | binding/audiomixer-binding.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/binding/audiomixer-binding.c b/binding/audiomixer-binding.c index 80c4482..2c8981a 100644 --- a/binding/audiomixer-binding.c +++ b/binding/audiomixer-binding.c @@ -149,12 +149,6 @@ list_controls_cb(afb_req_t request) audiomixer_lock(audiomixer); - if (audiomixer_ensure_connected(audiomixer, 3) < 0) { - afb_req_fail(request, "failed", - "Could not connect to the PipeWire daemon"); - goto unlock; - } - if (audiomixer_ensure_controls(audiomixer, 3) < 0) { AFB_REQ_NOTICE(request, "No mixer controls were exposed " "in PipeWire after 3 seconds"); @@ -175,7 +169,6 @@ list_controls_cb(afb_req_t request) } afb_req_success(request, ret_json, NULL); -unlock: audiomixer_unlock(audiomixer); } @@ -196,12 +189,6 @@ volume_cb(afb_req_t request) goto unlock; } - if (audiomixer_ensure_connected(audiomixer, 3) < 0) { - afb_req_fail(request, "failed", - "Could not connect to the PipeWire daemon"); - goto unlock; - } - if (audiomixer_ensure_controls(audiomixer, 3) < 0) { AFB_REQ_NOTICE(request, "No mixer controls were exposed " "in PipeWire after 3 seconds"); @@ -252,12 +239,6 @@ mute_cb(afb_req_t request) goto unlock; } - if (audiomixer_ensure_connected(audiomixer, 3) < 0) { - afb_req_fail(request, "failed", - "Could not connect to the PipeWire daemon"); - goto unlock; - } - if (audiomixer_ensure_controls(audiomixer, 3) < 0) { AFB_REQ_NOTICE(request, "No mixer controls were exposed " "in PipeWire after 3 seconds"); @@ -375,7 +356,7 @@ onevent(afb_api_t api, const char *event, struct json_object *object) audiomixer_lock(audiomixer); - ctl = audiomixer_find_control(audiomixer, "Master"); + ctl = audiomixer_find_control(audiomixer, "Master Playback"); if (!ctl) goto unlock; |