Skip to content

ASoC: Intel: avs: Fixes and new platforms support

Cezary Rojewski alsa-devel linux-sound 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ASoC: Intel: avs: L1SEN reference countedsound/soc/intel/avs/avs.h sound/soc/intel/avs/core.c+9 -30 replies
2/10ASoC: Intel: avs: Fix sound clipping in single capture scenariosound/soc/intel/avs/pcm.c+75 -20 replies
3/10ASoC: Intel: avs: Prefix SKL/APL-specific memberssound/soc/intel/avs/apl.c sound/soc/intel/avs/avs.h sound/soc/intel/avs/core.c +2 more+56 -570 replies
4/10ASoC: Intel: avs: Abstract IPC handlingsound/soc/intel/avs/avs.h sound/soc/intel/avs/core.c sound/soc/intel/avs/ipc.c +2 more+72 -410 replies
5/10ASoC: Intel: avs: Abstract IRQ handlingsound/soc/intel/avs/apl.c sound/soc/intel/avs/avs.h sound/soc/intel/avs/core.c +2 more+48 -370 replies
6/10ASoC: Intel: avs: CNL-based platforms supportsound/soc/intel/avs/Makefile sound/soc/intel/avs/apl.c sound/soc/intel/avs/avs.h +3 more+119 -80 replies
7/10ASoC: Intel: avs: ICL-based platforms supportsound/soc/intel/avs/Makefile sound/soc/intel/avs/avs.h sound/soc/intel/avs/core.c +3 more+197 -10 replies
8/10ASoC: Intel: avs: TGL-based platforms supportsound/soc/intel/avs/Makefile sound/soc/intel/avs/avs.h sound/soc/intel/avs/core.c +1 more+90 -10 replies
9/10ASoC: Intel: avs: ICCMAX recommendations for ICL+ platformsinclude/sound/hda_register.h sound/soc/intel/avs/avs.h sound/soc/intel/avs/icl.c +1 more+66 -20 replies
10/10ASoC: Intel: avs: Populate board selection with new I2S entriessound/soc/intel/avs/board_selection.c+85 -00 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchAmadeusz Sławiński
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] ASoC: Intel: avs: Fixes and new platforms support

The avs-driver continues to be utilized on more recent Intel machines. As TGL-based (cAVS 2.5) e.g.: RPL, inherit most of the functionality from previous platforms:

SKL <- APL <- CNL <- ICL <- TGL

rather than putting everything into a single file, the platform-specific bits are split into cnl/icl/tgl.c files instead. Makes the division clear and code easier to maintain.

Layout of the patchset:

First are two changes combined together address the sound-clipping problem, present when only one stream is running - specifically one CAPTURE stream.

Follow up is naming-scheme adjustment for some of the existing functions what improves code incohesiveness. As existing IPC/IRQ code operates solely on cAVS 1.5 architecture, it needs no abstraction. The situation changes when newer platforms come into the picture. Thus the next two patches abstract the existing IPC/IRQ handlers so that majority of the common code can be re-used.

The ICCMAX change stands out a bit - the AudioDSP firmware loading procedure differs on ICL-based platforms (and onwards) and having a separate commit makes the situation clear to the developers who are going to support the solution from LTS perspective. For that reason I decided not to merge it into the commit introducing the icl.c file.

Cezary Rojewski (10):
ASoC: Intel: avs: L1SEN reference counted
ASoC: Intel: avs: Fix sound clipping in single capture scenario
ASoC: Intel: avs: Prefix SKL/APL-specific members
ASoC: Intel: avs: Abstract IPC handling
ASoC: Intel: avs: Abstract IRQ handling
ASoC: Intel: avs: CNL-based platforms support
ASoC: Intel: avs: ICL-based platforms support
ASoC: Intel: avs: TGL-based platforms support
ASoC: Intel: avs: ICCMAX recommendations for ICL+ platforms
ASoC: Intel: avs: Populate board selection with new I2S entries

 include/sound/hda_register.h          |   2 +
 sound/soc/intel/avs/Makefile          |   2 +-
 sound/soc/intel/avs/apl.c             |  58 ++++----
 sound/soc/intel/avs/avs.h             |  66 ++++++---
 sound/soc/intel/avs/board_selection.c |  85 +++++++++++
 sound/soc/intel/avs/cnl.c             |  61 ++++++++
 sound/soc/intel/avs/core.c            | 160 ++++++++++++++++++---
 sound/soc/intel/avs/icl.c             | 197 ++++++++++++++++++++++++++
 sound/soc/intel/avs/ipc.c             |  66 +++------
 sound/soc/intel/avs/loader.c          |   2 +-
 sound/soc/intel/avs/messages.c        |   1 +
 sound/soc/intel/avs/messages.h        |  38 ++++-
 sound/soc/intel/avs/pcm.c             |  77 +++++++++-
 sound/soc/intel/avs/registers.h       |  21 ++-
 sound/soc/intel/avs/skl.c             |  59 +++++---
 sound/soc/intel/avs/tgl.c             |  54 +++++++
 16 files changed, 807 insertions(+), 142 deletions(-)
 create mode 100644 sound/soc/intel/avs/cnl.c
 create mode 100644 sound/soc/intel/avs/icl.c
 create mode 100644 sound/soc/intel/avs/tgl.c
Signature · 1 line
2.25.1