Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: Intel: avs: Refactor IRQ handling
@ 2024-04-19  8:48 Cezary Rojewski
  2024-04-19  8:48 ` [PATCH 1/2] ASoC: Intel: avs: New IRQ handling implementation Cezary Rojewski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cezary Rojewski @ 2024-04-19  8:48 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, linux-sound, tiwai, perex, amadeuszx.slawinski,
	hdegoede, Cezary Rojewski

The existing code can be both improved and simplified. To make this
change easier to manage, first add new implementation and then remove
deadcode in a separate patch.

Simplification achieved with:

- reduce the amount of resources requested by the driver i.e.: IPC and
  CLDMA request_irq() merged into one
- reduce the number of DSP ops from 2 to 1:
  irq_handler/thread() vs dsp_interrupt()
- drop ambiguity around CLDMA interrupt, let skl.c handle that
  explicitly as it is the only user

With that done, switch to the new implementation and remove unused
members. While the change is non-trivial, from functional perspective
status quo is achieved.

Cezary Rojewski (2):
  ASoC: Intel: avs: New IRQ handling implementation
  ASoC: Intel: avs: Remove unused IRQ-related code

 sound/soc/intel/avs/apl.c   | 20 +++++++-
 sound/soc/intel/avs/avs.h   |  8 ++--
 sound/soc/intel/avs/cldma.c | 42 ++++-------------
 sound/soc/intel/avs/cldma.h |  1 +
 sound/soc/intel/avs/cnl.c   | 91 ++++++++++++++++++++++++-------------
 sound/soc/intel/avs/core.c  | 85 ++++++++++++++++------------------
 sound/soc/intel/avs/icl.c   |  3 +-
 sound/soc/intel/avs/ipc.c   | 48 -------------------
 sound/soc/intel/avs/skl.c   | 73 +++++++++++++++++++++--------
 sound/soc/intel/avs/tgl.c   |  3 +-
 10 files changed, 186 insertions(+), 188 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-04-21  1:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19  8:48 [PATCH 0/2] ASoC: Intel: avs: Refactor IRQ handling Cezary Rojewski
2024-04-19  8:48 ` [PATCH 1/2] ASoC: Intel: avs: New IRQ handling implementation Cezary Rojewski
2024-04-19  8:48 ` [PATCH 2/2] ASoC: Intel: avs: Remove unused IRQ-related code Cezary Rojewski
2024-04-21  1:03 ` [PATCH 0/2] ASoC: Intel: avs: Refactor IRQ handling Mark Brown

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