Skip to content

Commit

Permalink
smart amp : Do not use DYNAMIC topology
Browse files Browse the repository at this point in the history
DYNAMIC topology should not be used for pipeline with volatile
Kcontrols.
Hence ensuring the flag is un defined before processing
smart amp related PCM and DAI configs

Suggested-by: Sridharan, Ranjani <ranjani.sridharan@linux.intel.com>
Signed-off-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
  • Loading branch information
sathyap-chrome authored and kv2019i committed Jul 20, 2023
1 parent fc1ddf9 commit 214f983
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/topology/topology1/sof-smart-amplifier.m4
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ DEBUG_START
# define the default macros.
# define them in your specific platform .m4 if needed.

#undefine the DYNAMIC flag (if enabled, save it) for smart amplifier as it uses volatile kcontrols
ifdef(`DYNAMIC', `define(`SAVED_DYNAMIC', DYNAMIC)',`')
undefine(`DYNAMIC')


# define(`SMART_AMP_CORE', 1) define the DSP core that the DSM pipeline will be run on, if not done yet
ifdef(`SMART_AMP_CORE',`',`define(`SMART_AMP_CORE', 0)')

Expand Down Expand Up @@ -235,4 +240,7 @@ DAI_CONFIG(SSP, SMART_SSP_INDEX, SMART_BE_ID, SMART_SSP_NAME,
SSP_CONFIG_DATA(SSP, SMART_SSP_INDEX, 32, 0, SMART_SSP_QUIRK)))
')

#Re-enable DYNAMIC flag if it was enabled for other pipelines
ifdef(`SAVED_DYNAMIC', `define(`DYNAMIC', 1)',`')

DEBUG_END

0 comments on commit 214f983

Please sign in to comment.