[alsa-devel] [PATCH] ASoC: simple-card: cleanup asoc_simple_card_parse_of() code
Xiubo Li
Li.Xiubo at freescale.com
Fri Dec 27 04:14:38 CET 2013
Since there is only one common format via "simple-audio-card,format"
for simple card driver(CPU & CODEC DAI), there is no need to do the
INV mask.
Signed-off-by: Xiubo Li <Li.Xiubo at freescale.com>
---
sound/soc/generic/simple-card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index d340320..8189e68 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -135,7 +135,7 @@ static int asoc_simple_card_parse_of(struct device_node *node,
/* get CPU/CODEC common format via simple-audio-card,format */
info->daifmt = snd_soc_of_parse_daifmt(node, "simple-audio-card,") &
- (SND_SOC_DAIFMT_FORMAT_MASK | SND_SOC_DAIFMT_INV_MASK);
+ SND_SOC_DAIFMT_FORMAT_MASK;
ret = asoc_simple_card_get_component(node, info);
if (ret)
--
1.8.4
More information about the Alsa-devel
mailing list