• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""This module provides cras audio configs."""
6
7INTERNAL_MIC_GAIN_100DB = {
8        'chell': 500,
9        'auron_yuna': -1000,
10        'kevin': 0,
11}
12
13def get_proper_internal_mic_gain(board):
14    """Return a proper internal mic gain.
15
16    @param board: Board name.
17
18    @returns: A number in 100 dB. E.g., 1000 is 10dB. This is in the same unit
19              as cras_utils set_capture_gain. Returns None if there is no such
20              entry.
21    """
22    return INTERNAL_MIC_GAIN_100DB.get(board, None)
23