[alsa-devel] [PATCH] ASoC: max98357a: add speaker switch

Mark Brown broonie at kernel.org
Tue Feb 11 12:29:36 CET 2020


On Tue, Feb 11, 2020 at 06:32:20PM +0800, Tzung-Bi Shih wrote:

> Did you mean (in machine driver):
> - Add SND_SOC_DAPM_SPK("Speakers", NULL)
> - Add SOC_DAPM_PIN_SWITCH("Speakers")
> - Add DAPM route "Speaker" (from max98357a) to "Speakers"
> User space program controls "Speakers Switch" to toggle the switch?

Yes.

> We found the method cannot avoid max98357a->sdmode being set.  As a
> result, max98357a consumes power even if we don't switch on it.

That seems like something that you can address by improving integration
with DAPM.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20200211/793f5159/attachment.sig>


More information about the Alsa-devel mailing list