Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp405967lqe; Sat, 6 Apr 2024 06:22:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVviV0f6WdE2x+CcCNgJbN1tdj3f6ahcI9taTExXFX1rlevpVdAidFujhRz2YHnZiayT52A/GYAnsLGSo7g332OTmOYA2z1IzhuemXWwA== X-Google-Smtp-Source: AGHT+IEPhH0aTwJeVaznXXKQFuKbqmoUPJjp6f1RKvP9hOvPAE3nZfQ1taZNNglqH3f/bvR3e2rs X-Received: by 2002:a17:903:32d0:b0:1e2:6165:80cd with SMTP id i16-20020a17090332d000b001e2616580cdmr5246683plr.38.1712409734340; Sat, 06 Apr 2024 06:22:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712409734; cv=pass; d=google.com; s=arc-20160816; b=wZwVDIl/gU5E1kJxCRpzbp3zM4pFljHjMxr6g4dpMh1ZZvnJcA1uiY1eNr3z+QXLZH 4ZZQPocE7Nzg4ID79UlW66B4yUsAvqJpQt659aJKSLZP1DoeLFK6wOeV7YIXqgJ8fUOj DJ+oGiludw7osyZ2VN2HNH7q1Xba54KQrc/E6RJgo6SoaeAwx1hPsH59MbGVqXzVQzVf qnCaYlHr48qXibXkQ6DPgrYA9Q5kRvv0BOebapad/slJI3ZNzojVyFhdPQUa6wxQtjVQ B14dJL4VikdkLU8ZWUREQnFu+NhgIJ1SKfUvshlNWQKFBuh1LGnmVFSWRp8VjNPolX/j Wbng== ARC-Message-Signature: i=2; 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:dkim-signature; bh=39x7AmNp8Efzg8sUTGbGQMPThf+ziuu6HzOTHuarGAA=; fh=gh9VzrnEV9lrOG0V9Q5h44qu17VYsbjQfD5rEyyk/Jo=; b=bo/psummpT0MoABx6gPDrxdcCAx8KxgCBe1Q1bkEzMI0Ek6RDadU/rJAcw5k5BdBwq r7obTXauTmE0aFTTUh0Va5K4V90M61ZR/PHUkbviQs7CrN2AQdtk8h7AyZpUMLXDg8CM niT0dJSjsuaT8t96jJ6VGycVNUTKdZGl3gfh3gF3qe0IUjFuf7nyuA+tasT1dvduazbY 5TfCD1ZCEzQs82SJf427odlZb4647b3Ha1LwC/9K2YBLLzX8BfOHAfxse4IHNnQMm6hp y2LRfrt9LSSpdPohmUe+1/VmKmxPhA209/ApWAg+D933FZjw7apKw//Xsdp4vK7JjWvB Sgig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rn2nm+5H; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-133933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i3-20020a17090332c300b001e2907201b6si2282835plr.55.2024.04.06.06.22.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 06:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rn2nm+5H; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-133933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5DBFAB21648 for ; Sat, 6 Apr 2024 13:22:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 987CB37142; Sat, 6 Apr 2024 13:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="rn2nm+5H" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 C3936364CD for ; Sat, 6 Apr 2024 13:21:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712409710; cv=none; b=R5SQz2zMqGNZ76hrdGWXN6agCVZvqFEA0Cm5FOJgLkwiSl+uWom9kIe4RuyczgadF4hJO/6T7IcaY60eOAfGKHqEzOfawiSt4HovkDUyfVKSBxQMkZEdrgVEZ875Ia2Z/+8BrGEFUbqSEeT+eRpZ2uyn2C9lXn2p3mHPFaFQH8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712409710; c=relaxed/simple; bh=ZMt+t5X0UPIOOA6m/9szrjEDqQbT72VimPT91MbFNiE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=PxJcf2sVI3lA5MPIKZa97x1JjtTZHWdJ7yTAljhSE0LqH4OCnz8MD6oOeTTdwEJw41q33F35j12BoySwUTc/Lp9BsavZa08gHH/cC61l4G1cN9YdusPtAYVi0O97FviwCQt5nXKt2miNxuZSvZtFoCXw5I80dJNJGcmeq/q1q8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=rn2nm+5H; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 436DKIdt109838; Sat, 6 Apr 2024 08:20:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712409618; bh=39x7AmNp8Efzg8sUTGbGQMPThf+ziuu6HzOTHuarGAA=; h=From:To:CC:Subject:Date; b=rn2nm+5H14g7Dmqw4gH1ylBAQ1ZpdmW28jNIIfOH1ujqg9D9A/A/ll58qLg0L8/c3 2COkFVO8l7Mxdj3bjb6OvO6v0hov64YIjoUtKWm06IIPCs8f2xYD5ncPKhiwVSUV0g Nl+eNAYmFDz4m/6zxs4ckXxfd3vP8TBNK0ylxaGk= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 436DKIlZ012778 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 6 Apr 2024 08:20:18 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 6 Apr 2024 08:20:18 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 6 Apr 2024 08:20:18 -0500 Received: from LT5CG31242FY.dhcp.ti.com ([10.250.160.249]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 436DKCgl087460; Sat, 6 Apr 2024 08:20:13 -0500 From: Shenghao Ding To: CC: , , , , <13916275206@139.com>, , , , , , , , , , , , , Shenghao Ding Subject: [PATCH v3] ALSA: hda/tas2781: correct the register for pow calibrated data Date: Sat, 6 Apr 2024 21:20:09 +0800 Message-ID: <20240406132010.341-1-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Calibrated data was written into an incorrect register, which cause speaker protection sometimes malfuctions Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver") Signed-off-by: Shenghao Ding --- v3: - Add a bit more info desciption - No blank line between Fixes and Singed-off-by tags - https://lore.kernel.org/all/20240404122530.1049-1-shenghao-ding@ti.com/ --- sound/pci/hda/tas2781_hda_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 48dae3339305..75f7674c66ee 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -514,10 +514,10 @@ static int tas2563_save_calibration(struct tasdevice_priv *tas_priv) static void tas2781_apply_calib(struct tasdevice_priv *tas_priv) { static const unsigned char page_array[CALIB_MAX] = { - 0x17, 0x18, 0x18, 0x0d, 0x18 + 0x17, 0x18, 0x18, 0x13, 0x18, }; static const unsigned char rgno_array[CALIB_MAX] = { - 0x74, 0x0c, 0x14, 0x3c, 0x7c + 0x74, 0x0c, 0x14, 0x70, 0x7c, }; unsigned char *data; int i, j, rc; -- 2.34.1