ASoC: simple-scu-card: code sync: tidyup TDM setting position
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 25 Aug 2016 01:58:55 +0000 (01:58 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 20:21:39 +0000 (21:21 +0100)
simple sound card family are using very similar style, but because of its
historical reason, there are small differences. For example pointer style,
function name, caller postion etc...
This patch tidyup TDM setting position

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-scu-card.c

index abe31dcfb4e725847ba1c40170e5bece9c7d8ae3..b9973a56bcb02f896b2a0273eabc7812428e71e3 100644 (file)
@@ -111,15 +111,6 @@ static int asoc_simple_card_parse_links(struct device_node *np,
        struct asoc_simple_dai *dai_props = simple_priv_to_props(priv, idx);
        int ret;
 
-       /* Parse TDM slot */
-       ret = snd_soc_of_parse_tdm_slot(np,
-                                       &dai_props->tx_slot_mask,
-                                       &dai_props->rx_slot_mask,
-                                       &dai_props->slots,
-                                       &dai_props->slot_width);
-       if (ret)
-               return ret;
-
        if (is_fe) {
                int is_single_links = 0;
 
@@ -178,6 +169,14 @@ static int asoc_simple_card_parse_links(struct device_node *np,
                                              PREFIX "prefix");
        }
 
+       ret = snd_soc_of_parse_tdm_slot(np,
+                                       &dai_props->tx_slot_mask,
+                                       &dai_props->rx_slot_mask,
+                                       &dai_props->slots,
+                                       &dai_props->slot_width);
+       if (ret)
+               return ret;
+
        ret = asoc_simple_card_canonicalize_dailink(dai_link);
        if (ret < 0)
                return ret;
This page took 0.040061 seconds and 5 git commands to generate.