[RAMEN9610-10593][COMMON] ASoC: abox: use non-count-based PM api in tickle
authorShinHyung <s47.kang@samsung.com>
Fri, 28 Dec 2018 05:00:32 +0000 (14:00 +0900)
committerhskang <hs1218.kang@samsung.com>
Wed, 9 Jan 2019 09:12:36 +0000 (18:12 +0900)
Count based API isn't needed in the tickle.

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

index 65e469d3e7fa2ff018ccd485051ce13c42f19ea6..f43bbaa369ca946fd94d18cd9e81a692893add45 100644 (file)
@@ -1649,7 +1649,7 @@ static void abox_tickle_work_func(struct work_struct *work)
 
        dev_dbg(dev, "%s\n", __func__);
 
-       pm_runtime_put(dev);
+       pm_request_idle(dev);
 }
 static DECLARE_DELAYED_WORK(abox_tickle_work, abox_tickle_work_func);
 
@@ -1664,7 +1664,7 @@ static int abox_tickle_put(struct snd_kcontrol *kcontrol,
        dev_dbg(dev, "%s(%ld)\n", __func__, val);
 
        if (!!val) {
-               pm_runtime_get(dev);
+               pm_request_resume(dev);
                schedule_delayed_work(&data->tickle_work, 1 * HZ);
        }