]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: rsnd: Support unprefixed DT node names for RZ/G3E
authorJohn Madieu <john.madieu.xa@bp.renesas.com>
Mon, 25 May 2026 11:02:29 +0000 (11:02 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 1 Jun 2026 14:30:26 +0000 (15:30 +0100)
commitec1b5ebf6d8b379effb6167316555a8efeac5eef
treeb57de0c56bfc317d955d6b8f5d9bdff36d05d212
parent33a3500a34b87f370e4d6af73adc2efe8fffc84f
ASoC: rsnd: Support unprefixed DT node names for RZ/G3E

The RZ/G3E device tree binding uses standard unprefixed node names
("ssi", "ssiu", "src", "dvc", "mix", "ctu") instead of the legacy
"rcar_sound," prefixed names used by R-Car bindings.

Convert rsnd_parse_of_node() from a macro into a function that tries
the legacy prefixed name first, then falls back to the unprefixed name
by stripping the "rcar_sound," prefix. This makes the driver work
transparently with both old and new bindings.

While at it, update the related comments in dma.c, ssi.c and ssiu.c
that reference the hardcoded "rcar_sound,ssiu" / "rcar_sound,ssi"
names to note that the driver now accepts both the prefixed and the
unprefixed forms.

Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20260525110230.4014435-18-john.madieu.xa@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/renesas/rcar/core.c
sound/soc/renesas/rcar/dma.c
sound/soc/renesas/rcar/rsnd.h
sound/soc/renesas/rcar/ssi.c
sound/soc/renesas/rcar/ssiu.c