[PATCH v7 0/1] Add tas2781 driver for SPI.

Baojun Xu posted 1 patch 1 year, 6 months ago
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                 |   14 +
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, 3558 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
[PATCH v7 0/1] Add tas2781 driver for SPI.
Posted by Baojun Xu 1 year, 6 months ago
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 (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                 |   14 +
 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, 3558 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
Re: [PATCH v7 0/1] Add tas2781 driver for SPI.
Posted by Takashi Iwai 1 year, 6 months ago
On Thu, 13 Jun 2024 10:26:32 +0200,
Baojun Xu wrote:
> 
> 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 (1):
>   ALSA: hda/tas2781: Add tas2781 hda driver based on SPI

Since you're sending only one patch, we need no cover letter, and all
needed stuff should be documented in the patch description itself.
That is, The texts like above should go there, too.


thanks,

Takashi