Message ID | 7f2f65d9212aa16edd4db8725489ae59dbe74c66.1703895108.git.soyer@irl.hu |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-13299-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2858992dyb; Fri, 29 Dec 2023 16:14:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDNt7I3S/8sYnAw4gxw5oUnWhKfc6m7x8AFPHpOWvB9Z5H19zI3/+P/ecsCt6u+Q5q83yN X-Received: by 2002:a05:6a21:3296:b0:196:28a2:c8d with SMTP id yt22-20020a056a21329600b0019628a20c8dmr5052037pzb.46.1703895242696; Fri, 29 Dec 2023 16:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703895242; cv=none; d=google.com; s=arc-20160816; b=Cnn6ksqelI3/s+sYKRKMUQfJaAkRcIit58736E9HVlNGgzy3sYdkDsB5D0JYAKiCxk xll9TNpsA+bsov7h9Gat9LZ881FtL+5a6XoL4HgP8nJRZmUQeBT+LO08IRP6qSN8gJLx y1EQjeZuM7GvVkCX8XS+Ls8r3ZkPYY5p2yG1f5GrVa+80bhcZMclh0PFc2ZkKx/VkYbc 6v/+TTpNShj+RrLNrEsQdaKujY51g2IoEWXY3wZt/zHQutOzoBdpvXYUi8rabrhI3xgU Zi0RPVq76koxvQ56PIESxro6cyZk036tLq/Y8DRbGPgrWExOaGAlZ4Vk4xsK0bm9k4QU 0y1Q== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13299-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g66-20020a636b45000000b005be1955657esi14872211pgc.127.2023.12.29.16.14.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:14:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13299-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13299-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13299-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7DF45283EDB for <ouuuleilei@gmail.com>; Sat, 30 Dec 2023 00:14:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2444BEDC; Sat, 30 Dec 2023 00:13:49 +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 <soyer@irl.hu> To: Shenghao Ding <shenghao-ding@ti.com>, Kevin Lu <kevin-lu@ti.com>, Baojun Xu <baojun.xu@ti.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Gergo Koteles <soyer@irl.hu> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786663657885036777 X-GMAIL-MSGID: 1786663657885036777 |
Series |
ALSA: hda/tas2781: configure the amp after firmware load
|
|
Commit Message
Gergo Koteles
Dec. 30, 2023, 12:13 a.m. UTC
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 <soyer@irl.hu>
---
sound/pci/hda/tas2781_hda_i2c.c | 2 ++
1 file changed, 2 insertions(+)
base-commit: 64bf8dec54cfe57f416884a6b3d54c7f4259e93f
Comments
On Sat, 30 Dec 2023 01:13:41 +0100, Gergo Koteles wrote: > > 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 <soyer@irl.hu> Applied to for-next branch now. Thanks. Takashi
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)