]> git.ipfire.org Git - thirdparty/linux.git/commit
ARM: dts: am335x-sl50: Fix audio bitclock and frame master endpoint
authorJihed Chaibi <jihed.chaibi.dev@gmail.com>
Wed, 25 Mar 2026 22:34:11 +0000 (23:34 +0100)
committerKevin Hilman (TI) <khilman@baylibre.com>
Fri, 1 May 2026 16:57:57 +0000 (09:57 -0700)
commit2bc564f46b00dc4f4331fc337277ff3f5fac8a4e
tree90344d895664bce3cad67d29abca7b1fbdc63315
parent254f49634ee16a731174d2ae34bc50bd5f45e731
ARM: dts: am335x-sl50: Fix audio bitclock and frame master endpoint

The cpu_endpoint in mcasp0 specifies the TLV320AIC3106 codec as the
bitclock and frame master, but the phandles point to the codec's port
node (codec_port) rather than its endpoint node (codec_endpoint).

audio-graph-card calls simple_util_parse_daifmt() with ep_codec set to
the endpoint node (codec_endpoint). The function resolves the
bitclock-master phandle and checks whether it equals ep_codec. Since
codec_port is the parent of codec_endpoint, not the endpoint itself, the
comparison always evaluates to false. This causes the mcasp0 CPU side to
be silently configured as bitclock and frame master instead of the codec,
which is the opposite of the intended configuration.

Fix by pointing bitclock-master and frame-master to codec_endpoint.

Fixes: e5f89dbdebc5 ("ARM: dts: am335x-sl50: use audio-graph-card for sound")
Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Link: https://patch.msgid.link/20260325223411.123666-1-jihed.chaibi.dev@gmail.com
Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com>
arch/arm/boot/dts/ti/omap/am335x-sl50.dts