summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2021-05-05 22:23:33 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-05-28 19:17:30 +0000
commit734bbb31408bc9068194707c16cf2aa54d0cadca (patch)
tree9416a095f19d31d901233e61893b09eaeabb088b
parent4e1427736ec5eb4e674f2b2fac0424553c02628d (diff)
The latest uprev to pipewire changes the default control name from "Master" to "Playback Master". This change fixes that so CI and tests pass. Bug-AGL: SPEC-3907 Signed-off-by: Edi Feschiyan <edi.feschiyan@konsulko.com> Change-Id: If6c0a482a4c6fd7f64f1c7a8bb3f70fddd9a5332 (cherry picked from commit 137a32d3b0068e2141ed9aab23d8a8956c0cb094)
-rw-r--r--pyagl/services/audiomixer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyagl/services/audiomixer.py b/pyagl/services/audiomixer.py
index 8a7743f..23d382e 100644
--- a/pyagl/services/audiomixer.py
+++ b/pyagl/services/audiomixer.py
@@ -42,14 +42,14 @@ class AudioMixerService(AGLBaseService):
async def list_controls(self):
return await self.request('list_controls')
- async def volume(self, control='Master', value=None):
+ async def volume(self, control='Master Playback', value=None):
if value is not None:
return await self.request('volume', {'control': control, 'value': value})
else:
return await self.request('volume', {'control': control})
- async def mute(self, value=None):
- return await self.request('mute', {'control': 'Master', 'value': value})
+ async def mute(self, control='Master Playback', value=None):
+ return await self.request('mute', {'control': control, 'value': value})
async def main():