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

Commit 3c2982cb authored by Kamalakar Yalasiri's avatar Kamalakar Yalasiri
Browse files

asoc: msm_sdw: Revert adsp ready check for read/write

Revert adsp ready state check while codec read/write
as it is inducing delay causing CTS failures for playback.

Change-Id: Ie8b9a6e3c01973ae4cc39555d950ddd03db47162
parent 8d21f18f
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2018, 2020-2021, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -328,8 +328,7 @@ static int msm_sdw_ahb_write_device(struct msm_sdw_priv *msm_sdw,
{
	u32 temp = (u32)(*value) & 0x000000FF;

	if (!msm_sdw->dev_up ||
	    !q6core_is_adsp_ready()) {
	if (!msm_sdw->dev_up) {
		dev_err_ratelimited(msm_sdw->dev, "%s: q6 not ready\n",
				    __func__);
		return 0;
@@ -344,8 +343,7 @@ static int msm_sdw_ahb_read_device(struct msm_sdw_priv *msm_sdw,
{
	u32 temp;

	if (!msm_sdw->dev_up ||
	    !q6core_is_adsp_ready()) {
	if (!msm_sdw->dev_up) {
		dev_err_ratelimited(msm_sdw->dev, "%s: q6 not ready\n",
				    __func__);
		return 0;