Skip to content

Commit bbeb422

Browse files
checkupupkv2019i
authored andcommitted
audio: dax: add multichannel support
Add 5.1, 7.1 input channels for DAX. Signed-off-by: Jun Lai <jun.lai@dolby.com>
1 parent 605db13 commit bbeb422

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/audio/module_adapter/module/dolby/dax.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ static int sof_to_dax_channels(uint32_t channels)
7676
{
7777
switch (channels) {
7878
case 2:
79+
case 6 /* 5.1 */:
80+
case 8 /* 7.1 */:
7981
return channels;
8082
default:
8183
return DAX_CHANNLES_UNSUPPORTED;

tools/topology/topology2/include/pipelines/cavs/mixout-gain-dax-dai-copier-playback.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Class.Pipeline."mixout-gain-dax-dai-copier-playback" {
3131
in_rate 48000
3232
in_bit_depth 32
3333
in_valid_bit_depth 32
34-
ibs "$[512 * ($in_bit_depth / 8) ]"
34+
ibs "$[(256 * ($[($in_bit_depth / 8)])) * ($in_channels)]"
3535
}
3636
]
3737
Object.Base.output_audio_format [
3838
{
3939
out_rate 48000
4040
out_bit_depth 32
4141
out_valid_bit_depth 32
42-
obs "$[512 * ($out_bit_depth / 8) ]"
42+
obs "$[(256 * ($[($out_bit_depth / 8)])) * ($out_channels)]"
4343
}
4444
]
4545
}

0 commit comments

Comments
 (0)