aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-09-26 15:55:57 +0200
committerTakashi Iwai <tiwai@suse.de>2022-09-27 08:49:25 +0200
commita267fdd0a6ce3edd6419b10ee7bcde61aa15eb43 (patch)
tree10fdb25874c3172a4a77c0ceabcdaaf32180fa9e /sound
parentASoC: intel: Replace runtime->status->state reference to runtime->state (diff)
downloadlinux-dev-a267fdd0a6ce3edd6419b10ee7bcde61aa15eb43.tar.xz
linux-dev-a267fdd0a6ce3edd6419b10ee7bcde61aa15eb43.zip
ASoC: sh: Replace runtime->status->state reference to runtime->state
The recent change in ALSA core allows drivers to get the current PCM state directly from runtime object. Replace the calls accordingly. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20220926135558.26580-11-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/rz-ssi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 7ace0c0db5b1..5d6bae33ae34 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -598,7 +598,7 @@ static int rz_ssi_dma_transfer(struct rz_ssi_priv *ssi,
return -EINVAL;
runtime = substream->runtime;
- if (runtime->status->state == SNDRV_PCM_STATE_DRAINING)
+ if (runtime->state == SNDRV_PCM_STATE_DRAINING)
/*
* Stream is ending, so do not queue up any more DMA
* transfers otherwise we play partial sound clips