diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-02-28 10:48:35 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-28 17:06:09 +0000 |
commit | f1861a7c58ba1ba43c7adff6909d9a920338e4a8 (patch) | |
tree | 432f0c65c253bc436397cc2109bede656c9d36c4 /sound | |
parent | 9b3193089e77d3b59b045146ff1c770dd899acb1 (diff) | |
download | linux-f1861a7c58ba1ba43c7adff6909d9a920338e4a8.tar.gz linux-f1861a7c58ba1ba43c7adff6909d9a920338e4a8.tar.bz2 linux-f1861a7c58ba1ba43c7adff6909d9a920338e4a8.zip |
ASoC: soc-component: tidyup snd_soc_pcm_component_sync_stop()
commit 1e5ddb6ba73894 ("ASoC: component: Add sync_stop PCM ops")
added snd_soc_pcm_component_sync_stop(), but it is checking
ioctrl instead of sync_stop. This is bug.
This patch fixup it.
Fixes: commit 1e5ddb6ba73894 ("ASoC: component: Add sync_stop PCM ops")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/8736av7a8c.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-component.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index 14e175cdeeb8..785a0385cc7f 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -451,7 +451,7 @@ int snd_soc_pcm_component_sync_stop(struct snd_pcm_substream *substream) int i, ret; for_each_rtd_components(rtd, i, component) { - if (component->driver->ioctl) { + if (component->driver->sync_stop) { ret = component->driver->sync_stop(component, substream); if (ret < 0) |