projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6424142
)
ASoC: omap-dmic: Assign the dai DMA data at earlier time
author
Peter Ujfalusi
<peter.ujfalusi@ti.com>
Wed, 16 Apr 2014 12:46:17 +0000
(15:46 +0300)
committer
Mark Brown
<broonie@linaro.org>
Fri, 18 Apr 2014 17:00:36 +0000
(18:00 +0100)
Assign the dai dma data at dai driver probe time, not in startup.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/omap/omap-dmic.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/omap/omap-dmic.c
b/sound/soc/omap/omap-dmic.c
index 1bd531d718f953c3a2cd0e533e0f4340d3713892..7fb7703264fa961f3869b6bb24385d6aa30efbe9 100644
(file)
--- a/
sound/soc/omap/omap-dmic.c
+++ b/
sound/soc/omap/omap-dmic.c
@@
-113,7
+113,6
@@
static int omap_dmic_dai_startup(struct snd_pcm_substream *substream,
mutex_unlock(&dmic->mutex);
- snd_soc_dai_set_dma_data(dai, substream, &dmic->dma_data);
return ret;
}
@@
-417,6
+416,9
@@
static int omap_dmic_probe(struct snd_soc_dai *dai)
/* Configure DMIC threshold value */
dmic->threshold = OMAP_DMIC_THRES_MAX - 3;
+
+ snd_soc_dai_init_dma_data(dai, NULL, &dmic->dma_data);
+
return 0;
}