Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1330020rdb; Wed, 6 Dec 2023 16:02:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEB71l27VA+A0lPK8xfl5Ke7n83XBhuWavIbJlo6pfigag3OBcN9jRK9SElwYhYwhYVO5u0 X-Received: by 2002:a05:6a00:1345:b0:6ce:4018:a726 with SMTP id k5-20020a056a00134500b006ce4018a726mr2202560pfu.62.1701907335865; Wed, 06 Dec 2023 16:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907335; cv=none; d=google.com; s=arc-20160816; b=WkZP0ksjmZm7tLFU/Df1LG2Sh1k7v4MzP6Nw1sy5I/V0T86cuSWb4WpJoZfvCu6MM2 KNTQwx2wdHXlCK8uunho5X4p04Dna4M2qqIbacVrFz2c6OsqTTQkeT8x+pqKba9z2qUt QIOHdXDs4no3E9Di0qNtMPqiN+oI5PnmcgYYi4ytMyX2hE5uWooBTrMHBvO++91USmfr 3tBzNWh/oNw2fejmz7/1JQ2SJIZHNpaHXRU9/TxBTXxsTjpP5FgsuoKi7ebtQi3liy3p SSQJGTMohAeSNWm3eyoXb9ywNrvOIoSO7YGJDCCLOQbmqLTE0NyKwrd06JPZVvXfLnQI fTpw== 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=MILaDtlMFI4r/YGM1z/F1DIi3qk8+YYzWVswPw5ji4Y=; fh=zySoyVfK/7ExaDz2MWyww8poQ40q3tZak5TTvfb/Ovc=; b=f9rrZ+bvJS9P6Iab8e3XyFsxGKudiVP+FqsW3JKPvco+0yMpehQ8ViPn5Ogbbe1fQR R6QONKRy1qCTF9CyN0UKkRM3WmeAWQXLVsb1HrkoJ1CAY1sQO2osNCphq1qzgwd+3r78 52wub0XZMcX9YjmkwBcgoy/GUT4RgDkGihJV3rwgFaKpNHt0DY31WoOBWX/0npqmZqvb jPA/ic3RbjuX49lrvYJdtBNJLVA6fzWzgeOpKQccgfL5CnkILc4Ljz4Of+nRaewcyIX/ ajFqQk+Ry1IM0Bl1bqUom6b5ZReY5e5jl506l9/n+NXg9uosy3G/WytKj2JCyZah+R5H Rhjg== 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:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b5-20020a056a000a8500b006cc05bcf542si141145pfl.319.2023.12.06.16.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:02:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 21A54802403F; Wed, 6 Dec 2023 16:00:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441883AbjLGAAO (ORCPT + 99 others); Wed, 6 Dec 2023 19:00:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232333AbjLGAAA (ORCPT ); Wed, 6 Dec 2023 19:00:00 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7422B19E for ; Wed, 6 Dec 2023 16:00:07 -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 00000000000716F3.0000000065710B05.0011905D; Thu, 07 Dec 2023 01:00:05 +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 07/16] ALSA: hda/tas2781: load_calibration just load Date: Thu, 7 Dec 2023 00:59:48 +0100 Message-ID: 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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 16:00:33 -0800 (PST) Move the apply_calibration outside to make it clearer. Signed-off-by: Gergo Koteles --- sound/pci/hda/tas2781_hda_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 2b5031e4dda3..c82ed2413fcb 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -470,7 +470,6 @@ static int load_calibration_efi_1(struct tasdevice_priv *tas_priv) dev_dbg(tas_priv->dev, "%4ld-%2d-%2d, %2d:%2d:%2d\n", tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); - tas2781_apply_calib(tas_priv); } else tas_priv->cali_data.total_sz = 0; @@ -548,6 +547,7 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context) * calibrated data inside algo. */ tasdevice_load_calibration(tas_priv); + tasdevice_apply_calibration(tas_priv); out: if (tas_priv->fw_state == TASDEVICE_DSP_FW_FAIL) { -- 2.43.0