OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ae035e
)
ASoC: sprd: use asoc_substream_to_rtd()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Mon, 20 Jul 2020 01:19:37 +0000
(10:19 +0900)
committer
Mark Brown
<broonie@kernel.org>
Thu, 23 Jul 2020 18:07:40 +0000
(19:07 +0100)
Now we can use asoc_substream_to_rtd() macro,
let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87y2nfyoes.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sprd/sprd-pcm-dma.c
patch
|
blob
|
history
diff --git
a/sound/soc/sprd/sprd-pcm-dma.c
b/sound/soc/sprd/sprd-pcm-dma.c
index
5074123
..
5e3a96d
100644
(file)
--- a/
sound/soc/sprd/sprd-pcm-dma.c
+++ b/
sound/soc/sprd/sprd-pcm-dma.c
@@
-190,7
+190,7
@@
static int sprd_pcm_hw_params(struct snd_soc_component *component,
{
struct snd_pcm_runtime *runtime = substream->runtime;
struct sprd_pcm_dma_private *dma_private = runtime->private_data;
- struct snd_soc_pcm_runtime *rtd =
substream->private_data
;
+ struct snd_soc_pcm_runtime *rtd =
asoc_substream_to_rtd(substream)
;
struct sprd_pcm_dma_params *dma_params;
size_t totsize = params_buffer_bytes(params);
size_t period = params_period_bytes(params);