]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card-utils: share asoc_simple_hw_param()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 20 Mar 2019 04:55:39 +0000 (13:55 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 21 Mar 2019 14:51:43 +0000 (14:51 +0000)
commitb6d89029296095fd7bc1d70eb2a8e94ce659e2fe
treebff3a7142fc2ddd2ecf8a27904c0f86de3252ae3
parent7b2a8fcabcaaff935e5211c437952d0759d9d5d7
ASoC: simple-card-utils: share asoc_simple_hw_param()

The difference between simple-card / audio-graph are just using
OF graph style, or not. In other words, other things should be same.
This means, simple-card/audio-graph common functions should be
implemented at simple-card-utils, and its own functions should be
implemented at each files.

Current simple-card / audio-graph have almost same functions.
This patch shares asoc_simple_hw_param() between in these 2 drivers.

One note is that only simple-card supports simple_set_clk_rate()
at hw_param from commit e2a039e1f366670 ("ASoC: simple-card: set cpu
dai clk in hw_params").
By this patch, audio-graph has same feature.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/audio-graph-card.c
sound/soc/generic/simple-card-utils.c
sound/soc/generic/simple-card.c