projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e72659
)
ASoC: sunxi: Use snd_soc_substream_to_rtd() for accessing private_data
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Tue, 30 Apr 2024 14:02:22 +0000
(16:02 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 May 2024 14:59:56 +0000
(23:59 +0900)
Do not open-code snd_soc_substream_to_rtd().
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link:
https://lore.kernel.org/r/20240430-asoc-snd-substream-clean-v1-13-6f8a8902b479@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-dmic.c
patch
|
blob
|
history
diff --git
a/sound/soc/sunxi/sun50i-dmic.c
b/sound/soc/sunxi/sun50i-dmic.c
index dd32780fb6a43a34ce2e09789841c83d4d5ad3a0..884394ddaf86b4abab6a7b8b4f3236ad7219fca3 100644
(file)
--- a/
sound/soc/sunxi/sun50i-dmic.c
+++ b/
sound/soc/sunxi/sun50i-dmic.c
@@
-86,7
+86,7
@@
static const struct dmic_rate dmic_rate_s[] = {
static int sun50i_dmic_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *cpu_dai)
{
- struct snd_soc_pcm_runtime *rtd = s
ubstream->private_data
;
+ struct snd_soc_pcm_runtime *rtd = s
nd_soc_substream_to_rtd(substream)
;
struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0));
/* only support capture */