blob: cba498fd36942783c7d57170d6bc6ecc0837dd3b [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Set ALSA default mixer settings"
author "chromium-os-dev@chromium.org"
# On every user session, ensure the microphone is on and set at a
# reasonable level. Its a _task_ to ensure it completes prior to
# to CrOS setting users audio preferences
start on starting start-user-session
task
script
f=/usr/share/alsa/init/chromeos-per-session
if [ -f ${f} ]; then
alsactl init -i ${f}
else
amixer sset 'Capture',0 '80%' cap
fi
end script