Add HDMI audio on the rk3588 SoC
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest3 patches 13 repliesApplied
- v6 posting 2/23 patches 1 replySuperseded
- v6 posting 1/20 of 3 patches 0 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 3 patches | 7 replies | Superseded | |
| v4 | 2 patches | 0 replies | Superseded | |
| v3 | 2 patches | 5 replies | Superseded | |
| v2 | 2 patches | 3 replies | Superseded | |
| v1 | 2 patches | 1 reply | Superseded |
Changes in v7 from the cover letter
- Fix arguments alignement (checkpatch --strict warnings)
- Add hdmi1 audio support too
- Move hdmi0_sound node under hdmi0_out_con
Patches in v7 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/bridge: synopsys: Add audio support for dw-hdmi-qpdrivers/ | +489 | 0 replies | |
| 2/3 | arm64: dts: rockchip: Add HDMI audio outputs for rk3588 SoCarch/ arch/ | +34 | 0 replies | |
| 3/3 | arm64: dts: rockchip: Enable HDMI audio outputs for Rock 5Barch/ | +16 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Dmitry Baryshkov | Quentin Schulz | Robert Foss | Detlev Casanova |
|---|---|---|---|---|
| Series | T-b | |||
| 1/3 | R-b | T-b | R-b | |
| 2/3 | T-b | |||
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v7 0/3] Add HDMI audio on the rk3588 SoC
To support HDMI audio on the rk3588 based devices, the generic HDMI Codec framework is used in the dw-hdmi-qp DRM bridge driver.
The implementation is mainly based on the downstream driver, ported to the generic HDMI Codec framework [1] recently merged in the master branch. The parameters computation has been kept as is and the data stored in the dw_hdmi_qp struct as been cleaned up.
The table for the N values has been edited to reflect N recommended values as well as CTS recommended values.
The downstream kernel also implements a machine driver for HDMI audio but it is doing exactly what the simple-audio-card driver does, so use that instead in the RK3588 SoC device tree.
This adds HDMI audio support for both HDMI TX ports.
*** Dependencies ***
Based on Linus' master branch, but also needs Cristian's dts patches for HDMI1 support [2], which depends on Heiko's patchset for phy-rockchip-samsung-hdptx [3]. Patches will apply without [3], but HDMI will not work (at all).
[1]: https://lore.kernel.org/all/[email protected]
[2]: https://lore.kernel.org/linux-rockchip/[email protected]
[3]: https://lore.kernel.org/lkml/[email protected]/
Changes since v6:
- Fix arguments alignement (checkpatch --strict warnings)
- Add hdmi1 audio support too
- Move hdmi0_sound node under hdmi0_out_con
Changes since v5:
- Simplify audio math computation for N
- Move hdmi0-sound node up with other address-less nodes
Changes since v4:
- Moved hdmi0_audio node the rk3588-base.dtsi
- Enable hdmi0_audio in rk3588-rock-5b.dts
Changes since v3:
- Renamed function to start with dw_hdmi_qp
Changes since v2:
- Also clear the audio infoframe
- Write AUDI_CONTENTS0 to its default value in case it gets overwritten.
- Store tmds_char_rate in the dw_hdmi_qp struct in atomic_enable
- Clear tmds_char_rate in atomic_disable and only write registers when tmds_char_rate is not 0.
- Do not use connector_state duplicates
Changes since v1:
- Remove useless audio_mutex (was used downstream for multiple drivers access to audio functions)
- Let hdmi_codec build and setup audio infoframes
- Only access audio registers when connector is connected
- Rebased on master branch
Detlev Casanova (2):
arm64: dts: rockchip: Add HDMI audio outputs for rk3588 SoC
arm64: dts: rockchip: Enable HDMI audio outputs for Rock 5B
Sugar Zhang (1):
drm/bridge: synopsys: Add audio support for dw-hdmi-qp
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 17 + .../arm64/boot/dts/rockchip/rk3588-extra.dtsi | 17 + .../boot/dts/rockchip/rk3588-rock-5b.dts | 16 + drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 489 ++++++++++++++++++ 4 files changed, 539 insertions(+)
Signature · 1 line
2.48.1