Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4845191rdb; Fri, 29 Dec 2023 16:10:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZ9z2APRzRBJ87ujs6+0Vv5rE1db/vNmV9/bvFkt6d3M53X23PWRZNOn1TFZZl9Rn3XuVr X-Received: by 2002:a50:cd41:0:b0:553:6593:ceb1 with SMTP id d1-20020a50cd41000000b005536593ceb1mr5225913edj.76.1703895013810; Fri, 29 Dec 2023 16:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703895013; cv=none; d=google.com; s=arc-20160816; b=e2GqIC6H6hHECt+SBU5YVYkRtSuhYNba0uZMxVs8yRYzeqvd67Y3uMwYtdFKBLyu/G PwOUOWhoY9BHpD+fPwo5oFVlJ42JDe6CSWBJ4rvxs30FteScTjK3v9JQfLaytGbTKciR FAqxJMpJHxOiqsJXY8WYA0aoaAXuPVBQqnNaKzsHyfkgJhu49CXS9yD27gR8ejbM5kWo 1sxfgRvzR/+GE7RvQzRX38Ley92C1Ih4Q+1dnCNnVrZKqqskTAMjKP72FvTBX7JBXit4 4o4BcG/nfJg7IKEvtWcQYL6I+m78mRHAu8rn4DuMNxOcX9JBs1SHFs3hZQXdEr23TNe+ f44A== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5MX5wZVYl31J6FYob+l41o1Qs5N62viwNNp+WnAH5yU=; fh=JvSZ5/sqeBdpvbJYyH5kp4+fEWeDN16g8aW3jyvxq2M=; b=f7Ve1ljbvgfB/J0p+NT3/ZmamTEoFf0W+Bx1XkNM3vjAA3huv7170pORy41NCgUvtt 9sOb1g6pgoWwdqgS06EhoqRGIxOzmj7PI8emY5DZsWVVrVN/C/p56XTVRJbdMwG0MV57 9e89ltWP1GSEOvis89tr8rD3eVUKlD9y1c3cOslJKpboKWUq442mivrR/a8Krwc9bR3R tPhDsy2HYq9+d3Jr3nqkvhYK7sK2q4CRUTearVyKjf7ISZLF6d8oCISWIAirXA28oZAh O66cbnQG/0uIiUCN+ZnqNos5rFKZ/5CAXt4ivU7uH3ROTv+fOIQWxkN8+Ar2b0na5Ftn YH8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p28-20020a50cd9c000000b00555e1bfb105si500369edi.502.2023.12.29.16.10.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13294-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9330B1F230BE for ; Sat, 30 Dec 2023 00:10:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A59D1EA8; Sat, 30 Dec 2023 00:10:00 +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 6C8447F; Sat, 30 Dec 2023 00:09:58 +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 0000000000071EB8.00000000658F5FCE.0014D494; Sat, 30 Dec 2023 01:09:50 +0100 From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Gergo Koteles Subject: [PATCH v2 0/4] ALSA: hda/tas2781: Add tas2563 support Date: Sat, 30 Dec 2023 01:09:41 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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 The tas2781-hda driver can be modified to support tas2563 as well. Before knowing this information, I created another series for a new driver. Link: https://lore.kernel.org/lkml/cover.1701733441.git.soyer@irl.hu/ This series now extends tas2781-hda. The tas2563 is a smart amplifier. Similar to tas2562 but with DSP. Some Lenovo laptops have it to drive the bass speakers. By default, it is in software shutdown state. To make the DSP work it needs a firmware and some calibration data. The latter can be read from the EFI in Lenovo laptops. For the correct configuration it needs additional register data. It captured after running the Windows driver. The firmware can be extracted as TAS2563Firmware.bin from the Windows driver with innoextract. https://download.lenovo.com/consumer/mobiles/h5yd037fbfyy7kd0.exe The driver will search for it as TAS2XXX3870.bin with the Lenovo Yoga 7 14ARB7. The captured registers extracted with TI's regtool: https://github.com/soyersoyer/tas2563rca/raw/main/INT8866RCA2.bin Changes since v1: - fixes were sent as individual patches - rebased onto for-next - adding the missed fixup Gergo Koteles (4): ALSA: hda/tas2781: add ptrs to calibration functions ALSA: hda/tas2781: add configurable global i2c address ALSA: hda/tas2781: add TAS2563 support for 14ARB7 ALSA: hda/tas2781: add fixup for Lenovo 14ARB7 include/sound/tas2781.h | 8 +++ sound/pci/hda/patch_realtek.c | 14 ++++ sound/pci/hda/tas2781_hda_i2c.c | 115 ++++++++++++++++++++++++++---- sound/soc/codecs/tas2781-comlib.c | 15 ++++ 4 files changed, 137 insertions(+), 15 deletions(-) base-commit: 64bf8dec54cfe57f416884a6b3d54c7f4259e93f -- 2.43.0