[RAMEN9610-17320][9610] ASoC: abox: Direct clock control
authorShinHyung <s47.kang@samsung.com>
Tue, 4 Jun 2019 09:41:50 +0000 (18:41 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Thu, 31 Oct 2019 03:20:56 +0000 (11:20 +0800)
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 4b5baa3c9598511effd45efcb5a95d6ece0f8d91..130a811bacf905a6c9e10a1250e37696249a9179 100644 (file)
@@ -5295,8 +5295,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);