• Kuninori Morimoto's avatar
    ASoC: audio-graph-card2: expand dai_link property part · 844de7ee
    Kuninori Morimoto authored
    Current dai_link related property are parsed and enabled only on CPU
    port node (A)(b)(c). OTOH, Audio Graph Card2 supports many connections
    like Multi-CPU, DPCM, Codec2Codec today. For example in Multi-CPU case,
    it will be checked via (X) -> (B) -> (b) process, but (X) / (B) part
    property is not parsed.
    
    >From dai_link related settings point of view, (B) (C) part and Codec
    port also enabled is more viscerally understandable, and useful.
    
    	card2 {
    (X)		links = <&snd-cpu	(A)
    			 &snd-multi	(B)
    			 &snd-dpcm	(C)
    			 ...>
    
    		multi {
    			ports {
    (B)				snd-multi: port { ... };
    				...
    			};
    		};
    		dpcm {
    			ports {
    (C)				snd-dpcm: port { ... };
    				...
    			};
    		};
    		codec2codec {
    			...
    		};
    	};
    
    	cpu_device {
    		ports {
    (A)			snd-cpu: port { ... };
    (b)			mcpu:    port { ... };
    (c)			dcpu:    port { ... };
    		}
    	};
    
    One note here is that if it was Multi-CPU/Codec case, 1st port only
    enabled to have property it.
    Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Link: https://msgid.link/r/875xuyh6g7.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    844de7ee
simple-card-utils.c 28 KB