ASoC: rockchip: rename property 'i2s-controller' to 'audio-controller'
authorSugar Zhang <sugar.zhang@rock-chips.com>
Tue, 16 Jun 2015 06:15:24 +0000 (14:15 +0800)
committerSugar Zhang <sugar.zhang@rock-chips.com>
Tue, 16 Jun 2015 06:15:24 +0000 (14:15 +0800)
because we have i2s controller, spdif controller, so we use audio-controller
to include both.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
sound/soc/rockchip/card_info.c
sound/soc/rockchip/rk_rk616.c
sound/soc/rockchip/rk_rt3261.c

index f787b0dcbf66af58a9765ab7b31e0f035a564471..ddcea4e0bd9bdf2d252428d2a731e73778137b88 100755 (executable)
@@ -18,7 +18,7 @@
 /*
   Get sound card infos:
       audio-codec
-      i2s-controller
+      audio-controller
 
       format
 
       bitclock-master
       frame-master
 
-  Get audio-codec and i2s-controller in this fun,
+  Get audio-codec and audio-controller in this fun,
   and get oher infos in fun snd_soc_of_parse_daifmt().
 
   Set in dts:
                dais {
                        dai0 {
                                audio-codec = <&codec_of_node>;
-                               i2s-controller = <&cpu_of_node>;
+                               audio-controller = <&cpu_of_node>;
                                format = "i2s";
                                //continuous-clock;
                                //bitclock-inversion;
@@ -48,7 +48,7 @@
 
                        dai1 {
                                audio-codec = <&codec_of_node>;
-                               i2s-controller = <&cpu_of_node>;
+                               audio-controller = <&cpu_of_node>;
                                format = "dsp_a";
                                //continuous-clock;
                                bitclock-inversion;
@@ -101,10 +101,10 @@ int rockchip_of_get_sound_card_info_(struct snd_soc_card *card,
 
                card->dai_link[dai_num].cpu_of_node = of_parse_phandle(
                        child_dai_node,
-                       "i2s-controller", 0);
+                       "audio-controller", 0);
                if (!card->dai_link[dai_num].cpu_of_node) {
                        dev_err(card->dev,
-                               "Property 'i2s-controller' missing or invalid\n");
+                               "Property 'audio-controller' missing or invalid\n");
                        return -EINVAL;
                }
 
index 7e11c6907f456f671814fe02437056b8b14029fc..a149ed1c9d237341d6b51e20fc8aa0655c92d7d2 100755 (executable)
@@ -302,7 +302,7 @@ static struct snd_soc_card rockchip_rk616_snd_card = {
 *      dais {
 *              dai0 {
 *                      audio-codec = <&rk616>;
-*                      i2s-controller = <&i2s0>;
+*                      audio-controller = <&i2s0>;
 *                      format = "i2s";
 *                      //continuous-clock;
 *                      //bitclock-inversion;
@@ -313,7 +313,7 @@ static struct snd_soc_card rockchip_rk616_snd_card = {
 *
 *              dai1 {
 *                      audio-codec = <&rk616>;
-*                      i2s-controller = <&i2s0>;
+*                      audio-controller = <&i2s0>;
 *                      format = "dsp_a";
 *                      //continuous-clock;
 *                      bitclock-inversion;
index cf1683ba5bcc5fdc57387ce25c0cb6b8508d1f7e..9a2c2b048e7b97b2c9499f6c34fb871ce3e31b7c 100644 (file)
@@ -259,7 +259,7 @@ dts:
                dais {
                        dai0 {
                                audio-codec = <&rt3261>;
-                               i2s-controller = <&i2s0>;
+                               audio-controller = <&i2s0>;
                                format = "i2s";
                                //continuous-clock;
                                //bitclock-inversion;
@@ -270,7 +270,7 @@ dts:
 
                        dai1 {
                                audio-codec = <&rt3261>;
-                               i2s-controller = <&i2s0>;
+                               audio-controller = <&i2s0>;
                                format = "dsp_a";
                                //continuous-clock;
                                bitclock-inversion;