[alsa-devel] [PATCH 0/1] ASoC: TWL4030: Add mixer control for the HS ramp delay

Peter Ujfalusi peter.ujfalusi at nokia.com
Thu Mar 5 11:48:48 CET 2009


Hello,

The following patch adds user control for the desired ramp delay used on the
Headset output - it has been hardwired to use 874/645/437 ms.

The actuall delay depends on the MCLK frequency, for example:
value 0x0 in RAMP_DELAY means 2^19/f(MCLK), which is:
27 ms when the f(MCLK) = 19.2 MHz
20 ms when the f(MCLK) = 26 MHz
14 ms when the f(MCLK) = 38.4 MHz

value 0x5 in RAMP_DELAY means 2^24/f(MCLK), which is:
874 ms when the f(MCLK) = 19.2 MHz
645 ms when the f(MCLK) = 26 MHz
437 ms when the f(MCLK) = 38.4 MHz

I think having the actual ms values in the enums are makes more sense than to
have the calculation ("2^24/F(MCLK)" for example).

If one can suggest more descriptive name, I would love to change the texts.

---
Peter Ujfalusi (1):
  ASoC: TWL4030: Make the HS ramp delay configurable

 sound/soc/codecs/twl4030.c |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)



More information about the Alsa-devel mailing list