Failed to store audio setting on the system with mono audio channel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Support Library |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description:
Failed to parse the audio volume on the system with audio mono channel.
The scripts would raise an AttributeError as following:
Traceback (most recent call last):
File "/tmp/nest-
sys.
File "/usr/lib/
store_
File "/usr/lib/
volume = int(volume_
AttributeError: 'NoneType' object has no attribute 'group'
Here is the audio data through pactl command
Cmd> pactl list sources
...
Source #2
State: RUNNING
Name: alsa_input.
Description: Cmedia Audio Analog Mono
Driver: module-alsa-card.c
Sample Specification: s24le 1ch 48000Hz
Channel Map: mono
Owner Module: 8
Mute: no
Volume: mono: 42967 / 66% / -11.00 dB
balance 0.00
I made a fix for this issue, and it works well with my BT headset with mono audio.
https:/ /code.launchpad .net/~stanley31 /checkbox- support/ +git/checkbox- support/ +ref/0909_ modify_ audio_settings