Skip to content

Commit 235255b

Browse files
RanderWanglgirdwood
authored andcommitted
test: add format S24_3LE in volume test
The format is added to make volume test pass. The implementation will be added later. Signed-off-by: Rander Wang <rander.wang@intel.com>
1 parent 671e635 commit 235255b

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

test/cmocka/src/audio/eq_iir/eq_iir_process.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ static void test_audio_eq_iir(void **state)
383383
case SOF_IPC_FRAME_S32_LE:
384384
fill_source_s32(td, frames);
385385
break;
386+
case SOF_IPC_FRAME_S24_3LE:
387+
break;
386388
default:
387389
assert(0);
388390
break;

test/cmocka/src/audio/mux/demux_copy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ int main(void)
305305
tests[ti].test_func = test_demux_copy_proc_32;
306306
break;
307307
#endif /* CONFIG_FORMAT_S32LE */
308+
#if CONFIG_FORMAT_S24_3LE
309+
case SOF_IPC_FRAME_S24_3LE:
310+
break;
311+
#endif /* CONFIG_FORMAT_S24_3LE */
308312
default:
309313
return -EINVAL;
310314
}

test/cmocka/src/audio/mux/mux_copy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ int main(void)
324324
tests[ti].test_func = test_mux_copy_proc_32;
325325
break;
326326
#endif /* CONFIG_FORMAT_S32LE */
327+
#if CONFIG_FORMAT_S24_3LE
328+
case SOF_IPC_FRAME_S24_3LE:
329+
break;
330+
#endif /* CONFIG_FORMAT_S24_3LE */
327331
default:
328332
return -EINVAL;
329333
}

test/cmocka/src/audio/selector/selector_test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@ static void test_audio_sel(void **state)
280280
fill_source_s32(sel_state);
281281
break;
282282
#endif /* CONFIG_FORMAT_S24LE || CONFIG_FORMAT_S32LE */
283+
/* TODO: add S24_3LE support */
284+
case SOF_IPC_FRAME_S24_3LE:
285+
break;
283286
}
284-
285287
cd->sel_func(sel_state->dev, &sel_state->sink->stream, &sel_state->source->stream,
286288
sel_state->dev->frames);
287289

test/cmocka/src/audio/volume/volume_process.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ static void test_audio_vol(void **state)
385385
case SOF_IPC_FRAME_FLOAT:
386386
fill_source_s32(vol_state);
387387
break;
388+
case SOF_IPC_FRAME_S24_3LE:
389+
/* TODO: add 3LE support */
390+
break;
388391
}
389392

390393
cd->scale_vol(vol_state->dev, &vol_state->sink->stream,

0 commit comments

Comments
 (0)