Skip to content

audio: microwakeword: select a built-in model by name from the bytes control - #11546

Open
singalsu wants to merge 2 commits into
thesofproject:intel/wov-d0i3-002from
singalsu:intel_wov-d0i3-002_model_select_with_tplg
Open

singalsu wants to merge 2 commits into
thesofproject:intel/wov-d0i3-002from
singalsu:intel_wov-d0i3-002_model_select_with_tplg

Conversation

@singalsu

Copy link
Copy Markdown
Collaborator

No description provided.

…control

A bytes control blob with only struct sof_mww_model_hdr and model_size 0
now selects a built-in model by its keyword name instead of carrying the
model data. This lets a topology choose the keyword without depending on
the detector slot, so the same firmware serves the 3-slot topologies and
a single-slot topology that needs e.g. the hi_intel model. The blob is
only 96 bytes with the ABI header, so it avoids the size problems of
embedding a whole model in the topology.

Non-zero threshold_q8 and avg_len in the selection header override the
trigger settings of the built-in model. A name that is not built in
fails the prepare.

MWW_GetBuiltinModel() looks up the models built in with the current
Kconfig choice. SOF_MWW_MODEL_NAME_LEN is added to user/mww.h and checked
against the TFLM side MWW_MODEL_NAME_LEN at build time.

The tune script sof_mww_select_conf.py emits the selection blob as a
Topology2 data object.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Add SDW_DMIC_WOV_MWW_MODEL to choose the built-in MWW model of the
single-slot SoundWire DMIC WoV by keyword name. The default "default"
keeps the slot based model choice of the firmware. With "hi_intel" the
MWW bytes control gets the select_hi_intel.conf blob that selects the
built-in hi_intel model.

The single-slot detector lands in slot 2 that would load the orange
model, so set SDW_DMIC_WOV_MWW_MODEL=hi_intel for the
sof-ptl-rt713-l3-rt1320-l12-wov development topology. The wov-multi
topologies are not changed.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu
singalsu marked this pull request as ready for review November 26, 2026 17:30

@lgirdwood lgirdwood 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.

@naveen-manohar good for you ?

Sign up for free to 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.

2 participants