1# Low Latency Passthrough with volume Pipeline and PCM 2# 3# Pipeline Endpoints for connection are :- 4# 5# host PCM_P --> B0 --> TDFB 0 --> B1 --> sink DAI0 6 7# Include topology builder 8include(`utils.m4') 9include(`buffer.m4') 10include(`pcm.m4') 11include(`dai.m4') 12include(`mixercontrol.m4') 13include(`bytecontrol.m4') 14include(`enumcontrol.m4') 15include(`pipeline.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_360.m4') 31 32# 33# Components and Buffers 34# 35 36# Host "TDFB Playback" PCM 37# with 2 sink and 0 source periods 38W_PCM_PLAYBACK(PCM_ID, TDFB Playback, 2, 0) 39 40# "TDFB 0" has x sink period and 2 source periods 41W_TDFB(0, PIPELINE_FORMAT, DAI_PERIODS, 2, 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# Playback 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_HOST_MEM_CAP) 53W_BUFFER(1, COMP_BUFFER_SIZE(DAI_PERIODS, 54 COMP_SAMPLE_SIZE(DAI_FORMAT), PIPELINE_CHANNELS, 55 COMP_PERIOD_FRAMES(PCM_MAX_RATE, SCHEDULE_PERIOD)), 56 PLATFORM_DAI_MEM_CAP) 57 58# 59# Pipeline Graph 60# 61# host host PCM_P --> B0 --> TDFB --> B3 --> sink DAI0 62 63P_GRAPH(pipe-tdfb-playback, PIPELINE_ID, 64 LIST(` ', 65 `dapm(N_BUFFER(0), N_PCMP(PCM_ID))', 66 `dapm(N_TDFB(0), N_BUFFER(0))', 67 `dapm(N_BUFFER(1), N_TDFB(0))')) 68 69# 70# Pipeline Source and Sinks 71# 72indir(`define', concat(`PIPELINE_SOURCE_', PIPELINE_ID), N_BUFFER(1)) 73indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), 74 TDFB Playback PCM_ID) 75 76# 77# PCM Configuration 78 79# 80PCM_CAPABILITIES(TDFB Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 81 PCM_MIN_RATE, PCM_MAX_RATE, 2, PIPELINE_CHANNELS, 82 2, 16, 192, 16384, 65536, 65536) 83 84include(`tdfb_undefines.m4') 85