summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-10-11 01:37:45 +0000
committerMark Brown <broonie@kernel.org>2017-10-23 11:28:01 +0200
commit9e7e3738ab0e908c72dae4ff45481a0568924e62 (patch)
tree7f994c57a3012f3d51faae31dac2eb2373cd18e0 /include/sound
parentb8135864d4d33d0c35516ec758b9b73226935c5d (diff)
downloadop-kernel-dev-9e7e3738ab0e908c72dae4ff45481a0568924e62.zip
op-kernel-dev-9e7e3738ab0e908c72dae4ff45481a0568924e62.tar.gz
ASoC: snd_soc_component_driver has snd_compr_ops
Platform will be replaced into Component in the future. snd_soc_platform_driver has snd_compr_ops, but snd_soc_component_driver doesn't have. To prepare for replacing, this patch adds snd_compr_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>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 2acb566..ae0a27f 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -827,6 +827,7 @@ struct snd_soc_component_driver {
enum snd_soc_bias_level level);
const struct snd_pcm_ops *ops;
+ const struct snd_compr_ops *compr_ops;
/* probe ordering - for components with runtime dependencies */
int probe_order;
OpenPOWER on IntegriCloud