From patchwork Thu Dec 7 00:04:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gergo Koteles X-Patchwork-Id: 174806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4457320vqy; Wed, 6 Dec 2023 16:05:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPF0qtd+BpM+JEvGkgIHgObhU9r1V2rJKSYwJaNWrMqQLJAHqjcx8MYIPIV9ghzksj/EFJ X-Received: by 2002:a05:6a00:23c4:b0:6ce:49d1:6dc4 with SMTP id g4-20020a056a0023c400b006ce49d16dc4mr1959712pfc.47.1701907556066; Wed, 06 Dec 2023 16:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907556; cv=none; d=google.com; s=arc-20160816; b=g9CuEf3ETtBjIB0sG2QmjUeC0CNwerVz/XzyRQFtb0tMwR25UNtdELZK3vrKmeXvzQ JYpFYsW/O+78lBDLZWr5PXNTsTt8TFr05T3CyZbvixaDCMavw+0FTq0TnkwVcXJXiij8 a2e+MJRaJUfR0XYhiDOJQOaAyzQbklUyx5NTTJ0xfFJ7uB8EciVq25aVeLrOegadCu5t pDYYVmhbA0Klfl7S/Bxc0dzkzwgYwGPwnTgJvhCW+DYbrSXZAaZ6I5iM6I+xcIUHpm8m 7jaVz39mCwI+kCXfK2pgj4q7ZLeM+bD71jgmdZ3oNBhJZOVB6Dg1rRMP31X9NXe1tWY+ Eesw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qKKeCQNv26VnUw25WH2zrBdhC3I0djihBPACF7FEjvY=; fh=zySoyVfK/7ExaDz2MWyww8poQ40q3tZak5TTvfb/Ovc=; b=qT8a7Ei4mR7pSPX+M3pWh2/1OZf7RXJmc5lVpWyAN+TMzjuRbwgmUNAPQTU2C6HIEo cDWizOoLaZafB1RbWxgn1cUYk1fUfBEfB7zabTZIdiblzaa5L+lb++Fr6DdRFHdUgiZH ltDgtQl5YHPdacZT8sjge+daIA3WnyxUQVajN1BOSD2t1OQS0oDk3iMcPyNwbvtnrRHM 0dst/L/hxznsx/TLEQnzBRTLDtlzN9U6teiDqptaUwLFEyAycIRsrXS7wti3i4LqAUex SSVd/ZdIJWCCfW2byjz+4uFbZEGQJKgfIA0TtMOeiqngI/aK3yLUB0Tffza2iSpAUxAt GmMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ka34-20020a056a0093a200b006cd97ba7ccbsi150181pfb.232.2023.12.06.16.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:05:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2777E8066776; Wed, 6 Dec 2023 16:05:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441863AbjLGAFJ (ORCPT + 99 others); Wed, 6 Dec 2023 19:05:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235150AbjLGAEn (ORCPT ); Wed, 6 Dec 2023 19:04:43 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9092DD66 for ; Wed, 6 Dec 2023 16:04:41 -0800 (PST) Received: from fedori.lan (51b690cd.dsl.pool.telekom.hu [::ffff:81.182.144.205]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000071708.0000000065710C17.0011910F; Thu, 07 Dec 2023 01:04:39 +0100 From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Gergo Koteles Subject: [PATCH 16/16] ALSA: hda/tas2781: configure the amp after firmware load Date: Thu, 7 Dec 2023 01:04:32 +0100 Message-ID: <06f8c1eddd0e91f08e35722ef7df240113c32e1f.1701906455.git.soyer@irl.hu> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Mime-Version: 1.0 X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 16:05:27 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784579417333264050 X-GMAIL-MSGID: 1784579417333264050 Make the amp available immediately after a module load to avoid having to wait for a PCM hook action. (eg. unloading & loading the module while listening music) Signed-off-by: Gergo Koteles --- sound/pci/hda/tas2781_hda_i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index f72e0beab1fb..07bdff87c962 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -659,6 +659,8 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context) tasdevice_load_calibration(tas_priv); tasdevice_apply_calibration(tas_priv); + tasdevice_tuning_switch(tas_hda->priv, 0); + out: mutex_unlock(&tas_hda->priv->codec_lock); if (fmw)