Skip to content

ASoC: cs35l56: Switch to using the IRQ from the SoundWire core

Richard Fitzgerald linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: cs35l56: Request IRQ in cs35l56_common_probe()sound/soc/codecs/cs35l56-i2c.c sound/soc/codecs/cs35l56-sdw.c sound/soc/codecs/cs35l56-spi.c +2 more+14 -260 replies
2/4ASoC: cs35l56: Move cs35l56_irq_request() after cs35l56_irq()sound/soc/codecs/cs35l56-shared.c+19 -190 replies
3/4soundwire: bus_type: Create IRQ mapping before calling driver probe()drivers/soundwire/bus_type.c+3 -33 replies
4/4ASoC: cs35l56: Use IRQ provided by the SoundWire coreinclude/sound/cs35l56.h sound/soc/codecs/Kconfig sound/soc/codecs/cs35l56-sdw.c +3 more+38 -860 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchVinod Koul
1/4
2/4
3/4A-b
4/4

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 0/4] ASoC: cs35l56: Switch to using the IRQ from the SoundWire core

At the time the cs35l56 driver was written the only way to get interrupts from the SoundWire core was to implement a custom handler inside the interrupt_callback() function.

The SoundWire core now provides a virtual IRQ for notifying ImpDef interrupts, and switching to this simplifies the code and also makes it more similar to the normal interrupt handling of I2C/SPI (though some SoundWire specials are still needed).

Patches #1 and #2 do some preparatory code shuffling so that there is less clutter in patch #4.

Patch #3 changes the SoundWire core code to create the virtual ImpDef IRQ before calling the codec drive probe() so that the IRQ can be requested in probe().

Richard Fitzgerald (4):
ASoC: cs35l56: Request IRQ in cs35l56_common_probe()
ASoC: cs35l56: Move cs35l56_irq_request() after cs35l56_irq()
soundwire: bus_type: Create IRQ mapping before calling driver probe()
ASoC: cs35l56: Use IRQ provided by the SoundWire core

 drivers/soundwire/bus_type.c      |  6 +--
 include/sound/cs35l56.h           |  1 -
 sound/soc/codecs/Kconfig          |  1 +
 sound/soc/codecs/cs35l56-i2c.c    | 10 +----
 sound/soc/codecs/cs35l56-sdw.c    | 69 ++++++-------------------------
 sound/soc/codecs/cs35l56-shared.c | 41 +++++++++---------
 sound/soc/codecs/cs35l56-spi.c    | 10 +----
 sound/soc/codecs/cs35l56.c        | 57 +++++++++++++------------
 sound/soc/codecs/cs35l56.h        | 11 ++---
 9 files changed, 73 insertions(+), 133 deletions(-)
Signature · 1 line
2.47.3