projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a67ad1
)
ASoC: cs35l56: Remove NULL check from cs35l56_sdw_dai_set_stream()
author
Richard Fitzgerald
<rf@opensource.cirrus.com>
Thu, 1 Jun 2023 12:49:07 +0000
(13:49 +0100)
committer
Mark Brown
<broonie@kernel.org>
Thu, 1 Jun 2023 13:11:51 +0000
(14:11 +0100)
The dma pointer must be set to the passed stream pointer, even
if that pointer is NULL.
Fixes: e49611252900 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20230601124907.3128170-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs35l56.c
b/sound/soc/codecs/cs35l56.c
index d1677d76d018881ac28bf034baaac1f762557bdb..e0d2b9bb232621babd7caa90f38720cbf42a7b65 100644
(file)
--- a/
sound/soc/codecs/cs35l56.c
+++ b/
sound/soc/codecs/cs35l56.c
@@
-704,9
+704,6
@@
static int cs35l56_sdw_dai_hw_free(struct snd_pcm_substream *substream,
static int cs35l56_sdw_dai_set_stream(struct snd_soc_dai *dai,
void *sdw_stream, int direction)
{
- if (!sdw_stream)
- return 0;
-
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
return 0;