Skip to content

ASoC: Intel: Boards: tgl_max98373: add dai_trigger function - #2123

Merged
plbossart merged 2 commits into
topic/sof-devfrom
sof_dev_15_05
Jun 1, 2020
Merged

ASoC: Intel: Boards: tgl_max98373: add dai_trigger function#2123
plbossart merged 2 commits into
topic/sof-devfrom
sof_dev_15_05

Conversation

@RDharageswari

Copy link
Copy Markdown

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 suggest 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.

@RDharageswariRDharageswari left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing the errors

Comment threadsound/soc/intel/boards/sof_maxim_common.c Outdated
Comment threadsound/soc/intel/boards/sof_maxim_common.c Outdated
Comment threadsound/soc/intel/boards/sof_maxim_common.c Outdated
Comment threadsound/soc/intel/boards/sof_rt5682.c Outdated
@RDharageswari
RDharageswariforce-pushed the sof_dev_15_05 branch 2 times, most recently from fbccb2b to 43bdcd2CompareMay 16, 2020 00:22
Comment threadsound/soc/intel/boards/sof_maxim_common.c Outdated

@plbossartplbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good start but this needs more work.

Comment threadsound/soc/intel/boards/sof_maxim_common.c Outdated
Comment threadsound/soc/intel/boards/sof_rt5682.c Outdated
Comment threadsound/soc/intel/boards/sof_maxim_common.c
Comment threadsound/soc/intel/boards/sof_maxim_common.c Outdated
case SNDRV_PCM_TRIGGER_STOP:
case SNDRV_PCM_TRIGGER_SUSPEND:
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
val = snd_soc_dai_active(codec_dai);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont seem to use val at all?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment threadsound/soc/intel/boards/sof_maxim_common.c
@RDharageswari
RDharageswariforce-pushed the sof_dev_15_05 branch 2 times, most recently from 73f1579 to c2759d5CompareMay 28, 2020 00:34
Comment threadsound/soc/intel/boards/sof_maxim_common.c
ranj063
ranj063 previously approved these changes May 28, 2020

@ranj063ranj063 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @RDharageswari

plbossart
plbossart previously approved these changes May 28, 2020

@plbossartplbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we ever want to work with a single amplifier the code will need to be updated, see below. It's not hypothetical, see ASoC: Intel: sof_da7219_max98373: Add support for max98360a speaker amp

Comment threadsound/soc/intel/boards/sof_maxim_common.c
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>
ranj063
ranj063 previously approved these changes May 29, 2020
…onents
MAX_98373_DEV0_NAME is the Right speaker and MAX_98373_DEV1_NAME is the
Left speaker, hence updating the comments for max98373 dailink components
accordingly.
Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
@plbossart
plbossart merged commit 16d98cd into topic/sof-devJun 1, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@RDharageswari@plbossart@ranj063@kv2019i