topology2: Build the topology for MTL chromebook - #6987
Conversation
85ceed5 to
d7c4e61
Compare
Add variable definitions for all HS and Speaker settings such as codec name, SSP DAI index, PCM caps names etc in preparation to make this file reusable for variations in the SSP ports in different machines. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Build the topology for the MTL chromebook with Headset on SSP 2 and speakers on SSP 0. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
| "cavs-rt5682\;sof-mtl-max98357a-rt5682-ssp2-ssp0\;PLATFORM=mtl,NUM_DMICS=4,PDM1_MIC_A_ENABLE=1,\ | ||
| PDM1_MIC_B_ENABLE=1,PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-mtl-max98357a-rt5682.bin,\ | ||
| DEEPBUFFER_FW_DMA_MS=10,HEADSET_SSP_DAI_INDEX=2,SPEAKER_SSP_DAI_INDEX=0,HEADSET_CODEC_NAME=SSP2-Codec,\ | ||
| SPEAKER_CODEC_NAME=SSP0-Codec" |
There was a problem hiding this comment.
the only nit-pick I would have is that the information is duplicated with HEADSET_SSP_DAI_INDEX=2 and HEADSET_CODEC_NAME=SSP2-Codec
If you need to change that's 2 variables instead of a single value.
This can be fixed as an improvement, it's good enough for now.
There was a problem hiding this comment.
@plbossart that feature is coming. @jsarha is working on a string concat feature that will allow us to do this.
jsarha
left a comment
There was a problem hiding this comment.
Finally a topology PR I can understand fully on the first read. Approved with a minor nitpick.
|
|
||
| Object.Widget.copier.1 { | ||
| stream_name 'SSP0 Playback' | ||
| stream_name '$HEADSET_PLAYBACK_PCM_STREAM_NAME' |
There was a problem hiding this comment.
A minor nitpick: Wouldn't it be cleaner to have one commit to introduce the stream name variable and another to change the name?
Build the topology for the MTL chromebook with Headset on SSP 2 and speakers on SSP 0.