DescriptionMerge 75698 - chromeos: Check ALSA return values in mixer code.
We're seeing a NaN value sometimes get saved (incorrectly)
to the prefs file in the volume setting, which results in
the prefs file being unparseable the next time Chrome
starts, which results in us going through OOBE again. The
prefs code ought to write NaNs correctly so that they don't
corrupt the file, but in the meantime, this change checks
the return values from a bunch of ALSA functions (my best
theory as to how the NaN is creeping in) and for good
measure, also maps NaN volume values to the minimum volume.
BUG=chromium-os:12229
TEST=built and ran it (i haven't been able to repro the problem)
Review URL: http://codereview.chromium.org/6562001
TBR=derat@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75707
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|