Skip to content

Commit

Permalink
apl: change dmic format to s32_le in sof-glk-da7219.tplg
Browse files Browse the repository at this point in the history
In order to allow record s16_le/s24_le/s32_le format this
commit changes DAI component's and DMIC's format to s32_le
on PCM99.
In case recording s16_le/s24_le DAI component makes pcm
conversion from s16_le/s24_le to s32_le.

Signed-off-by: Bartosz Kokoszko <[email protected]>
  • Loading branch information
bkokoszx authored and lrgirdwo committed Apr 16, 2020
1 parent 2a46556 commit 66e2017
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/topology/sof-glk-da7219.m4
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ define(DEF_PIPE_DMIC_CAPTURE, sof/pipe-DMICPROC-capture.m4)
# Low Latency capture pipeline 4 on PCM 99 using max 4 channels of s32le.
# 1000us deadline on core 0 with priority 0
PIPELINE_PCM_ADD(DEF_PIPE_DMIC_CAPTURE,
4, 99, 4, s16le,
4, 99, 4, s32le,
1000, 0, 0,
48000, 48000, 48000)

Expand Down Expand Up @@ -125,7 +125,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
# Buffers use s32le format, 1000us deadline on core 0 with priority 0
DAI_ADD(sof/pipe-dai-capture.m4,
4, DMIC, 0, dmic01,
PIPELINE_SINK_4, 2, s16le,
PIPELINE_SINK_4, 2, s32le,
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)

# playback DAI is iDisp1 using 2 periods
Expand Down Expand Up @@ -179,7 +179,7 @@ DAI_CONFIG(SSP, 2, 1, SSP2-Codec,
# dmic01 (id: 2)
DAI_CONFIG(DMIC, 0, 2, dmic01,
DMIC_CONFIG(1, 500000, 4800000, 40, 60, 48000,
DMIC_WORD_LENGTH(s16le), 400, DMIC, 0,
DMIC_WORD_LENGTH(s32le), 400, DMIC, 0,
PDM_CONFIG(DMIC, 0, FOUR_CH_PDM0_PDM1)))

# 3 HDMI/DP outputs (ID: 3,4,5)
Expand Down

0 comments on commit 66e2017

Please sign in to comment.