Skip to content

Commit deefdb2

Browse files
committed
[DNM] platform: cavs25: enable TFLM model loading from bytes control
Enable CONFIG_COMP_TENSORFLOW_MODEL_FROM_CONTROL in the cAVS 2.5 board configuration so that the TFLM wake-word model is loaded from runtime bytes control instead of relying on the built-in static C array. Add bytes kcontrol with max 65536 to the tflmcly widget in the HDA Wake-on-Voice detection pipeline topology so that the model flatbuffer can be set at runtime via sof-ctl. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 214a088 commit deefdb2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

app/boards/intel_adsp_cavs25.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CONFIG_STD_CPP17=y
1919
# below), so build tensorflow in statically rather than as an LLEXT module.
2020
CONFIG_COMP_TENSORFLOW=y
2121
CONFIG_COMP_TENSORFLOW_DEBUG_TRACE=y
22+
CONFIG_COMP_TENSORFLOW_MODEL_FROM_CONTROL=y
2223
CONFIG_STACK_SIZE_EDF=32768
2324
CONFIG_PCM_CONVERTER_FORMAT_S16LE=y
2425
CONFIG_PCM_CONVERTER_FORMAT_S24LE=y

tools/topology/topology2/platform/intel/hda-mic-tflm-kpb.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ Object.Pipeline.host-gateway-micsel-mfcc-tflm-capture [
105105
}
106106
}
107107
}
108+
109+
Object.Widget.tflmcly.1 {
110+
Object.Control {
111+
bytes."1" {
112+
name "HDA Mic TFLM bytes"
113+
max 65536
114+
}
115+
}
116+
}
108117
}
109118
]
110119

0 commit comments

Comments
 (0)