mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
sound: es8156 limit max volume
This commit is contained in:
committed by
Han Gao/Revy/Rabenda
parent
2c9ad71844
commit
274a4b08dd
@@ -114,8 +114,11 @@ static const struct snd_kcontrol_new es8156_snd_controls[] = {
|
||||
SOC_DOUBLE("ALC Maximum Minimum Volume",ES8156_ALC_CONFIG3_REG17,
|
||||
4,0,15,0),
|
||||
/* DAC Digital controls */
|
||||
/* 255 is too loudy on LicheeConsole4A, so we limit it
|
||||
* TODO: move it into devicetree or module param?
|
||||
*/
|
||||
SOC_SINGLE_TLV("DAC Playback Volume", ES8156_VOLUME_CONTROL_REG14,
|
||||
0, 0xff, 0, dac_vol_tlv),
|
||||
0, 170, 0, dac_vol_tlv),
|
||||
SOC_SINGLE("HP Switch",ES8156_ANALOG_SYS3_REG22,3,1,0),
|
||||
|
||||
|
||||
@@ -188,7 +191,7 @@ static const struct snd_soc_dapm_route es8156_dapm_routes[] = {
|
||||
#define MCLK_SOURCE SCLK_PIN // select MCLK source, MCLK_PIN or SCLK_PIN
|
||||
#define EQ7bandOn 0
|
||||
#define VDDA_VOLTAGE VDDA_3V3
|
||||
#define DAC_Volume 191 // DAC digital gain
|
||||
#define DAC_Volume 170 // DAC digital gain
|
||||
#define DACHPModeOn 0 // disable:0, enable:1
|
||||
|
||||
/**************************************************/
|
||||
|
||||
Reference in New Issue
Block a user