]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: snd_soc_component_driver has snd_pcm_ops
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 11 Oct 2017 01:37:23 +0000 (01:37 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 23 Oct 2017 09:27:13 +0000 (11:27 +0200)
commitec7e60e1f192d5f55fc2b8cd144dd2d6c5a9a585
tree122b7d1061ef1e8423bee6b915e1bf5ff8b9401a
parent027c01e0eb0d455a022355234e8a0677bc15cc6d
ASoC: snd_soc_component_driver has snd_pcm_ops

Platform will be replaced into Component in the future.
snd_soc_platform_driver has snd_pcm_ops, but snd_soc_component_driver
doesn't have it. To prepare for replacing, this patch adds snd_pcm_ops
on component driver.

platform will be replaced into component, and its code will be removed.
But during replacing, both platform and component process code exists.
To keep compatibility, to avoid platform NULL access and to avoid
platform/component duplicate operation during replacing process, this
patch has such code. Some of this code will be removed when platform was
removed.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-pcm.c