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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux