2023-05-08 12:02:21

by Paweł Anikiel

[permalink] [raw]
Subject: [PATCH v2 0/7] Add Chameleon v3 ASoC audio

The Google Chameleon v3 is a device made for testing audio and video
paths of other devices. This patchset adds support for ASoC audio on
this device. It has two audio sources: HDMI audio from the it68051 chip
(RX only), and analog audio from the ssm2603 chip (RX and TX).

The patchset adds the ASoC platform and codec drivers, as well as some
changes to the existing ssm2602 codec driver.

v2 changes:
* Replace chv3-audio machine driver with simple-audio-card
* Use regmap_register_patch() in ssm2602 workaround
* Remove ssm2602 mute gpio patch, add a gpio hog instead
* Simplify hw_pointer logic in chv3-i2s
* Commit splits & other misc changes

Paweł Anikiel (7):
ASoC: Add Google Chameleon v3 i2s driver
ASoC: Add Google Chameleon v3 codec driver
ASoC: dt-bindings: Add Google Chameleon v3 i2s device
ASoC: dt-bindings: Add Google Chameleon v3 audio codec
ARM: dts: chameleonv3: Add mute gpio hog
ARM: dts: chameleonv3: Add Chameleon v3 audio
ASoC: ssm2602: Add workaround for playback distortions

.../bindings/sound/google,chv3-codec.yaml | 31 ++
.../bindings/sound/google,chv3-i2s.yaml | 44 +++
.../boot/dts/socfpga_arria10_chameleonv3.dts | 62 ++++
sound/soc/Kconfig | 1 +
sound/soc/Makefile | 1 +
sound/soc/codecs/Kconfig | 8 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/chv3-codec.c | 41 +++
sound/soc/codecs/ssm2602.c | 15 +
sound/soc/google/Kconfig | 6 +
sound/soc/google/Makefile | 2 +
sound/soc/google/chv3-i2s.c | 338 ++++++++++++++++++
12 files changed, 551 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/google,chv3-codec.yaml
create mode 100644 Documentation/devicetree/bindings/sound/google,chv3-i2s.yaml
create mode 100644 sound/soc/codecs/chv3-codec.c
create mode 100644 sound/soc/google/Kconfig
create mode 100644 sound/soc/google/Makefile
create mode 100644 sound/soc/google/chv3-i2s.c

--
2.40.1.521.gf1e218fcd8-goog


2023-05-08 12:05:30

by Paweł Anikiel

[permalink] [raw]
Subject: [PATCH v2 5/7] ARM: dts: chameleonv3: Add mute gpio hog

Add an output-high gpio hog for the mute pin.

Signed-off-by: Paweł Anikiel <[email protected]>
---
arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
index 422d00cd4c74..f0483ef46a36 100644
--- a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
+++ b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
@@ -69,6 +69,12 @@ u80: gpio@21 {
"TP122",
"TP123",
"TP124";
+
+ mute {
+ gpio-hog;
+ gpios = <0 0>;
+ output-high;
+ };
};
};

--
2.40.1.521.gf1e218fcd8-goog

2023-05-12 04:21:01

by Mark Brown

[permalink] [raw]
Subject: Re: (subset) [PATCH v2 0/7] Add Chameleon v3 ASoC audio

On Mon, 08 May 2023 13:30:30 +0200, Paweł Anikiel wrote:
> The Google Chameleon v3 is a device made for testing audio and video
> paths of other devices. This patchset adds support for ASoC audio on
> this device. It has two audio sources: HDMI audio from the it68051 chip
> (RX only), and analog audio from the ssm2603 chip (RX and TX).
>
> The patchset adds the ASoC platform and codec drivers, as well as some
> changes to the existing ssm2602 codec driver.
>
> [...]

Applied to

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

Thanks!

[7/7] ASoC: ssm2602: Add workaround for playback distortions
commit: f63550e2b165208a2f382afcaf5551df9569e1d4

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


2023-05-18 22:57:37

by Mark Brown

[permalink] [raw]
Subject: Re: (subset) [PATCH v2 0/7] Add Chameleon v3 ASoC audio

On Mon, 08 May 2023 13:30:30 +0200, Paweł Anikiel wrote:
> The Google Chameleon v3 is a device made for testing audio and video
> paths of other devices. This patchset adds support for ASoC audio on
> this device. It has two audio sources: HDMI audio from the it68051 chip
> (RX only), and analog audio from the ssm2603 chip (RX and TX).
>
> The patchset adds the ASoC platform and codec drivers, as well as some
> changes to the existing ssm2602 codec driver.
>
> [...]

Applied to

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

Thanks!

[1/7] ASoC: Add Google Chameleon v3 i2s driver
commit: 702648721db590b3425c31ade294000e18808345
[2/7] ASoC: Add Google Chameleon v3 codec driver
commit: 61ed303496eb7e18491ee617dec2403f75d5168c
[3/7] ASoC: dt-bindings: Add Google Chameleon v3 i2s device
commit: 6f2c1e7c2546f9eab0031843fb7346e49ba69102
[4/7] ASoC: dt-bindings: Add Google Chameleon v3 audio codec
commit: 580bac2a2c6f7d106be6d0ee0f0f310be49368b3

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