Skip to content

Commit f1861a7

Browse files
morimotobroonie
authored andcommitted
ASoC: soc-component: tidyup snd_soc_pcm_component_sync_stop()
commit 1e5ddb6 ("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 1e5ddb6 ("ASoC: component: Add sync_stop PCM ops") Signed-off-by: Kuninori Morimoto <[email protected]> Cc: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9b31930 commit f1861a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/soc-component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ int snd_soc_pcm_component_sync_stop(struct snd_pcm_substream *substream)
451451
int i, ret;
452452

453453
for_each_rtd_components(rtd, i, component) {
454-
if (component->driver->ioctl) {
454+
if (component->driver->sync_stop) {
455455
ret = component->driver->sync_stop(component,
456456
substream);
457457
if (ret < 0)

0 commit comments

Comments
 (0)