diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-21 20:07:09 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-22 14:38:01 +0100 |
commit | 1e5ddb6ba73894e6186e6379dde870979852af6d (patch) | |
tree | d249a309352e1952669115ae954e274c83d6805c /sound/soc/soc-pcm.c | |
parent | ASoC: pcm: Make ioctl ops optional (diff) | |
download | linux-1e5ddb6ba73894e6186e6379dde870979852af6d.tar.xz linux-1e5ddb6ba73894e6186e6379dde870979852af6d.zip |
ASoC: component: Add sync_stop PCM ops
Add the support of the new PCM sync_stop ops in ASoC component.
It's optional and can be NULL unless you need the sync operation.
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20191121190709.29121-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/soc-pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 4dd13c9249ab..4457ac374a0e 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -3020,6 +3020,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) if (drv->ioctl) rtd->ops.ioctl = snd_soc_pcm_component_ioctl; + if (drv->sync_stop) + rtd->ops.sync_stop = snd_soc_pcm_component_sync_stop; if (drv->copy_user) rtd->ops.copy_user = snd_soc_pcm_component_copy_user; if (drv->page) |