Skip to contentSkip to conversation

ASoC: simple-card: tidyup cpu/codec dai_fmt settings for non-DT

PATCH Applied Kuninori Morimoto 2 participants 2 messages Mar 3, 2014 – Mar 5, 2014

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

PATCH 1/1 ASoC: simple-card: tidyup cpu/codec dai_fmt settings for non-DT

From: Kuninori Morimoto <[email protected]>

30d0341e7da0c012f64fb290dd1153360fb49a8d (ASoC: simple-card: simplify the daifmt code) simplify cpu/codec dai_fmt which consists from dai specific format + common format. But, it didn't care about non-DT case. This patch fixes it

---
 sound/soc/generic/simple-card.c |    3 +++
 1 file changed, 3 insertions(+)
sound/soc/generic/simple-card.c +3 -0
index 034a2b7..7cabcc5 100644
@@ -307,6 +307,9 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
 						sizeof(priv->cpu_dai));
 		memcpy(&priv->codec_dai, &cinfo->codec_dai,
 						sizeof(priv->codec_dai));
+
+		priv->cpu_dai.fmt	|= cinfo->daifmt;
+		priv->codec_dai.fmt	|= cinfo->daifmt;
 	}
 
 	/*
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 5 lines · Kuninori Morimoto

From: Kuninori Morimoto <[email protected]>

30d0341e7da0c012f64fb290dd1153360fb49a8d
(ASoC: simple-card: simplify the daifmt code)
simplify cpu/codec dai_fmt which consists from

Applied, thanks.