summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2023-02-01 04:06:15 +0300
committerMark Brown <broonie@kernel.org>2023-02-01 13:25:07 +0300
commitcbfa85a5c5ab123f4dc99efae1b0182d2f8d956c (patch)
treed84caa60b2b5b4ac9ac00f63e1d58c6759267674
parent98fda42a85b4324b6c404ec163940371c63625df (diff)
downloadlinux-cbfa85a5c5ab123f4dc99efae1b0182d2f8d956c.tar.xz
ASoC: cs42l42: use helper function
Current ASoC has many helper function. Link: https://lore.kernel.org/r/20230201111415.67bd4b7e@canb.auug.org.au Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87bkme6vp5.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/cs42l42-sdw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/cs42l42-sdw.c b/sound/soc/codecs/cs42l42-sdw.c
index 79023268d4c1..7b539ee55499 100644
--- a/sound/soc/codecs/cs42l42-sdw.c
+++ b/sound/soc/codecs/cs42l42-sdw.c
@@ -155,10 +155,7 @@ static int cs42l42_sdw_dai_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_str
if (!sdw_stream)
return 0;
- if (direction == SNDRV_PCM_STREAM_PLAYBACK)
- dai->playback_dma_data = sdw_stream;
- else
- dai->capture_dma_data = sdw_stream;
+ snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
return 0;
}