[RAMEN9610-19621][9610] ASoC: abox: Direct clock control
authorShinHyung <s47.kang@samsung.com>
Tue, 4 Jun 2019 09:41:50 +0000 (18:41 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Mon, 9 Sep 2019 11:08:49 +0000 (20:08 +0900)
To prevent the failure of the freezing task when entering suspend mode,
Change clock control method from gear_sync to set_rate.

Change-Id: Ieee64f5c90c7b4650de7259e32ca845190dbc8a9
Signed-off-by: ShinHyung <s47.kang@samsung.com>
sound/soc/samsung/abox/abox.c

index 089cba7f1438bd0b30065ac5bd81966236517d79..c637dc31b868253378f7ee0b8cd4294b9cb2ec7e 100644 (file)
@@ -5291,8 +5291,9 @@ static int abox_enable(struct device *dev)
 
        abox_gic_enable_irq(data->dev_gic);
 
-       abox_request_cpu_gear_sync(dev, data, (void *)DEFAULT_CPU_GEAR_ID,
-                       ABOX_CPU_GEAR_MAX);
+       ret = clk_set_rate(data->clk_pll, AUD_PLL_RATE_HZ_FOR_48000);
+       if (ret < 0)
+               dev_warn(dev, "setting audio pll clock to 1.2Ghz is failed: %d\n",      ret);
 
        if (is_secure_gic()) {
                exynos_pmu_write(ABOX_MAGIC, 0);