Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] ALSA: hda/tas2781: Add tas2781 driver for SPI.
@ 2024-04-30  7:25 Baojun Xu
  2024-04-30  7:25 ` [PATCH v4 1/3] ALSA: hda/tas2781: Add tas2781 hda driver based on SPI Baojun Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Baojun Xu @ 2024-04-30  7:25 UTC (permalink / raw)
  To: tiwai
  Cc: robh+dt, andriy.shevchenko, lgirdwood, perex,
	pierre-louis.bossart, kevin-lu, shenghao-ding, navada,
	13916275206, v-po, niranjan.hy, alsa-devel, linux-kernel,
	liam.r.girdwood, yung-chuan.liao, baojun.xu, broonie, soyer

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: Add tas2781 hda driver based on SPI
  ALSA: hda/tas2781: Tas2781 hda driver for SPI
  ALSA: hda/tas2781: Firmware load for tas2781 hda driver based on SPI

 drivers/acpi/scan.c                           |    2 +
 .../platform/x86/serial-multi-instantiate.c   |   13 +
 sound/pci/hda/Kconfig                         |   14 +
 sound/pci/hda/Makefile                        |    2 +
 sound/pci/hda/patch_realtek.c                 |   13 +
 sound/pci/hda/tas2781-spi.h                   |  149 ++
 sound/pci/hda/tas2781_hda_spi.c               | 1240 +++++++++
 sound/pci/hda/tas2781_spi_fwlib.c             | 2252 +++++++++++++++++
 8 files changed, 3685 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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-05-08 12:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30  7:25 [PATCH v4 0/3] ALSA: hda/tas2781: Add tas2781 driver for SPI Baojun Xu
2024-04-30  7:25 ` [PATCH v4 1/3] ALSA: hda/tas2781: Add tas2781 hda driver based on SPI Baojun Xu
2024-04-30 12:58   ` Takashi Iwai
2024-04-30 13:45     ` Andy Shevchenko
2024-05-06  7:44       ` [EXTERNAL] " Xu, Baojun
2024-05-06  8:51         ` Andy Shevchenko
2024-05-07 13:05       ` Takashi Iwai
2024-04-30 13:44   ` Andy Shevchenko
2024-04-30  7:25 ` [PATCH v4 2/3] ALSA: hda/tas2781: Tas2781 hda driver for SPI Baojun Xu
2024-04-30 13:07   ` Takashi Iwai
2024-05-06 13:12   ` kernel test robot
2024-04-30  7:25 ` [PATCH v4 3/3] ALSA: hda/tas2781: Firmware load for tas2781 hda driver based on SPI Baojun Xu
2024-04-30 13:10   ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox