Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp248081lqh; Thu, 30 May 2024 23:11:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXH82kbGNubaLJVTY8QmZFn4Zrtz5h/YNE/5B3lm0SAlhRL6zpRkbiPNLS98piNuOabWkAjo7DzGQi/bsT4xfTyXevSNZpIRHtkkaJsZg== X-Google-Smtp-Source: AGHT+IFB17IRyGWQEULwFXB7YpxRBYnofqyiJZx8C0WBv3WxV8EDGBSQDhQ7iFq6w95bJJTFPiTw X-Received: by 2002:a50:bb62:0:b0:57a:30e6:86b4 with SMTP id 4fb4d7f45d1cf-57a363e0247mr611949a12.24.1717135918776; Thu, 30 May 2024 23:11:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717135918; cv=pass; d=google.com; s=arc-20160816; b=hxj3RKs4Lc0rOzc4xW9qfY+wCwY9GHkCUGPFOqWXbc75+kVZJ3HcF2GrohdZP1VlHA iZoSo4bkPMjVBoPpyh7ETuH2tJ4QyjqNB74xwjXOM90YmW85cPRq99y66n8BekDM63O0 L8RBkWIwLvAoEpyiyceSLamcorCwVYRVCTVQp//C2NJ6LsLK1fhwhzheigPTvr99PQf1 AzzHLoshfe59U4m46oL0Vt+/OEY7Or+L1LX+SvTVe6SsbAIDauxYz/pxdSKuX3bBB+up HxRE2ss7SPAaaT39gNVL8N0Yghqr1qNImxSHPuvcou4LpASQJB36IELBjnE815Pb9CUc cDpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=WhEVFbeNknRh1BQSwCnDYk1qPCnB8HaWvQq4y3qw8pU=; fh=OgJwhcY3Ius48Sc5RFLp5xRWbPUZkBgW6thma3zgGrk=; b=0kQgtPbs0ividm28wxRrNPjoNswJzmtFulGT1OV+2uFzgGg5Bob7IcZ9PKIe+AhyFH j3xGJ1x0VJIrDrZwfrduln273C6gC1w5h+9HtxUqb7XxLxE+sq492Qm3hDMophTP4PFB 9K17MgOlg4lrVDFZ0boBgbJnIPlZzaLwLo33I1EYy1aAzPSw2hjgehb6OYmSoU419V4A ktDXy8ijXE3MPMGMh2nDSGRAUX/1VBprQRVpkHfdHyVPuF697qZL/XndHToRDvYeGVzK LCljI7be/bcbIHQ6/hEUe2KK86PlqmBHZ8ndwRKp4vu7gTeKM4fN9soW2z5GTmm49FDL 99UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EhfbK691; 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-196334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31b81938si613651a12.37.2024.05.30.23.11.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 23:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EhfbK691; 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-196334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196334-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 70AB41F21926 for ; Fri, 31 May 2024 06:11:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A9987D3E3; Fri, 31 May 2024 06:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="EhfbK691" 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 F08293F8FB for ; Fri, 31 May 2024 06:11:45 +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=1717135908; cv=none; b=mpXkxNvPM7f2TD3LobBfI5/OolcKppVJ1Wov1WpsieVIYRoyNrKPZ1ZTS0HMQAI/lYCtPsmcUlEez+Pf+USsAZwxYfpDa0zH0IYFPCJ1PgT0MKft1ufcU4xhbUsK3uS0N/W3jseet9sT0gJWCC8VNB8MJ+JkpFlZi8cNZ5GXCOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135908; c=relaxed/simple; bh=b0Y5dRLQaYt3mf0VGzfdq8z0+s59RcDFw7CTP55VyrU=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=vC+lWDk+gXq5m04RpbcqBJjWeXpKwF1qwgDGlO/LA0ut5auPfJ5nQ9C9cyVlQ2ag2fizVpAbNnJcxnzR1FDh1JKBykCjsSP1EzsCMeamqOivjOhpgtdPm8PKjVUwxm2/d/1VmpelnrA7EDLrcTJTfhg/hWBavi42v5vnuzLzjg0= 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=EhfbK691; 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 fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44V6AjaJ016213; Fri, 31 May 2024 01:10:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717135845; bh=WhEVFbeNknRh1BQSwCnDYk1qPCnB8HaWvQq4y3qw8pU=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=EhfbK691DNfBC8sDsKUJ+XctjPTvAXm6Fa6mbOaogFzqQtOu/W+AFLgncCr+WrZ8N tBiKxKA6BiTGYWoEdcuBU2uU3W67s12XMj2BaJPkQMGEi+y/Awgp8kHFswEREC6VoO f1XwBGZ0svfPOEgTN/EOvFAPjnGPUPTj8jJ2dSKI= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44V6AjL1047883 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 May 2024 01:10:45 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 31 May 2024 01:10:44 -0500 Received: from DLEE100.ent.ti.com ([fe80::ad4d:c227:3f85:880d]) by DLEE100.ent.ti.com ([fe80::ad4d:c227:3f85:880d%17]) with mapi id 15.01.2507.023; Fri, 31 May 2024 01:10:44 -0500 From: "Xu, Baojun" To: "tiwai@suse.de" CC: "robh+dt@kernel.org" , "andriy.shevchenko@linux.intel.com" , "lgirdwood@gmail.com" , "perex@perex.cz" , "pierre-louis.bossart@linux.intel.com" , "Lu, Kevin" , "Ding, Shenghao" , "Navada Kanyana, Mukund" , "13916275206@139.com" <13916275206@139.com>, "Hampiholi, Vallabha" , "P O, Vijeth" , "Holalu Yogendra, Niranjan" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "liam.r.girdwood@intel.com" , "yung-chuan.liao@linux.intel.com" , "broonie@kernel.org" , "soyer@irl.hu" Subject: Re: [PATCH v6 0/1] Add tas2781 driver for SPI. Thread-Topic: [PATCH v6 0/1] Add tas2781 driver for SPI. Thread-Index: AQHaseDnrvmrnJlJZ0CQY5+1p/UdJbGw25Ri Date: Fri, 31 May 2024 06:10:44 +0000 Message-ID: <62a298a58b944ecdaa1b2842d51f3a38@ti.com> References: <20240529155653.3037-1-baojun.xu@ti.com> In-Reply-To: <20240529155653.3037-1-baojun.xu@ti.com> Accept-Language: en-GB, zh-CN, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-exclaimer-md-config: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Pierre, Do you know any different between windows and Ubuntu on SPI inialyze? We are testing my patch on Laptop (HP-Varcolac, SSID:103C8B92, fly-out SPI = & I2S cables), no any issue with wondows, but with Linux, second speaker ha= s no sound, it's initialyze is totally same with first AMP, and relative re= gisters can be dumped, no problem found. Best Regards Jim ________________________________________ From: Xu, Baojun Sent: 29 May 2024 23:56 To: tiwai@suse.de Cc: robh+dt@kernel.org; andriy.shevchenko@linux.intel.com; lgirdwood@gmail.= com; perex@perex.cz; pierre-louis.bossart@linux.intel.com; Lu, Kevin; Ding,= Shenghao; Navada Kanyana, Mukund; 13916275206@139.com; Hampiholi, Vallabha= ; P O, Vijeth; Holalu Yogendra, Niranjan; alsa-devel@alsa-project.org; linu= x-kernel@vger.kernel.org; liam.r.girdwood@intel.com; yung-chuan.liao@linux.= intel.com; Xu, Baojun; broonie@kernel.org; soyer@irl.hu Subject: [PATCH v6 0/1] Add tas2781 driver for SPI. This patch was used to add TAS2781 devices on SPI support in sound/pci/hda. It use ACPI node descript about parameters of TAS2781 on SPI, it like: Scope (_SB.PC00.SPI0) { Device (GSPK) { Name (_HID, "TXNW2781") // _HID: Hardware ID Method (_CRS, 0, NotSerialized) { Name (RBUF, ResourceTemplate () { SpiSerialBusV2 (...) SpiSerialBusV2 (...) } } } } And in platform/x86/serial-multi-instantiate.c, those spi devices will be added into system as a single SPI device, so TAS2781 SPI driver will probe twice for every single SPI device. And driver will also parser mono DSP firmware binary and RCA binary for itself. Signed-off-by: Baojun Xu Baojun Xu (1): ALSA: hda/tas2781: Add tas2781 hda driver based on SPI drivers/acpi/scan.c | 1 + .../platform/x86/serial-multi-instantiate.c | 12 + sound/pci/hda/Kconfig | 14 + sound/pci/hda/Makefile | 2 + sound/pci/hda/patch_realtek.c | 13 + sound/pci/hda/tas2781-spi.h | 148 ++ sound/pci/hda/tas2781_hda_spi.c | 1266 ++++++++++ sound/pci/hda/tas2781_spi_fwlib.c | 2101 +++++++++++++++++ 8 files changed, 3557 insertions(+) create mode 100644 sound/pci/hda/tas2781-spi.h create mode 100644 sound/pci/hda/tas2781_hda_spi.c create mode 100644 sound/pci/hda/tas2781_spi_fwlib.c -- 2.40.1