Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1356710rdb; Wed, 6 Dec 2023 17:06:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHg5QQ9tvJbpKZRJC5/vJzgfMqkHEs25Dstz5UYuDamyO6LGXsS52R//PmmhK9KBaN0d+x3 X-Received: by 2002:a05:6358:7606:b0:16f:f2e5:a76a with SMTP id r6-20020a056358760600b0016ff2e5a76amr2292638rwg.16.1701911171307; Wed, 06 Dec 2023 17:06:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701911171; cv=none; d=google.com; s=arc-20160816; b=eI+L76Parj2ouRyhqIkHyS9kEjF3HUiSVWlf9IAZ/iu2d8AKJW8PJxoUtqmT96UlOU BVf+vXg4ozF+DZTWn9ktYx/Q906QbJ7odLFrrP33oqPtjzMrWGyqLFAfY+6cmV3U/F/u huN4xkQHlIiYPcFqhomL9dYFiaD8T9pI7nWfVqivI33kMBnYNyCGzjKir/XyaiH3gPr+ WIgfS2EKWlEOp8YVF+wZoSK56dElj3e42SAzaSJMsvNKmRNfHfM+DLjXfpeZJWKdD/Z9 +vafHy6/9kC1wr5DJwB0kJomMSCDV5S4MoZ2Uk3QXnkfGbFVCUOLVrveEH4poMQSAZhZ 4vCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=hzyvOfxY9L4wTeAtZaMqwP3N/bNny2XENgRXrs66s5s=; fh=ZmnRunrVdpvG1LFpsjfl3JN7EpSFa5ouhDkuYmBzDbQ=; b=tci/uwVJAtdvtQXcaX173q0iydWwTh6ChDAX1A2wYoOt5pQD7BaafgQhL5pBym8jDD T1yYDm3xK6b1Fg8rG2IaZb6kBRNOEWCtcleSe3JKP2gC2YwqYmmIZSGTim42WYrBSgGw YOIKrcPWneZjGwvr4N+OxE2YVZ4/xrdXBXDK6HSv0hm+xfEkzaeSrUlYEydUxMEl1SG1 4xZ6D5GtlPSmMT8YIV+MwzpuelZspa+ojhabxcZsfg7+acrYlNr/8nnefwbCuteYXHB6 Q0uHqlNuZkGrotQP4H5a6JTVi4xCmsjxU4PasKmxcxoEW5YxFZmtlhnRGrizklABKbks ITaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 10-20020a630c4a000000b005c658bf30a8si192376pgm.302.2023.12.06.17.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 17:06:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A7B9580E9968; Wed, 6 Dec 2023 17:06:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441972AbjLGBFq convert rfc822-to-8bit (ORCPT + 99 others); Wed, 6 Dec 2023 20:05:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441964AbjLGBFp (ORCPT ); Wed, 6 Dec 2023 20:05:45 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77407D46 for ; Wed, 6 Dec 2023 17:05:51 -0800 (PST) Received: from [192.168.2.4] (51b690cd.dsl.pool.telekom.hu [::ffff:81.182.144.205]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 000000000007171C.0000000065711A6C.001192E6; Thu, 07 Dec 2023 02:05:48 +0100 Message-ID: <4adaf4d4a0b4baf808697fb644889410dcfed948.camel@irl.hu> Subject: Re: [PATCH 0/2] ALSA: hda/tas2563: Add tas253 HDA driver From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Date: Thu, 07 Dec 2023 02:05:47 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.50.1 (3.50.1-1.fc39) MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 17:06:08 -0800 (PST) Please disregard this patch. The tas2781-hda driver will handle this. https://lore.kernel.org/all/cover.1701906455.git.soyer@irl.hu/ On Tue, 2023-12-05 at 00:45 +0100, Gergo Koteles wrote: > The ta2563 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 TAS2563-17AA3870.bin with the 14ARB7. > > It uses the default program/configuration, and has no controls for these yet. > > The amplifier works without firmware, but I don't know how safe is it, > that's why the firmware is required. > > Gergo Koteles (2): > ASoc: tas2563: DSP Firmware loading support > ALSA: hda/tas2563: Add tas2563 HDA driver > > {sound/soc/codecs => include/sound}/tas2562.h | 8 + > include/sound/tas25xx-dsp.h | 100 ++++ > sound/pci/hda/Kconfig | 14 + > sound/pci/hda/Makefile | 2 + > sound/pci/hda/patch_realtek.c | 22 +- > sound/pci/hda/tas2563_hda_i2c.c | 508 ++++++++++++++++++ > sound/soc/codecs/Kconfig | 7 + > sound/soc/codecs/Makefile | 2 + > sound/soc/codecs/tas2562.c | 2 +- > sound/soc/codecs/tas25xx-dsp.c | 282 ++++++++++ > 10 files changed, 942 insertions(+), 5 deletions(-) > rename {sound/soc/codecs => include/sound}/tas2562.h (90%) > create mode 100644 include/sound/tas25xx-dsp.h > create mode 100644 sound/pci/hda/tas2563_hda_i2c.c > create mode 100644 sound/soc/codecs/tas25xx-dsp.c > > > base-commit: ffc253263a1375a65fa6c9f62a893e9767fbebfa