Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3292796rwa; Tue, 23 Aug 2022 02:08:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR7FWPbb+Vv/TwFnBTzuMuxfI/OJ5RXGQmeTxtzxbI2PFzRf859Y0fP/7/PtFGG26IbH9+zI X-Received: by 2002:a17:906:9b15:b0:73d:3943:d407 with SMTP id eo21-20020a1709069b1500b0073d3943d407mr12132820ejc.564.1661245695080; Tue, 23 Aug 2022 02:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661245695; cv=none; d=google.com; s=arc-20160816; b=zIJrjMZ+F9rlNnv3G3Bu6vdKC2/u+LlQCOULG1zDepRblT2YyFsXVfiRIZLOztd4G9 0uqC1fsp3xYzI5+RrhZ88+A0iwyu87Xn1e0aA47aISPjxuyEODKiWP3sPVcZUt2QUbGn AqcifQD09pInvUfGwysGCVIKM4Es0nUFX4xaYhjwu97nXwuel31yFrtq5/Tb0MKWku2t 9g9i7mm/EHwTNGpCB2APsT7g/Jt5/n+Rl5hnGAFqigx1OyZC103e3pqnb6wn6m+ftRry snY6emH8MJhbF/ooMVj843u2LHKkjJnQlmCHrJaYaMEf7tqkoJo+DXMxPVxipXiUEWzB tw8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iXKql102jY4YI1J1zN7RmcogbLLSmh/jUHJrYJHNUgs=; b=c9XUL9bm8hR/8VZUHZuZw+XTHDQN1Oe81iGr5agNx/dUWubzgJRBh16mw7dObWfSBm 7DpZY56y4Q/wGBKxA7psT+FKtgsgbkyKpqmKGiF15oYA80nnzocNi8CuW93PBqwQ2bhC 3xwSpcUnVst8jhQpcOJIGQdML/3xgjvQqXVvUBL5ltkr5eNjXp0ADzzB8YxtgoxuyQxL ipHjOUti+NATrivM0iqtUn21CsV2odrRUfGaSaP+t1Na54MYD7C5owhFil4E2GjjnXhG 0AQTWadqJeNBcG1qN0753l1S0HNk83OBe7D+aUNiKzXYlxNUaab1TBF9z2YThkacLlKG fl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lQweAUfo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020a17090634d100b0073d68e62401si6215727ejb.176.2022.08.23.02.07.48; Tue, 23 Aug 2022 02:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lQweAUfo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244415AbiHWInS (ORCPT + 99 others); Tue, 23 Aug 2022 04:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348405AbiHWIlb (ORCPT ); Tue, 23 Aug 2022 04:41:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D0A7960C; Tue, 23 Aug 2022 01:19:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5F02DB81C20; Tue, 23 Aug 2022 08:18:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BAF5C433D7; Tue, 23 Aug 2022 08:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242731; bh=HWPvRsRbImhp+mxkyDgXuQ+z0w/UFpkDqwsXmE51S2M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lQweAUfoYfJ63VYNn+4vju/YisrI0HHq6EFeHO58lu+UmDD+C1ChsffhLbIzZYqHc LarFPRwD+slAfpSyV3Imi2vI8HZdShQoORyOiLeVidFczFbI2Dn2FwxicpVa89do2r 8wsNDYo0XQfZ3P6oay1QdYXYGmHesfPLESraSITM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Martin=20Povi=C5=A1er?= , Mark Brown Subject: [PATCH 5.19 182/365] ASoC: tas2770: Drop conflicting set_bias_level power setting Date: Tue, 23 Aug 2022 10:01:23 +0200 Message-Id: <20220823080125.843427007@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Povišer commit 482c23fbc7e9bf5a7a74defd0735d5346215db58 upstream. The driver is setting the PWR_CTRL field in both the set_bias_level callback and on DAPM events of the DAC widget (and also in the mute_stream method). Drop the set_bias_level callback altogether as the power setting it does is in conflict with the other code paths. Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver") Signed-off-by: Martin Povišer Link: https://lore.kernel.org/r/20220808141246.5749-4-povik+lin@cutebit.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/tas2770.c | 33 --------------------------------- 1 file changed, 33 deletions(-) --- a/sound/soc/codecs/tas2770.c +++ b/sound/soc/codecs/tas2770.c @@ -46,38 +46,6 @@ static void tas2770_reset(struct tas2770 usleep_range(1000, 2000); } -static int tas2770_set_bias_level(struct snd_soc_component *component, - enum snd_soc_bias_level level) -{ - struct tas2770_priv *tas2770 = - snd_soc_component_get_drvdata(component); - - switch (level) { - case SND_SOC_BIAS_ON: - snd_soc_component_update_bits(component, TAS2770_PWR_CTRL, - TAS2770_PWR_CTRL_MASK, - TAS2770_PWR_CTRL_ACTIVE); - break; - case SND_SOC_BIAS_STANDBY: - case SND_SOC_BIAS_PREPARE: - snd_soc_component_update_bits(component, TAS2770_PWR_CTRL, - TAS2770_PWR_CTRL_MASK, - TAS2770_PWR_CTRL_MUTE); - break; - case SND_SOC_BIAS_OFF: - snd_soc_component_update_bits(component, TAS2770_PWR_CTRL, - TAS2770_PWR_CTRL_MASK, - TAS2770_PWR_CTRL_SHUTDOWN); - break; - - default: - dev_err(tas2770->dev, "wrong power level setting %d\n", level); - return -EINVAL; - } - - return 0; -} - #ifdef CONFIG_PM static int tas2770_codec_suspend(struct snd_soc_component *component) { @@ -555,7 +523,6 @@ static const struct snd_soc_component_dr .probe = tas2770_codec_probe, .suspend = tas2770_codec_suspend, .resume = tas2770_codec_resume, - .set_bias_level = tas2770_set_bias_level, .controls = tas2770_snd_controls, .num_controls = ARRAY_SIZE(tas2770_snd_controls), .dapm_widgets = tas2770_dapm_widgets,