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>
This commit is contained in:
Kuninori Morimoto 2023-02-01 01:06:15 +00:00 committed by Mark Brown
parent 98fda42a85
commit cbfa85a5c5
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}