mbox series

[0/4] ASoC/SoundWire: add Realtek SoundWire SDCA codec

Message ID 20201202143845.18697-1-yung-chuan.liao@linux.intel.com
Headers show
Series ASoC/SoundWire: add Realtek SoundWire SDCA codec | expand

Message

Liao, Bard Dec. 2, 2020, 2:38 p.m. UTC
Add Realtek rt1316 and rt711-sdca vender-specific drivers plus some
fixup for rt715-sdca driver.

Jack Yu (2):
  ASoC/SoundWire: rt715-sdca: use rt715_sdca prefix for symbols
  ASoC/SoundWire: rt715-sdca: merge mute/volume operations

Shuming Fan (2):
  ASoC/SoundWire: rt1316: Add RT1316 SDCA vendor-specific driver
  ASoC/SoundWire: rt711-sdca: Add RT711 SDCA vendor-specific driver

 sound/soc/codecs/Kconfig          |   13 +
 sound/soc/codecs/Makefile         |    4 +
 sound/soc/codecs/rt1316-sdw.c     |  756 +++++++++++++++
 sound/soc/codecs/rt1316-sdw.h     |  115 +++
 sound/soc/codecs/rt711-sdca-sdw.c |  424 +++++++++
 sound/soc/codecs/rt711-sdca-sdw.h |  101 ++
 sound/soc/codecs/rt711-sdca.c     | 1482 +++++++++++++++++++++++++++++
 sound/soc/codecs/rt711-sdca.h     |  246 +++++
 sound/soc/codecs/rt715-sdca-sdw.c |   12 +-
 sound/soc/codecs/rt715-sdca.c     |  323 ++++---
 sound/soc/codecs/rt715-sdca.h     |    4 +-
 11 files changed, 3316 insertions(+), 164 deletions(-)
 create mode 100644 sound/soc/codecs/rt1316-sdw.c
 create mode 100644 sound/soc/codecs/rt1316-sdw.h
 create mode 100644 sound/soc/codecs/rt711-sdca-sdw.c
 create mode 100644 sound/soc/codecs/rt711-sdca-sdw.h
 create mode 100644 sound/soc/codecs/rt711-sdca.c
 create mode 100644 sound/soc/codecs/rt711-sdca.h

Comments

Pierre-Louis Bossart Dec. 4, 2020, 10:42 p.m. UTC | #1
On 12/4/20 11:56 AM, Mark Brown wrote:
> On Fri, Dec 04, 2020 at 02:42:54AM +0000, Shuming [θŒƒζ›ΈιŠ˜] wrote:
> 
>>>> +/* RT1316 SDCA function topology */
>>>> +#define FUN_SMART_AMP 0x04
> 
>>> Full marks for picking this constant!
> 
>> Sorry, I don't get that point. Could you give me a hint?
> 
> The name is funny - "fun smart amp".

Indeed.

FWIW, 'fun' stands for 'function' here. The SDCA spec defines different 
types of high-level 'functions', e.g. 'smart amp, 'smart mic', 'simple 
mic', 'universal audio jack', etc., and for each provides a number of 
options.

in this series rt711 would be mapped to UAJ, rt715 to smart mic and 
rt1316 to smart amp.