diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2023-01-31 02:00:16 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-31 11:04:57 +0000 |
commit | 8ec352362848d8cc9500ccfb051810597c0abf8a (patch) | |
tree | 372dba638b1edceb7874956939a44b48cb65dae2 /sound/soc/codecs/rt1318-sdw.c | |
parent | 812c2852c59f1f532ea9b53d9bbe86231dd83fea (diff) | |
download | lwn-8ec352362848d8cc9500ccfb051810597c0abf8a.tar.gz lwn-8ec352362848d8cc9500ccfb051810597c0abf8a.zip |
ASoC: rt: use helper function
Current ASoC has many helper function.
This patch use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87zg9zea4w.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1318-sdw.c')
-rw-r--r-- | sound/soc/codecs/rt1318-sdw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt1318-sdw.c b/sound/soc/codecs/rt1318-sdw.c index c6ec86e97a6e..c34975f958c4 100644 --- a/sound/soc/codecs/rt1318-sdw.c +++ b/sound/soc/codecs/rt1318-sdw.c @@ -575,10 +575,7 @@ static int rt1318_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream, stream->sdw_stream = sdw_stream; /* Use tx_mask or rx_mask to configure stream tag and set dma_data */ - if (direction == SNDRV_PCM_STREAM_PLAYBACK) - dai->playback_dma_data = stream; - else - dai->capture_dma_data = stream; + snd_soc_dai_dma_data_set(dai, direction, stream); return 0; } |