]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: add soc_hw_sanity_check()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 9 Mar 2021 01:08:02 +0000 (10:08 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 12 Mar 2021 14:26:29 +0000 (14:26 +0000)
commit9d0decd878c21bbd71defb5a6fd734e8d95cd7b2
tree228c64a8ceb8e3d72fe8d1aaf03c3964df6e4073
parent35a6ad92be6cfc68b7a8ef65ee91ca4db83f5dff
ASoC: soc-pcm: add soc_hw_sanity_check()

Current soc_pcm_open() is checking runtime->hw parameters, but having
such function is very helpful for reading code.

This patch adds new soc_hw_sanity_check() and checks runtime->hw
parameters there. And print its debug message there, too.

Debug message print out timing is exchanged after this patch,
but it is not a big deal, because it is for debug.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87eegpuob1.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c