| From: |
| Baojun Xu <baojun.xu-AT-ti.com> |
| To: |
| <tiwai-AT-suse.de> |
| Subject: |
| [PATCH v2 0/3] ALSA: hda/tas2781: Add tas2781 driver for SPI. |
| Date: |
| Tue, 09 Apr 2024 10:48:12 +0800 |
| Message-ID: |
| <20240409024816.1180-1-baojun.xu@ti.com> |
| Cc: |
| <robh+dt-AT-kernel.org>, <andriy.shevchenko-AT-linux.intel.com>, <lgirdwood-AT-gmail.com>, <perex-AT-perex.cz>, <pierre-louis.bossart-AT-linux.intel.com>, <kevin-lu-AT-ti.com>, <shenghao-ding-AT-ti.com>, <navada-AT-ti.com>, <alsa-devel-AT-alsa-project.org>, <linux-kernel-AT-vger.kernel.org>, <liam.r.girdwood-AT-intel.com>, <yung-chuan.liao-AT-linux.intel.com>, <baojun.xu-AT-ti.com>, <broonie-AT-kernel.org>, <soyer-AT-irl.hu> |
| Archive-link: |
| Article |
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@ti.com>
Baojun Xu (3):
ALSA: hda/tas2781: Modification for add tas2781 driver for SPI
ALSA: hda/tas2781: Main code of tas2781 driver for SPI
ALSA: hda/tas2781: Firmware load for tas2781 driver for SPI
drivers/acpi/scan.c | 1 +
.../platform/x86/serial-multi-instantiate.c | 10 +
sound/pci/hda/Kconfig | 15 +
sound/pci/hda/Makefile | 2 +
sound/pci/hda/patch_realtek.c | 15 +
sound/pci/hda/tas2781-spi.h | 162 ++
sound/pci/hda/tas2781_hda_spi.c | 1336 ++++++++++
sound/pci/hda/tas2781_spi_fwlib.c | 2289 +++++++++++++++++
8 files changed, 3830 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