Skip to content

Commit daaeba2

Browse files
Fei Shaogregkh
authored andcommitted
arm64: dts: mediatek: mt8195-cherry: Use correct audio codec DAI
[ Upstream commit 7d5794e ] The RT5682i and RT5682s drivers describe two DAIs: AIF1 supports both playback and capture, while AIF2 supports capture only. Cherry doesn't specify which DAI to use. Although this doesn't cause real issues because AIF1 happens to be the first DAI, it should be corrected: codec@1a: #sound-dai-cells: 1 was expected Update #sound-dai-cells to 1 and adjust DAI link usages accordingly. Fixes: 87728e3 ("arm64: dts: mediatek: mt8195-cherry: Specify sound DAI links and routing") Signed-off-by: Fei Shao <fshao@chromium.org> Link: https://lore.kernel.org/r/20241021114318.1358681-1-fshao@chromium.org Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 03af5fd commit daaeba2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
/* Realtek RT5682i or RT5682s, sharing the same configuration */
439439
reg = <0x1a>;
440440
interrupts-extended = <&pio 89 IRQ_TYPE_EDGE_BOTH>;
441-
#sound-dai-cells = <0>;
441+
#sound-dai-cells = <1>;
442442
realtek,jd-src = <1>;
443443

444444
AVDD-supply = <&mt6359_vio18_ldo_reg>;
@@ -1181,15 +1181,15 @@
11811181
link-name = "ETDM1_OUT_BE";
11821182
mediatek,clk-provider = "cpu";
11831183
codec {
1184-
sound-dai = <&audio_codec>;
1184+
sound-dai = <&audio_codec 0>;
11851185
};
11861186
};
11871187

11881188
hs-capture-dai-link {
11891189
link-name = "ETDM2_IN_BE";
11901190
mediatek,clk-provider = "cpu";
11911191
codec {
1192-
sound-dai = <&audio_codec>;
1192+
sound-dai = <&audio_codec 0>;
11931193
};
11941194
};
11951195

0 commit comments

Comments
 (0)