Skip to contentSkip to conversation

ASoC: samsung: Ensure DMA data is initialised for secondary DAI

PATCH New Mark Brown 1 participant 1 message Dec 5, 2013

Subsystems (4)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: samsung: Ensure DMA data is initialised for secondary DAI

From: Mark Brown <[email protected]>

While testing the upcoming dmaengine conversion for the driver Padma noticed that the DMA data for the secondard DAI is not being correctly initialised and provided a fix on top of the conversion. Also do this fix for mainline.

---

Compile tested only, I don't have hardware to test.

 sound/soc/samsung/i2s.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
sound/soc/samsung/i2s.c +4 -1
index a5cbdb4f1655..f9f2227421ea 100644
@@ -946,8 +946,11 @@ static int samsung_i2s_dai_probe(struct snd_soc_dai *dai)
 	struct i2s_dai *i2s = to_info(dai);
 	struct i2s_dai *other = i2s->pri_dai ? : i2s->sec_dai;
 
-	if (other && other->clk) /* If this is probe on secondary */
+	if (other && other->clk) { /* If this is probe on secondary */
+		snd_soc_dai_init_dma_data(dai, &other->sec_dai->dma_playback,
+					  NULL);
 		goto probe_exit;
+	}
 
 	i2s->addr = ioremap(i2s->base, 0x100);
 	if (i2s->addr == NULL) {
Signature · 1 line
1.8.5.1