Skip to content

arizona: Improvements to codec DVFS control

Charles Keepax alsa-devel 3 versions – In review

Get series with b4
b4 am 1404313973-1030-1-git-send-email-ckeepax@opensource.wolfsonmicro.com

Versions newest first · linked by author and title

  1. v4 Latest3 patches 4 repliesIn review
  2. v33 patches 1 replySuperseded
  3. v24 patches 9 repliesSuperseded

Changes in v4 from the cover letter

- Changed error messages from raising/lowering DCVDD

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mfd: arizona: Export function to control subsystem DVFSdrivers/mfd/arizona-core.c include/linux/mfd/arizona/core.h+101 -04 replies
2/3ASoC: wm_adsp: Move DVFS control into codec driverdrivers/regulator/arizona-ldo1.c sound/soc/codecs/wm5102.c sound/soc/codecs/wm5110.c +2 more+54 -860 replies
3/3ASoC: arizona: Add DVFS handling for sample rate controlsound/soc/codecs/arizona.c+21 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH 0/3 v4] arizona: Improvements to codec DVFS control

Hi,

Respin of Richard's DVFS series, from me since he is on holiday. I have based these on Mark's ASoC for-next branch as there a few changes in there to the same parts of code. But let me know if you would rather have a series based on Lee's tree instead.

This set of changes cleans up the way the drivers handle the control of internal subsystem clocks for codecs with DVFS. This previously relied on the clock control happening as a side-effect of changing the regulator voltage, rather than explicitly, which assumed that you were using the built-in regulator. Also DVFS control was being done from the ADSP driver despite that driver supposedly being codec- agnostic.
There are other cases on some codecs where DVFS control is needed so this sequence of patches cleans up the way DVFS is implemented and adds the extra case of DVFS boost for higher sample rates on WM8997 and WM5102

Changes since v3:
- Changed error messages from raising/lowering DCVDD

Changes since v2:
- Correct some small issues (wrong printf specifier, clarity on PRE_PMD/POST_PMD event)
- Added warning for calling arizona_dvfs_down with flags that are not enabled
- Squashed patches 2 and 4, so the SUBSYS bit is not set from two seperate places

Changes since v1:
- Changed mask variable to flags to be more consistent with its usage
- Fixed minor tabbing issue
- Adding missing SND_SOC_DAPM_PRE_PMD event flag in WM_ADSP2_E

Richard Fitzgerald (3):
mfd: arizona: Export function to control subsystem DVFS
ASoC: wm_adsp: Move DVFS control into codec driver
ASoC: arizona: Add DVFS handling for sample rate control

 drivers/mfd/arizona-core.c       |   89 ++++++++++++++++++++++++++++++++++++++
 drivers/regulator/arizona-ldo1.c |    5 --
 include/linux/mfd/arizona/core.h |   12 +++++
 sound/soc/codecs/arizona.c       |   22 +++++++++-
 sound/soc/codecs/wm5102.c        |   47 +++++++++++++++++++-
 sound/soc/codecs/wm5110.c        |    2 +-
 sound/soc/codecs/wm_adsp.c       |   73 +------------------------------
 sound/soc/codecs/wm_adsp.h       |   13 +++---
 8 files changed, 176 insertions(+), 87 deletions(-)
Signature · 1 line
1.7.2.5