2010/10/21 David Henningsson david.henningsson@canonical.com
On 2010-10-21 06:36, Raymond Yau wrote:
2010/10/4 David Henningssondavid.henningsson@canonical.com
Exactly, this is a test tool that checks whether the mixer control names and dB information live up to PulseAudio's expectations. That's the tool's purpose.
What's PulseAudio' s expectation ?
PA 's developer seem expect max_dB of all HDA codec are 0dB
Your alsamixertest program does not test any dB range above 0dB
That's correct, I don't really know how to deal with that, and I'm not sure how PA deals with that either. I assume it goes above 0 dB on one of the volume controls when a user wants it to.
alsamixertest-48.11 does allow user to specify a negative step to allow test volume over 0dB , but your program seem go to infinite loop
DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', '--', 'sset', "'Master',0", '3.000000dB', 'unmute') DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', 'sget', "'Master',0") DEBUG:root:dB = 3.000000 get 0.000000 gives pstate = {'Front Left': {'muted': False, 'dB': 0.0, 'value': 31}, 'Front Right': {'muted': False, 'dB': 0.0, 'value': 31}} DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', '--', 'sset', "'Master',0", '4.500000dB', 'unmute') DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', 'sget', "'Master',0") DEBUG:root:dB = 4.500000 get 0.000000 gives pstate = {'Front Left': {'muted': False, 'dB': 0.0, 'value': 31}, 'Front Right': {'muted': False, 'dB': 0.0, 'value': 31}} DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', '--', 'sset', "'Master',0", '6.000000dB', 'unmute') DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', 'sget', "'Master',0") DEBUG:root:dB = 6.000000 get 0.000000 gives pstate = {'Front Left': {'muted': False, 'dB': 0.0, 'value': 31}, 'Front Right': {'muted': False, 'dB': 0.0, 'value': 31}} DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', '--', 'sset', "'Master',0", '7.500000dB', 'unmute') DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', 'sget', "'Master',0") DEBUG:root:dB = 7.500000 get 0.000000 gives pstate = {'Front Left': {'muted': False, 'dB': 0.0, 'value': 31}, 'Front Right': {'muted': False, 'dB': 0.0, 'value': 31}} DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', '--', 'sset', "'Master',0", '9.000000dB', 'unmute') DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', 'sget', "'Master',0") DEBUG:root:dB = 9.000000 get 0.000000 gives pstate = {'Front Left': {'muted': False, 'dB': 0.0, 'value': 31}, 'Front Right': {'muted': False, 'dB': 0.0, 'value': 31}} DEBUG:root:Run subprocess: ('amixer', '-D', 'hw:0', '--', 'sset', "'Master',0", '10.500000dB', 'unmute')