Trying to make the RX audio coming through

This commit is contained in:
DuDu371 2026-01-23 15:50:09 +00:00
parent 3bfbb94a2a
commit 0a7635804a
2 changed files with 13 additions and 3 deletions

View file

@ -273,7 +273,7 @@
hdmiin-sound {
status = "okay";
compatible = "rockchip,hdmi";
compatible = "rockchip,hdmi-rx";
rockchip,mclk-fs = <128>;
rockchip,format = "i2s";
rockchip,bitclock-master = <&hdmirx_ctrler>;

View file

@ -1075,6 +1075,9 @@ static int hdmi_codec_probe(struct platform_device *pdev)
struct hdmi_codec_priv *hcp;
int dai_count, i = 0;
int ret;
bool is_rx;
is_rx = device_property_read_bool(dev->parent, "rockchip,hdmi-rx");
if (!hcd) {
dev_err(dev, "%s: No platform data\n", __func__);
@ -1115,8 +1118,15 @@ static int hdmi_codec_probe(struct platform_device *pdev)
* causes "Only one simultaneous stream supported!" errors
* and results in mono audio output.
*/
daidrv[i].capture.channels_min = 0;
daidrv[i].capture.channels_max = 0;
if (is_rx) {
/* HDMI-IN: capture only */
daidrv[i].playback.channels_min = 0;
daidrv[i].playback.channels_max = 0;
} else {
/* HDMI-OUT: playback only */
daidrv[i].capture.channels_min = 0;
daidrv[i].capture.channels_max = 0;
}
i++;
}