[alsa-devel] Counting links in simple-card

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Oct 10 01:37:55 CEST 2019


Hi Daniel

> > Do you mean CPU-dummy + dummy-Codec ?
> > But anyway, simple-card/audio-graph DPCM support is very limited.
> > Unfortunately it doesn't have flexibility...
> 
> Yes, exactly. I need 1 DAI link with 1 FE + 1 BE for DSP / SOF  usecase.

simple-card support it
if it needs convert-rate or convert-channels.
Please check below

	static simple_for_each_link(xxx)
	{
		...
		for_each_child_of_node(node, np) {
			/*
			 * It is DPCM
			 * if it has many CPUs,
			 * or has convert-xxx property
			 */
(1)			if (dpcm_selectable &&
(2)			    (num > 2 ||
(3)			     adata.convert_rate || adata.convert_channels))
				ret = func_dpcm(priv, np, codec, li, is_top);
			...

(1) : using simple-scu-audio-card
(2) : 2 nodes or more
(3) : has convert-xxx property

Thank you for your help !!
Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list