Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1332394rdb; Wed, 6 Dec 2023 16:06:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+PhpV9Fe8QymfMfHu+HEjisE25vh9fVqQAHHd0kHVpYGSOXpdQ5oifiw0AVFSMsexUxU8 X-Received: by 2002:a17:902:bb8e:b0:1d0:796c:b06d with SMTP id m14-20020a170902bb8e00b001d0796cb06dmr1316697pls.7.1701907567929; Wed, 06 Dec 2023 16:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907567; cv=none; d=google.com; s=arc-20160816; b=xTDIBKFWycCmPGgHwNF9z7qqD5u9/7dUhAs6lTEK2VAdMS7HoFYIlI/KwOu0p9mYU1 ludz6E2mtUw3ulL2VtsHy4X2zGDVFYPbt8qD3+u65+iXFlr79eLw9J7I2g3RowcPbtTp M7jwzcbHBzV3XJl3XxKq/guL8uosQiLoYxAyhjuFFVgYvzf49XgYE6eFtkI8Pryyh1u+ 37G8M+Am+rRvXtQgwS8t9NSclA46qrtNke/jnrn1iLObd32DZZBpXQ9GRySipzesD9bd oOB1ZtzZrJg5lgQNVIl9BTS8TiozOwu5gDJKz5pjRv0OXGo3iLR/VUUh/RT8ibFoqZrJ QHgQ== 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 Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n14-20020a170902e54e00b001d0824216a3si58857plf.432.2023.12.06.16.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:06:07 -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 60D2580A9AAF; Wed, 6 Dec 2023 16:05:32 -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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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:32 -0800 (PST) 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) -- 2.43.0