ASoC: amd: acp: Power on/off the speaker enable gpio pin based on DAPM callback.
authorV sujith kumar Reddy <vsujithkumar.reddy@amd.com>
Fri, 24 Dec 2021 15:00:43 +0000 (20:30 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 24 Dec 2021 14:06:59 +0000 (14:06 +0000)
commit5c5f08f7fc0bee9a1bc3fbdcb7a21cfd0648ab14
tree5f4db68b369cdf80c11145633f190b12919f9439
parentb2fde4deff854ca7d49ec735a8252d944418b64d
ASoC: amd: acp: Power on/off the speaker enable gpio pin based on DAPM callback.

Configure the speaker gpio pin based on power sequence of the DAPM
speaker events.
Enable speaker after widget power up and Disable before widget  powerdown.

Signed-off-by: V sujith kumar Reddy <vsujithkumar.reddy@amd.com>
Link: https://lore.kernel.org/r/20211224150058.2444776-1-vsujithkumar.reddy@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/Kconfig
sound/soc/amd/acp/acp-legacy-mach.c
sound/soc/amd/acp/acp-mach-common.c
sound/soc/amd/acp/acp-mach.h
sound/soc/amd/acp/acp-sof-mach.c