From patchwork Sat Apr 11 12:09:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 228043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 899CAC2BA2B for ; Sat, 11 Apr 2020 12:23:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 597BA20787 for ; Sat, 11 Apr 2020 12:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586607802; bh=HWX2Jo9dJpCSYztlJEWVDnbC09w2eY7uHQ4hMBT7CWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kFwZLkGXAo5OAca6WBL5mXDBSA1dBlosgRgBUNxZ0P1kSOGE17+/Yiq+YeJYDgBSa n3tGFwgx7EQsCfAVrr2o19p6wTlsPD+oAg8Qf7iRTiu08jLK4mpYakdWevcy2mQ8EJ vBU74aXsrtLslRRn/nnFL6R5pKgNhoSR+Es80fZU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbgDKMTn (ORCPT ); Sat, 11 Apr 2020 08:19:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:55262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728850AbgDKMTm (ORCPT ); Sat, 11 Apr 2020 08:19:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6BFD82084D; Sat, 11 Apr 2020 12:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586607582; bh=HWX2Jo9dJpCSYztlJEWVDnbC09w2eY7uHQ4hMBT7CWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SAbPMLvbsmcIJQybF4KZHikyzF/b9gTmnv5SSq4f6oIYnZB2hVm+U+vEr3h1qIZBU M7vAPF6XvmnVGeFSFbQMmwZkWbXZjWGPPWSfa1uIWeg0Ct6SdnJjPYBD5P90E+21XR O3GjJR5hejsFYYDQ2AwLvdW97ojhcd3VfZlhKhp4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonghwan Choi , Dan Murphy , Mark Brown Subject: [PATCH 5.5 36/44] ASoC: tas2562: Fixed incorrect amp_level setting. Date: Sat, 11 Apr 2020 14:09:56 +0200 Message-Id: <20200411115500.465895250@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411115456.934174282@linuxfoundation.org> References: <20200411115456.934174282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jonghwan Choi commit eedf8a126629bf9db8ad3a2a5dc9dc1798fb2302 upstream. According to the tas2562 datasheet,the bits[5:1] represents the amp_level value. So to set the amp_level value correctly,the shift value should be set to 1. Signed-off-by: Jonghwan Choi Acked-by: Dan Murphy Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200319140043.GA6688@jhbirdchoi-MS-7B79 Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/tas2562.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/codecs/tas2562.c +++ b/sound/soc/codecs/tas2562.c @@ -408,7 +408,7 @@ static const struct snd_kcontrol_new vse 1, 1); static const struct snd_kcontrol_new tas2562_snd_controls[] = { - SOC_SINGLE_TLV("Amp Gain Volume", TAS2562_PB_CFG1, 0, 0x1c, 0, + SOC_SINGLE_TLV("Amp Gain Volume", TAS2562_PB_CFG1, 1, 0x1c, 0, tas2562_dac_tlv), };