[alsa-devel] Question about DPCM FE vs BE

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed Oct 9 09:57:40 CEST 2019


Hi ALSA ML

In my understanding, DPCM needs FE and BE.
And, one FE can have multiple BE, and one BE can have multiple FE.

My question this time is that one snd_soc_pcm_runtime can be both
FE and BE in the same time (= Sometimes FE, sometimes BE) ??

In my understanding, it never happen.
But, is this correct ?

I'm asking because do we need .be_clients/.fe_clients ?
If one pcm_runtime can't be FE / BE in the same time,
just .clients is enough I think.

	static int dpcm_be_connect(...)
	{
		...
-		list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients);
-		list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients);
+		list_add(&dpcm->list_be, &fe->dpcm[stream].clients);
+		list_add(&dpcm->list_fe, &be->dpcm[stream].clients);
		...
	}


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


More information about the Alsa-devel mailing list