[PATCH v4 0/7] ASoC: apple: mca: support simultaneous I2S capture on the frontend

James Calligeros posted 7 patches 4 days, 19 hours ago
sound/soc/apple/mca.c | 300 +++++++++++++++++--------
1 file changed, 207 insertions(+), 93 deletions(-)
[PATCH v4 0/7] ASoC: apple: mca: support simultaneous I2S capture on the frontend
Posted by James Calligeros 4 days, 19 hours ago
Hi folks,

This series introduces a number of changes to the ASoC driver
for the Apple MCA peripheral to enable support for bidirectional
I2S. This is achieved by allowing frontends to act as clock consumers
and logically ORing data input lines when multiple backends are linked
to a frontend.

This allows the Texas Instruments speaker amps used on Apple Silicon Macs
(Apple-specific revisions of TAS2764 and TAS2770) to send their IVSENSE
data back to the SoC. Since these amps do not have any sort of integrated
speaker protection logic, we must use the IVSENSE data and the Thiele/Small
Parameters of the attached speaker(s) to implement our own in software.

---
Changes in v4:
- Fix remaining port_driver reference (sorry...)
- Link to v3: https://patch.msgid.link/20260705-apple-audio-redux-v3-0-ff7a7afe2b6b@gmail.com

Changes in v3:
- Changed magic number write in fe prepare to BIT(port)
- Link to v2: https://patch.msgid.link/20260628-apple-audio-redux-v2-0-6328269c9652@gmail.com

Changes in v2:
- Drop readx_poll_timeout use. It ended up being unreliable. Fall back
  to just bumping up the delay on SERDES reset :/
- Rebase on asoc/for-next
- Drop the one patch that was applied
- Drop clock shutdown relocation patch. This was not actually required
  and the incorrect thing to do anyway.
---

Link to v1: https://lore.kernel.org/asahi/20250518-mca-fixes-v1-0-ee1015a695f6@gmail.com/

Regards,
James

To: Martin Povišer <povik+lin@cutebit.org>
To: Liam Girdwood <lgirdwood@gmail.com>
To: Mark Brown <broonie@kernel.org>
To: Jaroslav Kysela <perex@perex.cz>
To: Takashi Iwai <tiwai@suse.com>
Cc: asahi@lists.linux.dev
Cc: linux-sound@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Hector Martin (2):
      ASoC: apple: mca: Do not mark clocks in use for non-providers
      ASoC: apple: mca: Add delay after configuring clock

James Calligeros (1):
      ASoC: apple: mca: increase SERDES reset delay

Martin Povišer (4):
      ASoC: apple: mca: Separate data & clock port setup
      ASoC: apple: mca: Factor out mca_be_get_fe
      ASoC: apple: mca: Support FEs being clock consumers
      ASoC: apple: mca: Support capture on multiples BEs

 sound/soc/apple/mca.c | 300 +++++++++++++++++--------
 1 file changed, 207 insertions(+), 93 deletions(-)
---
base-commit: be44d21728b6646189779923b841ad3a46d694e5
change-id: 20260623-apple-audio-redux-b7b43d9c02af

Best regards,
--  
James Calligeros <jcalligeros99@gmail.com>

Re: [PATCH v4 0/7] ASoC: apple: mca: support simultaneous I2S capture on the frontend
Posted by Mark Brown 2 days, 8 hours ago
On Sat, 11 Jul 2026 11:11:18 +1000, James Calligeros wrote:
> ASoC: apple: mca: support simultaneous I2S capture on the frontend
> 
> Hi folks,
> 
> This series introduces a number of changes to the ASoC driver
> for the Apple MCA peripheral to enable support for bidirectional
> I2S. This is achieved by allowing frontends to act as clock consumers
> and logically ORing data input lines when multiple backends are linked
> to a frontend.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.3

Thanks!

[1/7] ASoC: apple: mca: increase SERDES reset delay
      https://git.kernel.org/broonie/sound/c/cccd721e5aab
[2/7] ASoC: apple: mca: Separate data & clock port setup
      https://git.kernel.org/broonie/sound/c/108d4b654d82
[3/7] ASoC: apple: mca: Factor out mca_be_get_fe
      https://git.kernel.org/broonie/sound/c/2aab6230f8d8
[4/7] ASoC: apple: mca: Support FEs being clock consumers
      https://git.kernel.org/broonie/sound/c/00309bfb1f54
[5/7] ASoC: apple: mca: Support capture on multiples BEs
      https://git.kernel.org/broonie/sound/c/108a14b20f95
[6/7] ASoC: apple: mca: Do not mark clocks in use for non-providers
      https://git.kernel.org/broonie/sound/c/889c26cfb98d
[7/7] ASoC: apple: mca: Add delay after configuring clock
      https://git.kernel.org/broonie/sound/c/8dd595bca51a

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark