[alsa-devel] Question: Can aux_dev suspend/resume ?

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Jan 28 03:35:07 CET 2020


Hi ALSA ML

> I'm checking ALSA SoC framework.
> Now, many Components are connected to Card.
> When we want to do something to all Components,
> we have 2 type of loops
> 
> 1)	for_each_card_components(card, component) {
> 		...
> 	}
> 
> 2)	for_each_card_rtds(card, rtd) {
> 		for_each_rtd_components(rtd, i, component) {
> 			...
> 		}
> 	}
(snip)
> In total, 1) and 2) loop difference are
> 
> 	1) loop is for a) + b) + c)
> 	2) loop is for      b) + c)
> 
> Now, ALSA SoC suspend/resume checks below,
> but a) doesn't have it.
> 
> 	rtd->dai_link->ignore_suspend.
> 
> Thus, "suspend" is using 2) loop,
> but,  "resume"  is using 1) loop.
> 
> My question here is that can AUX suspend/resume ?
> I think we need/want to use 1) loop for it.

No response from ML.
OK, let's assume that AUX can suspend/resume.
If so, current framework has bug.
I will fixup it

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


More information about the Alsa-devel mailing list