audio_settings before/after suspend test is too sensitive to minor changes in alsa mixer settings

Bug #1043144 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Medium
Brendan Donegan

Bug Description

The current test for checking audio settings before and after suspend works by diff'ing the output of alsa_mixer between suspends cycles. Unfortunately this is very flaky and there will end up being a lot of failures which are of little consequence, such as below:

5c5 < Mono: Playback 40 [62%] [-18.00dB] [on] --- > Mono: Playback 40 [62%] [-18.00dB] [off] 11,12c11,12 < Front Left: Playback 64 [100%] [0.00dB] [on] < Front Right: Playback 64 [100%] [0.00dB] [on] --- > Front Left: Playback 64 [100%] [0.00dB] [off] > Front Right: Playback 64 [100%] [0.00dB] [off] 18,19c18,19 < Front Left: Playback 64 [100%] [0.00dB] [on] < Front Right: Playback 64 [100%] [0.00dB] [on] --- > Front Left: Playback 64 [100%] [0.00dB] [off] > Front Right: Playback 64 [100%] [0.00dB] [off]

It's very difficult to parse this failure. A better solution would be to use the 'store' function of the audio_settings script to dump the basic settings such as the currently selected source and sink and the volume level and mute setting on those. If those change between suspends, we can say there is definitely a problem.

Related branches

Changed in checkbox:
status: New → In Progress
assignee: nobody → Brendan Donegan (brendan-donegan)
importance: Undecided → Medium
Changed in checkbox:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.