This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP4430 Audio Volume level Soft Stepping configuration

Other Parts Discussed in Thread: TWL6040

Hi,

We are working on OMAP4430 project ,we need to know how to configure Audio Volume level soft stepping for different profiles(Headset,earphone,etc).

We found below code in /kernel/sound/soc/codecs/twl6040.c file

 

/* * MICATT volume control: * from -6 to 0 dB in 6 dB steps */ static DECLARE_TLV_DB_SCALE(mic_preamp_tlv, -600, 600, 0);
/* * MICGAIN volume control: * from 6 to 30 dB in 6 dB steps */ static DECLARE_TLV_DB_SCALE(mic_amp_tlv, 600, 600, 0);
/* * AFMGAIN volume control: * from -18 to 24 dB in 6 dB steps */ static DECLARE_TLV_DB_SCALE(afm_amp_tlv, -1800, 600, 0);
/* * HSGAIN volume control: * from -30 to 0 dB in 2 dB steps */ static DECLARE_TLV_DB_SCALE(hs_tlv, -3000, 200, 0);
/* * HFGAIN volume control: * from -52 to 6 dB in 2 dB steps */ static DECLARE_TLV_DB_SCALE(hf_tlv, -5200, 200, 0);
/* * EPGAIN volume control: * from -24 to 6 dB in 2 dB steps */ static DECLARE_TLV_DB_SCALE(ep_tlv, -2400, 200, 0);
 
How to configure these volume controls to make it work for soft stepping?
 
Thanks,
Gaurav