[alsa-devel] [PATCH 0/3] ASoC: make simple-card a bit more versatile

Daniel Mack daniel at zonque.org
Mon May 28 21:35:00 CEST 2018


In the process of porting some boards to DT, I noticed the simple-card
driver is already capable of handling most cases just fine. The missing
bits I've spotted are:

 * The clock that is passed in is only read, never set, which is not
   sufficient for boards that support several sampling rates with
   different base frequencies

 * The sysclk id that is passed to snd_soc_dai_set_sysclk() is
   hard-coded

 * There's currently no support for calling into snd_soc_dai_set_clkdiv()

The following three patches fix all those and make simple-card a good
match for the board I'm working with.


Thanks,
Daniel

Daniel Mack (3):
  ASoC: simple-card: set cpu dai clk in hw_params
  ASoC: simple-card: make sysclk index configurable
  ASoC: simple-card: add support for clock divider setup

 .../devicetree/bindings/sound/simple-card.txt      | 13 ++++++
 include/sound/simple_card_utils.h                  | 19 ++++++++
 sound/soc/generic/simple-card-utils.c              | 50 ++++++++++++++++++++++
 sound/soc/generic/simple-card.c                    | 49 +++++++++++++++++++--
 4 files changed, 127 insertions(+), 4 deletions(-)

-- 
2.14.3



More information about the Alsa-devel mailing list