Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 641e6453 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: Fix for SSR issue on msm8953"

parents c372adb2 49bd2760
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2018, 2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2018, 2020-2021, The Linux Foundation. All rights reserved.
 */
#include <linux/module.h>
#include <linux/init.h>
@@ -3931,13 +3931,15 @@ static int sdm660_cdc_notifier_service_cb(struct notifier_block *nb,
	bool timedout;
	unsigned long timeout;
	static bool initial_boot = true;
	struct audio_notifier_cb_data *cb_data = ptr;

	component = sdm660_cdc_priv->component;
	dev_dbg(component->dev, "%s: Service opcode 0x%lx\n", __func__, opcode);

	switch (opcode) {
	case AUDIO_NOTIFIER_SERVICE_DOWN:
		if (initial_boot) {
		if (initial_boot &&
			cb_data->service == AUDIO_NOTIFIER_PDR_SERVICE) {
			initial_boot = false;
			break;
		}
@@ -3946,7 +3948,8 @@ static int sdm660_cdc_notifier_service_cb(struct notifier_block *nb,
		msm_anlg_cdc_device_down(component);
		break;
	case AUDIO_NOTIFIER_SERVICE_UP:
		if (initial_boot)
		if (initial_boot &&
			cb_data->service == AUDIO_NOTIFIER_PDR_SERVICE)
			initial_boot = false;
		dev_dbg(component->dev,
			"ADSP is about to power up. bring up codec\n");