Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4846569rdb; Fri, 29 Dec 2023 16:13:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPnV4b01AAMIPTW/yyCPzSVTGBpsJnvT+CnttMumJu2OluAhnKJzzEv1T137dF8z21uF4V X-Received: by 2002:ad4:5c4b:0:b0:67a:359:a82c with SMTP id a11-20020ad45c4b000000b0067a0359a82cmr22928740qva.22.1703895235187; Fri, 29 Dec 2023 16:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703895235; cv=none; d=google.com; s=arc-20160816; b=BxEKDOBBVnTsq29WbPGNV3ZUF9b6DbM1+aFA+02Ino8wT3Mb4WGYWlkGb2GiNZf5LF ucP/HlbVDB/dGhLdpPNDkhd8jfLwKGI+7+WAtjkdyWmc4w5gVBo43AfQk/gbTUSncEzS TvLx4rPCrcZUo7B25DTmW+lV/qmIN9OLcHDkLR4l1nZicCXjFoTOSLGQigwjIg+VLn/4 ys0SrdN8oD6wXG7rHXscNlH/ypsslZQ6bLVglEb2TYvvSooim0vrMVvJUZs/CHHCea8F Q4hZI7sxSeU0MnnTgsRXTj695if87pW54/F1SxE9c5DTVpON3w0xYEWwo56mri4JrMZp twKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=8WM+2YMqvKJQymsqeQuzNMaDRR+meqvYKkEuctUqv6M=; fh=/sYwwk1z7QtXdVw2HK5PiM2hVTabHZBkk4hQSXsWR4A=; b=hXC7kUrNimgPk+4Ys/BVSAeClKf8RbrpFh44+VvFWGEvQQ6+9y9MH9DbXxFJDYpfZu xC/P6GmFEuPVoxFLMjx+/w3lXMOer+oghs9PrxDJKZpkfnYQd3/+ksDf9JO71xtKuqlo Yni0JuNr1xL/msZRp1PybagyvkYLCOiHjlMi0ReGsO4ymXk/suXdT3UWLUbLcVV2an4U OTn9j200ECQEwwZGgNSquNUrxr7stQ36Hg2zUuuF03lR2w5p59ocQQ3aiFskH/1ugpDv fYOjlDo36cCK9IjmCeW6IQOYRcSj3ffLaJLNlvxxAkGmhMXXJ2/mv8Kl1KCZqaaXW2y0 YoLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id va23-20020a05620a3f9700b007811f296177si20204508qkn.192.2023.12.29.16.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:13:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F029F1C2254D for ; Sat, 30 Dec 2023 00:13:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29CE4647; Sat, 30 Dec 2023 00:13:48 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from irl.hu (irl.hu [95.85.9.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60AFC945A; Sat, 30 Dec 2023 00:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irl.hu Received: from fedori.lan (51b6838a.dsl.pool.telekom.hu [::ffff:81.182.131.138]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000071ED9.00000000658F60B8.0014D4ED; Sat, 30 Dec 2023 01:13:44 +0100 From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Gergo Koteles Subject: [PATCH] ALSA: hda/tas2781: configure the amp after firmware load Date: Sat, 30 Dec 2023 01:13:41 +0100 Message-ID: <7f2f65d9212aa16edd4db8725489ae59dbe74c66.1703895108.git.soyer@irl.hu> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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 dfe281b57aa6..c8523df4105f 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -584,6 +584,8 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context) */ tas2781_save_calibration(tas_priv); + tasdevice_tuning_switch(tas_hda->priv, 0); + out: mutex_unlock(&tas_hda->priv->codec_lock); if (fmw) base-commit: 64bf8dec54cfe57f416884a6b3d54c7f4259e93f -- 2.43.0