dsp: add dt flag for enable and disable sleep api
add dt flag for enable and disable sleep api. Change-Id: I97e9aa8c319d478b2fa979c38f5cc4559e1fb435 Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:
@@ -523,14 +523,17 @@ static int audio_prm_probe(struct gpr_device *adev)
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
struct device *dev = &adev->dev;
|
|
||||||
|
|
||||||
if (!audio_notifier_probe_status()) {
|
if (!audio_notifier_probe_status()) {
|
||||||
pr_err("%s: Audio notify probe not completed, defer audio prm probe\n",
|
pr_err("%s: Audio notify probe not completed, defer audio prm probe\n",
|
||||||
__func__);
|
__func__);
|
||||||
return -EPROBE_DEFER;
|
return -EPROBE_DEFER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = of_property_read_u32(adev->dev.of_node,
|
||||||
|
"qcom,sleep-api-supported", &g_prm.prm_sleep_api_supported);
|
||||||
|
if (ret < 0)
|
||||||
|
pr_debug("%s: sleep API not supported\n", __func__);
|
||||||
|
|
||||||
ret = audio_notifier_register("audio_prm", AUDIO_NOTIFIER_ADSP_DOMAIN,
|
ret = audio_notifier_register("audio_prm", AUDIO_NOTIFIER_ADSP_DOMAIN,
|
||||||
&service_nb);
|
&service_nb);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
@@ -542,11 +545,6 @@ static int audio_prm_probe(struct gpr_device *adev)
|
|||||||
|
|
||||||
dev_set_drvdata(&adev->dev, &g_prm);
|
dev_set_drvdata(&adev->dev, &g_prm);
|
||||||
|
|
||||||
ret = of_property_read_u32(dev->of_node,
|
|
||||||
"qcom,sleep-api-supported", &g_prm.prm_sleep_api_supported);
|
|
||||||
if (ret < 0)
|
|
||||||
pr_debug("%s: sleep API not supported\n", __func__);
|
|
||||||
|
|
||||||
g_prm.adev = adev;
|
g_prm.adev = adev;
|
||||||
|
|
||||||
init_waitqueue_head(&g_prm.wait);
|
init_waitqueue_head(&g_prm.wait);
|
||||||
|
Reference in New Issue
Block a user