mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-31 23:27:20 +00:00

+-- ULCB -------------------+ |+--------+ +--------+| || SSI0| <---> |ak4613 || || SSI1| <---> | || || | +--------+| || | +--------+| || SSI2| <---> |HDMI || || | +--------+| || SSI3| <--+ | || SSI4| <-+| | |+--------+ || | +-------------||------------+ +-- Kingfisher -------------+ | || +--------+| | |+->|pcm3168a|| | +-->| || | +--------+| +---------------------------+ On UCLB/KF, we intuitively think we want to handle these as "2 Sound Cards": card0,0: 1st sound of ULCB (SSI0 - ak4613) card0,1: 2nd sound of ULCB (SSI2 - HDMI) card1,0: 1st sound of KF (SSI3 - pcm3168a) ^ ^ However, because of ASoC Component vs. Card framework limitations, we needed to handle this as "1 big Sound Card": card0,0: 1st sound of ULCB/KF (SSI0 - ak4613) card0,1: 2nd sound of ULCB/KF (SSI2 - HDMI) card0,2: 3rd sound of ULCB/KF (SSI3 - pcm3168a) ^ ^ Now ASoC supports multi Component, which allows us to handle "2 Sound Cards" such as "ULCB Sound Card" and "Kingfisher Sound Card", all ULCB/KF Audio dtsi can be updated. Note that this changes the Sound Card specification method from userland, especially for Kingfisher Sound. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/87fs382yhk.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
30 lines
691 B
Text
30 lines
691 B
Text
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Device Tree for ULCB + Kingfisher + Audio Graph Card2
|
|
*
|
|
* Copyright (C) 2022 Renesas Electronics Corp.
|
|
*/
|
|
|
|
/*
|
|
* (A) CPU0 <----> ak4613
|
|
* (B) CPU1 ----> HDMI
|
|
* (C) CPU2 ----> PCM3168A-p (8ch)
|
|
* (D) CPU3 <---- PCM3168A-c (6ch)
|
|
*
|
|
* (A) aplay -D plughw:0,0 xxx.wav
|
|
* (B) aplay -D plughw:0,1 xxx.wav
|
|
* (C) aplay -D plughw:1,0 xxx.wav
|
|
*
|
|
* (A) arecord -D plughw:0,0 xxx.wav
|
|
* (D) arecord -D plughw:1,1 xxx.wav
|
|
*/
|
|
#include "ulcb-kf-audio-graph-card.dtsi"
|
|
|
|
&sound_card_kf {
|
|
compatible = "audio-graph-card2";
|
|
|
|
/delete-property/ dais;
|
|
links = <&snd_kf1 /* (C) CPU2 -> PCM3168A-p */
|
|
&snd_kf2 /* (D) CPU3 <- PCM3168A-c */
|
|
>;
|
|
};
|