OSDN Git Service

ASoC: Intel: Boards: tgl_max98373: add dai_trigger function
authorDharageswari R <dharageswari.r@intel.com>
Thu, 25 Jun 2020 19:12:58 +0000 (14:12 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jun 2020 12:35:17 +0000 (13:35 +0100)
commit94d2d08974746bd0f469ec5c1e50c613de558bfc
tree02606f35c6222ea7e1d2bd01ab73ed3c85e7c248
parent2697f3af42b7a90c460c1d0cfef904dea56230e2
ASoC: Intel: Boards: tgl_max98373: add dai_trigger function

Speaker amplifier feedback is not modeled as being dependent on any
active output. Even when there is no playback happening, parts of the
graph, specifically the IV sense->speaker protection->output remains
active and this prevents the DSP from entering low-power states.

This patch suggests a machine driver level approach where the speaker
pins are enabled/disabled dynamically depending on stream start/stop
events. DPAM graph representations show the feedback loop is indeed
disabled and low-power states can be reached.

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200625191308.3322-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_maxim_common.c
sound/soc/intel/boards/sof_rt5682.c