1# Capture TDFB Pipeline and PCM, 48 kHz 2# 3# Pipeline Endpoints for connection are :- 4# 5# host PCM_C <-- B0 <-- TDFB 0 <-- B1 <-- sink DAI0 6 7# Include topology builder 8include(`utils.m4') 9include(`buffer.m4') 10include(`pcm.m4') 11include(`dai.m4') 12include(`pipeline.m4') 13include(`mixercontrol.m4') 14include(`bytecontrol.m4') 15include(`enumcontrol.m4') 16include(`tdfb.m4') 17 18# 19# Controls 20# 21 22# defines with pipeline ID appended for unique names 23include(`tdfb_defines.m4') 24 25# Define filter. A passthrough is set by default. 26ifdef(`PIPELINE_FILTER1', , `define(PIPELINE_FILTER1, `tdfb/coef_line2_pass.m4')') 27include(PIPELINE_FILTER1) 28 29# Include defines for TDBF controls 30include(`tdfb_controls.m4') 31 32# 33# Components and Buffers 34# 35 36# Host "TDFB Capture" PCM 37# with 0 sink and 2 source periods 38W_PCM_CAPTURE(PCM_ID, TDFB Capture, 0, 2) 39 40# "TDFB 0" has 2 sink period and x source periods 41W_TDFB(0, PIPELINE_FORMAT, 2, DAI_PERIODS, SCHEDULE_CORE, 42 LIST(` ', "DEF_TDFB_BEAM"), 43 LIST(` ', "DEF_TDFB_DIRECTION"), 44 LIST(` ', "DEF_TDFB_AZIMUTH"), 45 LIST(` ', "DEF_TDFB_AZIMUTH_ESTIMATE"), 46 LIST(` ', "DEF_TDFB_BYTES")) 47 48# Capture Buffers 49W_BUFFER(0, COMP_BUFFER_SIZE(2, 50 COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, 51 COMP_PERIOD_FRAMES(PCM_MAX_RATE, SCHEDULE_PERIOD)), 52 PLATFORM_PASS_MEM_CAP) 53 54W_BUFFER(1, COMP_BUFFER_SIZE(DAI_PERIODS, 55 COMP_SAMPLE_SIZE(PIPELINE_FORMAT), PIPELINE_CHANNELS, 56 COMP_PERIOD_FRAMES(PCM_MAX_RATE, SCHEDULE_PERIOD)), 57 PLATFORM_PASS_MEM_CAP) 58 59# 60# Pipeline Graph 61# 62# host PCM_C <-- B0 <-- TDFB 0 <-- B1 <-- sink DAI0 63 64P_GRAPH(pipe-tdfb-capture-16khz, PIPELINE_ID, 65 LIST(` ', 66 `dapm(N_PCMC(PCM_ID), N_BUFFER(0))', 67 `dapm(N_BUFFER(0), N_TDFB(0))', 68 `dapm(N_TDFB(0), N_BUFFER(1))')) 69 70# 71# Pipeline Source and Sinks 72# 73indir(`define', concat(`PIPELINE_SINK_', PIPELINE_ID), N_BUFFER(1)) 74indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), TDFB Capture PCM_ID) 75 76# 77# PCM Configuration 78# 79 80PCM_CAPABILITIES(TDFB Capture PCM_ID, `S32_LE,S24_LE,S16_LE', PCM_MIN_RATE, 81 PCM_MAX_RATE, PIPELINE_CHANNELS, PIPELINE_CHANNELS, 82 2, 16, 192, 16384, 65536, 65536) 83 84include(`tdfb_undefines.m4') 85