-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add topology1 for CTC component. Signed-off-by: Eddy Hsu <eddyhsu@google.com>
- Loading branch information
Eddy Hsu
committed
Feb 13, 2025
1 parent
f35420b
commit 32e93c2
Showing
3 changed files
with
665 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
tools/topology/topology1/m4/google_ctc_audio_processing.m4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
divert(-1) | ||
|
||
dnl Define macro for CTC Processing effect widget | ||
DECLARE_SOF_RT_UUID("google-ctc-audio-processing", google_ctc_audio_processing_uuid, | ||
0xbf0e1bbc, 0xdc6a, 0x45fe, 0xbc, 0x90, 0x25, 0x54, 0xcb, 0x13, 0x7a, 0xb4) | ||
|
||
dnl N_GOOGLE_CTC_AUDIO_PROCESSING(name) | ||
define(`N_GOOGLE_CTC_AUDIO_PROCESSING', `GOOGLE_CTC_AUDIO_PROCESSING'PIPELINE_ID`.'$1) | ||
|
||
dnl W_GOOGLE_CTC_AUDIO_PROCESSING(name, format, periods_sink, periods_source, core, kcontrols_list) | ||
define(`W_GOOGLE_CTC_AUDIO_PROCESSING', | ||
`SectionVendorTuples."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_uuid" {' | ||
` tokens "sof_comp_tokens"' | ||
` tuples."uuid" {' | ||
` SOF_TKN_COMP_UUID' STR(google_ctc_audio_processing_uuid) | ||
` }' | ||
`}' | ||
`SectionData."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_uuid" {' | ||
` tuples "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_uuid"' | ||
`}' | ||
`SectionVendorTuples."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_w" {' | ||
` tokens "sof_comp_tokens"' | ||
` tuples."word" {' | ||
` SOF_TKN_COMP_PERIOD_SINK_COUNT' STR($3) | ||
` SOF_TKN_COMP_PERIOD_SOURCE_COUNT' STR($4) | ||
` SOF_TKN_COMP_CORE_ID' STR($5) | ||
` }' | ||
`}' | ||
`SectionData."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_w" {' | ||
` tuples "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_w"' | ||
`}' | ||
`SectionVendorTuples."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_str" {' | ||
` tokens "sof_comp_tokens"' | ||
` tuples."string" {' | ||
` SOF_TKN_COMP_FORMAT' STR($2) | ||
` }' | ||
`}' | ||
`SectionData."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_str" {' | ||
` tuples "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_str"' | ||
`}' | ||
`SectionVendorTuples."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_str_type" {' | ||
` tokens "sof_process_tokens"' | ||
` tuples."string" {' | ||
` SOF_TKN_PROCESS_TYPE' "GOOGLE_CTC_AUDIO_PROCESSING" | ||
` }' | ||
`}' | ||
`SectionData."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_str_type" {' | ||
` tuples "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_tuples_str_type"' | ||
`}' | ||
`SectionWidget."'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`" {' | ||
` index "'PIPELINE_ID`"' | ||
` type "effect"' | ||
` no_pm "true"' | ||
` data [' | ||
` "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_uuid"' | ||
` "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_w"' | ||
` "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_str"' | ||
` "'N_GOOGLE_CTC_AUDIO_PROCESSING($1)`_data_str_type"' | ||
` ]' | ||
` bytes [' | ||
$6 | ||
` ]' | ||
`}') | ||
|
||
divert(0)dnl |
Oops, something went wrong.