]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ASoC:tegra-alt:Set Ignore susp for all codec links
authorManoj Gangwal <mgangwal@nvidia.com>
Tue, 24 Nov 2015 10:29:08 +0000 (15:59 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 30 Nov 2015 18:12:20 +0000 (10:12 -0800)
Set Ignore suspend bit for all codec dai links.
It will help to avoid dapm sync calls during
suspend operation which is consuming significant
time and causing delay in entering lp0 state.

Bug 200152856

Change-Id: Iea70de203233fbc5e5140a3d8773ed69ab64d42e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/837085
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
arch/arm64/boot/dts/tegra210-hawkeye-p2290-common.dtsi
arch/arm64/boot/dts/tegra210-jetson-cv-base-p2597-2180-a00.dts
arch/arm64/boot/dts/tegra210-jetson-e-base-p2595-0000-a00.dts
sound/soc/tegra-alt/tegra_asoc_machine_alt.c

index ca6317cf0cc70271ea9b894adce87a94a635ad1c..5b4c320fe08842bb458fab4f06f81674fdabfb7d 100644 (file)
                        bclk_ratio = <0>;
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "x";
                };
                nvidia,dai-link-2 {
                        bit-format = "s16_le";
                        bclk_ratio = <4>;
                        srate = <8000>;
+                       ignore_suspend;
                        num-channel = <1>;
                        name-prefix = "y";
                };
                        bit-format = "s16_le";
                        bclk_ratio = <0>;
                        srate = <48000>;
+                       ignore_suspend;
                        num-channel = <2>;
                        name-prefix = "z";
                };
                         bclk_ratio = <0>;
                         srate = <48000>;
                         num-channel = <2>;
+                        ignore_suspend;
                         name-prefix = "k";
                 };
        };
index 752dcc448f31e96e01bbe47bf58b50718ad8e60f..f2ca8c56913b4ab11d22cae5c171456f78545e1e 100644 (file)
                        bclk_ratio = <0>;
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "x";
                };
 
                        bclk_ratio = <4>;
                        srate = <8000>;
                        num-channel = <1>;
+                       ignore_suspend;
                        name-prefix = "y";
                };
 
                        bit-format = "s16_le";
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "z";
                };
 
                        bclk_ratio = <0>;
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "l";
                };
        };
index 367b933d315ed75aa060ea83d8ae416478afb52e..da7579df5231fbfece9081be2bcb025450386cf8 100644 (file)
                        bclk_ratio = <0>;
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "x";
                };
                nvidia,dai-link-2 {
                        bclk_ratio = <4>;
                        srate = <8000>;
                        num-channel = <1>;
+                       ignore_suspend;
                        name-prefix = "y";
                };
                nvidia,dai-link-3 {
                        bit-format = "s16_le";
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "z";
                };
                nvidia,dai-link-4 {
                        bclk_ratio = <0>;
                        srate = <48000>;
                        num-channel = <2>;
+                       ignore_suspend;
                        name-prefix = "l";
                };
        };
index 43434edf1a3653025c9a0cf06be591700c5f750b..65ee03816eed1910d39d8886cf0c630057d5af1e 100644 (file)
@@ -1999,6 +1999,8 @@ struct snd_soc_dai_link *tegra_machine_new_codec_links(
 
                        tegra_codec_links[i].stream_name = "Playback";
                        tegra_codec_links[i].cpu_dai_name = "DAP";
+                       tegra_codec_links[i].ignore_suspend =
+                               of_property_read_bool(subnp, "ignore_suspend");
                        if (of_property_read_string(subnp, "codec-dai-name",
                                &tegra_codec_links[i].codec_dai_name)) {
                                dev_err(&pdev->dev,