Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5176869rdb; Sat, 30 Dec 2023 08:59:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOyoNosB8tVapJZnXmtdL6hABIVXpeKW93APwXOtdoQpzYqvRz/yufjGrf03+PiC3fUhjY X-Received: by 2002:a05:622a:60f:b0:425:4043:5f3b with SMTP id z15-20020a05622a060f00b0042540435f3bmr24178332qta.121.1703955568509; Sat, 30 Dec 2023 08:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703955568; cv=none; d=google.com; s=arc-20160816; b=zdaJpsndKPRaGzSIa5opPf1Aw9CR3QshLPRDr3C/lhmWpBSw2rwmWFLTE4a5vMztad 1r7MFGQVD+WHstiQ6YyWSjbpMTDKFOfvr5wFmG7PMiPc9pGJ5JIjONf/Vw3/79YaUtv4 Toa3AbCs9ejRPd2PyhpuuQvEUr4kU6vZwhK5Mdn64a9AOv+lU5LAsmKM2Nz89J2v/vVT 3Y5AMgTTWQLQO66lKLF2boSLY0GB+AU0/D1p0wRDwq7szSZ1nqADbfy94ECjWTiJlgNU mE55OpegZ9UjzMRBROJmSI/4hyFuJrjekjBBEe0QduIlRheIbfVuQM8Rah8boEcI7WXQ zh0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=/vfzN6NhKAtjc7zH+0FmYY2Pnf+rrbAm9voajSr74Ws=; fh=kwsvdsDZom43/C2XSRpeu+EIj1SRUvk6Z2SDA/DGU9I=; b=VVcojOe1CFVCZLdL81RksW6ofAS5Yjo7xA0R8a9wg3B0r2ttX1rrBrIKE9d3w/UF7M 3MpVCY7v0HuCVUVlh/TwiGzDW/GGlLwOZw10RyrXIMZ2+mSKi7k6pEtB23mb8SNni0ZY VCeYHBPgw0DiEuPmcP9FB4TjG4RkJ6Mti4I3uwvGKs8GwrB/8XdzkjtRqVfVLpHL+PWL khisMK1Y3XEkTbzHASKsxuJeYJhhhXTdonDyIchr2qOSB6ur57vQvAIRaq/ZbiQjgwKW BbX6Ap/NKGKkOoGROrzUDLEP2gMDHeTE1Voz9h0ScwYNwusHa1usQfM7QxYU8Ob914Zq QsNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QsXO5n2h; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QsXO5n2h; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-13514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j15-20020ac85f8f000000b004254d515f8esi21744795qta.330.2023.12.30.08.59.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 08:59:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QsXO5n2h; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QsXO5n2h; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-13514-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 31A3A1C213CB for ; Sat, 30 Dec 2023 16:59:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 602F9B672; Sat, 30 Dec 2023 16:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="QsXO5n2h"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="irZxf2fQ"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="QsXO5n2h"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="irZxf2fQ" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C95C28F45; Sat, 30 Dec 2023 16:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6417C1F822; Sat, 30 Dec 2023 16:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1703955551; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/vfzN6NhKAtjc7zH+0FmYY2Pnf+rrbAm9voajSr74Ws=; b=QsXO5n2h3CJlV1/tpiefgXlPVF2QMUdBk1cvz6d/QWU4YaokynC1LLSThKSX6ShGDmIF0K wRwXvK4SRkWKV2tuS9IX5xBifRn4eM7HuB6AOxEi3VI9SbWDnvkvaMHSJtNd2JY4FW4S41 NYgoaBWBZom1uh15Pk1GAvMddcYlpIs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1703955551; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/vfzN6NhKAtjc7zH+0FmYY2Pnf+rrbAm9voajSr74Ws=; b=irZxf2fQhY4IsGPJzRxNohxJkXBKdpT2hX6AL9tmZlN6+jS5ki/f4zyo2hLy0m+95kKLSX 4+hMkNyT0uXbwaDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1703955551; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/vfzN6NhKAtjc7zH+0FmYY2Pnf+rrbAm9voajSr74Ws=; b=QsXO5n2h3CJlV1/tpiefgXlPVF2QMUdBk1cvz6d/QWU4YaokynC1LLSThKSX6ShGDmIF0K wRwXvK4SRkWKV2tuS9IX5xBifRn4eM7HuB6AOxEi3VI9SbWDnvkvaMHSJtNd2JY4FW4S41 NYgoaBWBZom1uh15Pk1GAvMddcYlpIs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1703955551; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/vfzN6NhKAtjc7zH+0FmYY2Pnf+rrbAm9voajSr74Ws=; b=irZxf2fQhY4IsGPJzRxNohxJkXBKdpT2hX6AL9tmZlN6+jS5ki/f4zyo2hLy0m+95kKLSX 4+hMkNyT0uXbwaDA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 0D6BE13782; Sat, 30 Dec 2023 16:59:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id SOxdAV9MkGW4AgAAD6G6ig (envelope-from ); Sat, 30 Dec 2023 16:59:11 +0000 Date: Sat, 30 Dec 2023 17:59:10 +0100 Message-ID: <87il4fwrs1.wl-tiwai@suse.de> From: Takashi Iwai To: Gergo Koteles Cc: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v2 0/4] ALSA: hda/tas2781: Add tas2563 support In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Level: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=QsXO5n2h; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=irZxf2fQ X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-2.74 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[11]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.14)[-0.701]; FREEMAIL_CC(0.00)[ti.com,perex.cz,suse.com,gmail.com,kernel.org,vger.kernel.org,alsa-project.org]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.29)[74.81%] X-Spam-Score: -2.74 X-Rspamd-Queue-Id: 6417C1F822 X-Spam-Flag: NO On Sat, 30 Dec 2023 01:09:41 +0100, Gergo Koteles wrote: > > 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 Thanks, I guess I'll take this series later for 6.8 unless any objection is raised from reviewers. But, I'd like to hear clarifications of some points beforehand: - Did we get consensus about the ACPI HID? I didn't follow the previous thread completely. Since those models have been already in the market for quite some time, we'd have to accept "INT8866", I'm afraid. But it's still very important to know whether a similar problem can be avoided in future. - Will be the firmware files upstreamed to linux-firmware tree later? Otherwise users will have significant difficulties. Takashi