Skip to content

Commit bda1650

Browse files
Jack Yubroonie
authored andcommitted
ASoC: rt715-sdca: volume step modification
Volume step (dB/step) modification to fix format error which shown in amixer control. Signed-off-by: Jack Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f2602fb commit bda1650

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sound/soc/codecs/rt715-sdca.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static int rt715_sdca_set_amp_gain_8ch_get(struct snd_kcontrol *kcontrol,
316316
return 0;
317317
}
318318

319-
static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -17625, 375, 0);
319+
static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -1725, 75, 0);
320320
static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, 0, 1000, 0);
321321

322322
static int rt715_sdca_get_volsw(struct snd_kcontrol *kcontrol,
@@ -477,21 +477,21 @@ static const struct snd_kcontrol_new rt715_sdca_snd_controls[] = {
477477
RT715_SDCA_FU_VOL_CTRL, CH_01),
478478
SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC7_27_VOL,
479479
RT715_SDCA_FU_VOL_CTRL, CH_02),
480-
0x2f, 0x7f, 0,
480+
0x2f, 0x3f, 0,
481481
rt715_sdca_set_amp_gain_get, rt715_sdca_set_amp_gain_put,
482482
in_vol_tlv),
483483
RT715_SDCA_EXT_TLV("FU02 Capture Volume",
484484
SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC8_9_VOL,
485485
RT715_SDCA_FU_VOL_CTRL, CH_01),
486486
rt715_sdca_set_amp_gain_4ch_get,
487487
rt715_sdca_set_amp_gain_4ch_put,
488-
in_vol_tlv, 4, 0x7f),
488+
in_vol_tlv, 4, 0x3f),
489489
RT715_SDCA_EXT_TLV("FU06 Capture Volume",
490490
SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC10_11_VOL,
491491
RT715_SDCA_FU_VOL_CTRL, CH_01),
492492
rt715_sdca_set_amp_gain_4ch_get,
493493
rt715_sdca_set_amp_gain_4ch_put,
494-
in_vol_tlv, 4, 0x7f),
494+
in_vol_tlv, 4, 0x3f),
495495
/* MIC Boost Control */
496496
RT715_SDCA_BOOST_EXT_TLV("FU0E Boost",
497497
SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_DMIC_GAIN_EN,

0 commit comments

Comments
 (0)