mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
ASoC: meson: aiu: align I2S design to the AXG one
Valerio Setti <vsetti@baylibre.com> says: The goal of this series is to reshape Amlogic GX's AIU implementation for I2S to let it follow the same design as in AXG's TDM. Keeping the same design allows for unifying the two platform implementations in the future and it also allows for an easy addition of I2S input. The first commit introduces gx-formatter as the basic block which takes care of properly formatting audio data. Formatters are DAPM widgets (c.f. axg-tdm-formatter in AXG) which are dynamically attached/detached to the streams when the latters starts/stop, respectively. aiu-formatter-i2s is introduced as formatter implementation for the i2s output. By the end aiu-encoder-i2s will only need to handle interface clocks and enforce interface wide rate symmetry (c.f axg-tdm-interface on the AXG platform). Right now rate symmetry is not relevant because only i2s output is supported, but it will become useful when following patch series will introduce the i2s input part. This series was tested on an OdroidC2 board (Amlogic S905 SOC) both with HDMI output and with NXP SGTL5000 codec connected to the I2S pins. This series was also verified using "pcm-test" test tool and all tests are passing. [1]: https://sashiko.dev/#/patchset/20260515-reshape-aiu-as-axg-v1-0-53b457784ff3%40baylibre.com Link: https://patch.msgid.link/20260610-reshape-aiu-as-axg-v2-0-cac3663a8b51@baylibre.com
This commit is contained in:
commit
c7852d2dcf
8 changed files with 731 additions and 78 deletions
Loading…
Add table
Add a link
Reference in a new issue