From 5fd49711c903cf78fceaa18006d2232d7dd4f1e7 Mon Sep 17 00:00:00 2001 From: Vaibhav Raut Date: Tue, 20 Dec 2022 17:23:04 +0530 Subject: [PATCH] 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: Vaibhav Raut --- asoc/codecs/wsa881x-analog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asoc/codecs/wsa881x-analog.c b/asoc/codecs/wsa881x-analog.c index dcbf3a3f4331..cb8ff542bd81 100644 --- a/asoc/codecs/wsa881x-analog.c +++ b/asoc/codecs/wsa881x-analog.c @@ -1,6 +1,7 @@ // 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 @@ -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;