add ti2558 brown protection function 1. currently just have limit voltage setting: a.ti,lim_th_max is the start limit voltage, when voltage less than the voltate, smart pa will decrease gain step by step. b.ti,lim_th_min is the immediately limit voltage, when voltage less than the voltage, smart pa will decrease the min gain . ti,lim_th_max & ti,lim_th_min defined at product dts. 2.how to enable. we can set TAS2562 BROWNOUT PROTECT ENABLE On to mixerpaths. 3.when HW test the voltage ,we will set in dts and enable by mixer_paths. 4.If HW need to adjust the min gain, need add more code . if there are the request ,need to achieve in the future. fix some no function. 1.fix tas2562_codec_read & tas2562_codec_write no function. 2.fix Amp Output Level no useful. Change-Id: I6e4be083063f009246d3a4a478c22fa6aee8467f Signed-off-by: liaohj <liaohj@lenovo.com> Reviewed-on: https://gerrit.mot.com/1435926 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou <zhouwl@motorola.com> Reviewed-by: Hujun Liao <liaohj@motorola.com> Submit-Approved: Jira Key
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*
|
|
* =============================================================================
|
|
* Copyright (c) 2016 Texas Instruments Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License as published by the Free Software
|
|
* Foundation; version 2.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE.See the GNU General Public License for more details.
|
|
*
|
|
* File:
|
|
* tas2562-codec.h
|
|
*
|
|
* Description:
|
|
* header file for tas2562-codec.c
|
|
*
|
|
* =============================================================================
|
|
*/
|
|
|
|
#ifndef _TAS2562_CODEC_H
|
|
#define _TAS2562_CODEC_H
|
|
|
|
#include "tas2562.h"
|
|
|
|
int tas2562_register_codec(struct tas2562_priv *p_tas2562);
|
|
int tas2562_deregister_codec(struct tas2562_priv *p_tas2562);
|
|
int tas2562_load_config(struct tas2562_priv *p_tas2562);
|
|
int tas2562_brownout_enable(struct tas2562_priv *p_tas2562, bool enable);
|
|
|
|
#endif /* _TAS2562_CODEC_H */
|