From 487d514b9d0c9428583831e19dfd32e2d04a6334 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Thu, 24 Feb 2022 09:39:02 -0800 Subject: [PATCH] topology2: cavs: gain-pipelines: change the input/output bit depths The DAI copiers only support 32-bit format. Change the gain-playback and gain-capture to set the input/output bit-depth to match the DAI copier requirement. Signed-off-by: Ranjani Sridharan --- .../topology/topology2/include/pipelines/cavs/gain-capture.conf | 2 ++ .../topology2/include/pipelines/cavs/gain-playback.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/topology/topology2/include/pipelines/cavs/gain-capture.conf b/tools/topology/topology2/include/pipelines/cavs/gain-capture.conf index 2ce9c77b9..c5f55f007 100644 --- a/tools/topology/topology2/include/pipelines/cavs/gain-capture.conf +++ b/tools/topology/topology2/include/pipelines/cavs/gain-capture.conf @@ -55,6 +55,8 @@ Class.Pipeline."gain-capture" { num_audio_formats 2 # 16-bit 48KHz 2ch Object.Base.audio_format.1 { + in_bit_depth 32 + in_valid_bit_depth 32 dma_buffer_size "$[$obs * 2]" } # 32-bit 48KHz 2ch diff --git a/tools/topology/topology2/include/pipelines/cavs/gain-playback.conf b/tools/topology/topology2/include/pipelines/cavs/gain-playback.conf index b7b7a9d6e..8f8dc3bb0 100644 --- a/tools/topology/topology2/include/pipelines/cavs/gain-playback.conf +++ b/tools/topology/topology2/include/pipelines/cavs/gain-playback.conf @@ -55,6 +55,8 @@ Class.Pipeline."gain-playback" { num_audio_formats 2 # 16-bit 48KHz 2ch Object.Base.audio_format.1 { + out_bit_depth 32 + out_valid_bit_depth 32 dma_buffer_size "$[$ibs * 2]" } # 32-bit 48KHz 2ch