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} 11 12def get_proper_internal_mic_gain(board): 13 """Return a proper internal mic gain. 14 15 @param board: Board name. 16 17 @returns: A number in 100 dB. E.g., 1000 is 10dB. This is in the same unit 18 as cras_utils set_capture_gain. Returns None if there is no such 19 entry. 20 """ 21 return INTERNAL_MIC_GAIN_100DB.get(board, None) 22