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

Commit 5fd49711 authored by Vaibhav Raut's avatar Vaibhav Raut
Browse files

asoc: wsa881x: Fix to set the correct volume level



Equality operator was used instead of assignment.
Updated the same.

Change-Id: I6f49dc8801669ae1734b9b3f31b57a6a8dfdfbde
Signed-off-by: default avatarVaibhav Raut <quic_vraut@quicinc.com>
parent 03feca09
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2016, 2018-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#include <linux/clk.h>
@@ -1470,7 +1471,7 @@ static int wsa881x_i2c_probe(struct i2c_client *client,
					pdata->regmap[WSA881X_DIGITAL_SLAVE],
					WSA881X_DIGITAL_SLAVE);
		}
		pdata->wsa881x_id == wsa881x_i2c_read_device(pdata,
		pdata->wsa881x_id = wsa881x_i2c_read_device(pdata,
					WSA881X_OTP_REG_0);
		if (pdata->wsa881x_id & 0x01) {
			pdata->wsa881x_id = WSA8815;