|
| 1 | +# |
| 2 | +# Topology for Apollo Lake with direct attach digital microphones array |
| 3 | +# |
| 4 | + |
| 5 | +# Include topology builder |
| 6 | +include(`utils.m4') |
| 7 | +include(`dai.m4') |
| 8 | +include(`pipeline.m4') |
| 9 | + |
| 10 | +# Include TLV library |
| 11 | +include(`common/tlv.m4') |
| 12 | + |
| 13 | +# Include Token library |
| 14 | +include(`sof/tokens.m4') |
| 15 | + |
| 16 | +# Include Apollolake DSP configuration |
| 17 | +include(`platform/intel/bxt.m4') |
| 18 | +include(`platform/intel/dmic.m4') |
| 19 | + |
| 20 | +# |
| 21 | +# Define the pipelines |
| 22 | +# |
| 23 | +# PCM6 <---- volume <----- DMIC6 (DMIC01) |
| 24 | +# |
| 25 | + |
| 26 | +dnl PIPELINE_PCM_ADD(pipeline, |
| 27 | +dnl pipe id, pcm, max channels, format, |
| 28 | +dnl frames, deadline, priority, core) |
| 29 | + |
| 30 | + |
| 31 | +# Passthrough capture pipeline 13 on PCM 6 using max 4 channels. |
| 32 | +# Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
| 33 | +PIPELINE_PCM_ADD(sof/pipe-eq-capture.m4, |
| 34 | + 1, 6, 4, s32le, |
| 35 | + 48, 1000, 0, 0) |
| 36 | + |
| 37 | +# |
| 38 | +# DAIs configuration |
| 39 | +# |
| 40 | + |
| 41 | +dnl DAI_ADD(pipeline, |
| 42 | +dnl pipe id, dai type, dai_index, dai_be, |
| 43 | +dnl buffer, periods, format, |
| 44 | +dnl frames, deadline, priority, core) |
| 45 | + |
| 46 | + |
| 47 | +# capture DAI is DMIC 0 using 2 periods |
| 48 | +# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 |
| 49 | +DAI_ADD(sof/pipe-dai-capture.m4, |
| 50 | + 1, DMIC, 0, NoCodec-6, |
| 51 | + PIPELINE_SINK_1, 2, s32le, |
| 52 | + 48, 1000, 0, 0) |
| 53 | + |
| 54 | +dnl PCM_DUPLEX_ADD(name, pcm_id, playback, capture) |
| 55 | + |
| 56 | +dnl PCM_CAPTURE_ADD(name, pipeline, capture) |
| 57 | +PCM_CAPTURE_ADD(DMIC01, 6, PIPELINE_PCM_1) |
| 58 | + |
| 59 | +# |
| 60 | +# BE configurations - overrides config in ACPI if present |
| 61 | +# |
| 62 | + |
| 63 | +dnl DAI_CONFIG(type, dai_index, link_id, name, ssp_config/dmic_config) |
| 64 | + |
| 65 | +DAI_CONFIG(DMIC, 0, 6, NoCodec-6, |
| 66 | + dnl DMIC_CONFIG(driver_version, clk_min, clk_mac, duty_min, duty_max, |
| 67 | + dnl sample_rate, |
| 68 | + dnl fifo word length, type, dai_index, pdm controller config) |
| 69 | + DMIC_CONFIG(1, 500000, 4800000, 40, 60, 48000, |
| 70 | + dnl DMIC_WORD_LENGTH(frame_format) |
| 71 | + DMIC_WORD_LENGTH(s32le), DMIC, 0, |
| 72 | + dnl PDM_CONFIG(type, dai_index, num pdm active, pdm tuples list) |
| 73 | + dnl STEREO_PDM0 is a pre-defined pdm config for stereo capture |
| 74 | + PDM_CONFIG(DMIC, 0, FOUR_CH_PDM0_PDM1))) |
| 75 | + |
0 commit comments