Skip to contentSkip to conversation

ASoC: omap-dmic: Correct functional clock name

PATCH In review Peter Ujfalusi 2 participants 2 messages Oct 26, 2012 – Oct 27, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: omap-dmic: Correct functional clock name

We should really use "fck" when asking for the functional clock and not "dmic_fck".
This way we can ensure that multiple dmic modules can exist in the system.

---
Hi Mark, Liam,

Would it be possible to send this patch for 3.7 as a fix?
The DMIC driver works withoput this patch but we ask for the functional clock using the wrong name.

Thanks,
Peter

 sound/soc/omap/omap-dmic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/omap/omap-dmic.c +2 -2
index 68f2cd1..5a6aeaf 100644
@@ -464,9 +464,9 @@ static __devinit int asoc_dmic_probe(struct platform_device *pdev)
 
 	mutex_init(&dmic->mutex);
 
-	dmic->fclk = clk_get(dmic->dev, "dmic_fck");
+	dmic->fclk = clk_get(dmic->dev, "fck");
 	if (IS_ERR(dmic->fclk)) {
-		dev_err(dmic->dev, "cant get dmic_fck\n");
+		dev_err(dmic->dev, "cant get fck\n");
 		return -ENODEV;
 	}
 
Signature · 1 line
1.7.12.4
#1 lore raw
Quoted 3 lines · Peter Ujfalusi

Would it be possible to send this patch for 3.7 as a fix?
The DMIC driver works withoput this patch but we ask for the functional clock using the wrong name.

So, this has no practical effect but we should fix it for the next
release...? I've applied it as a fix but better motivation would help
for things like this.