From: Kuninori Morimoto Date: Fri, 15 May 2020 00:47:57 +0000 (+0900) Subject: ASoC: dwc: use snd_soc_xxx_active() X-Git-Tag: v5.8-rc1~47^2^2~82^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8db4f94fb3088528a8a64e2c39c8bf764a9433b0;p=thirdparty%2Fkernel%2Flinux.git ASoC: dwc: use snd_soc_xxx_active() We have snd_soc_dai/dai_stream/component_active() macro This patch uses it. Signed-off-by: Kuninori Morimoto Reviewed-by: Ranjani Sridharan Link: https://lore.kernel.org/r/87k11e58hu.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index 515f88456dbd8..fd4160289faca 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -429,7 +429,7 @@ static int dw_i2s_resume(struct snd_soc_component *component) for_each_component_dais(component, dai) { for_each_pcm_streams(stream) - if (dai->stream_active[stream]) + if (snd_soc_dai_stream_active(dai, stream)) dw_i2s_config(dev, stream); }