1
linux/sound/soc/sh/rcar
Lad Prabhakar 9b064d200a
ASoC: rsnd: Fix probe failure on HiHope boards due to endpoint parsing
On the HiHope boards, we have a single port with a single endpoint defined
as below:
....
        rsnd_port: port {
                rsnd_endpoint: endpoint {
                        remote-endpoint = <&dw_hdmi0_snd_in>;

                        dai-format = "i2s";
                        bitclock-master = <&rsnd_endpoint>;
                        frame-master = <&rsnd_endpoint>;

                        playback = <&ssi2>;
                };
        };
....

With commit 547b02f74e ("ASoC: rsnd: enable multi Component support for
Audio Graph Card/Card2"), support for multiple ports was added. This caused
probe failures on HiHope boards, as the endpoint could not be retrieved due
to incorrect device node pointers being used.

This patch fixes the issue by updating the `rsnd_dai_of_node()` and
`rsnd_dai_probe()` functions to use the correct device node pointers based
on the port names ('port' or 'ports'). It ensures that the endpoint is
properly parsed for both single and multi-port configurations, restoring
compatibility with HiHope boards.

Fixes: 547b02f74e ("ASoC: rsnd: enable multi Component support for Audio Graph Card/Card2")
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20241010141432.716868-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-10-11 12:06:49 +01:00
..
adg.c ASoC: rsnd: remove rsnd_mod_confirm_ssi() under DEBUG 2024-07-30 13:29:51 +01:00
cmd.c ASoC: rsnd: no exception for SCU 2024-04-02 15:55:07 +01:00
core.c ASoC: rsnd: Fix probe failure on HiHope boards due to endpoint parsing 2024-10-11 12:06:49 +01:00
ctu.c ASoC: rsnd: no exception for SCU 2024-04-02 15:55:07 +01:00
debugfs.c
dma.c ASoC: rsnd: use pcm_dmaengine code 2024-07-30 13:29:52 +01:00
dvc.c ASoC: rsnd: no exception for SCU 2024-04-02 15:55:07 +01:00
gen.c ASoC: rsnd: don't get resource from ID 2024-04-02 15:55:04 +01:00
Makefile ASoC: sh: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:29 +09:00
mix.c ASoC: rsnd: no exception for SCU 2024-04-02 15:55:07 +01:00
rsnd.h ASoC: rsnd: use pcm_dmaengine code 2024-07-30 13:29:52 +01:00
src.c ASoC: rsnd: no exception for SCU 2024-04-02 15:55:07 +01:00
ssi.c ASoC: rsnd: use pcm_dmaengine code 2024-07-30 13:29:52 +01:00
ssiu.c ASoC: rsnd: don't get resource from ID 2024-04-02 15:55:04 +01:00