Skip to content

Commit 6ca8668

Browse files
No need for frame alignmment anymore
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent eb69adc commit 6ca8668

3 files changed

Lines changed: 205 additions & 240 deletions

File tree

src/audio/copier/copier_generic.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ pcm_converter_func get_converter_func(const struct ipc4_audio_format *in_fmt,
332332

333333
if (in_fmt->channels_count != out_fmt->channels_count ||
334334
is_remapping_chmap(chmap, out_fmt->channels_count)) {
335+
336+
if (in_valid == SOF_IPC_FRAME_S16_LE && in == SOF_IPC_FRAME_S32_LE)
337+
in = SOF_IPC_FRAME_S16_4LE;
338+
if (out_valid == SOF_IPC_FRAME_S16_LE && out == SOF_IPC_FRAME_S32_LE)
339+
out = SOF_IPC_FRAME_S16_4LE;
340+
335341
return pcm_get_remap_function(in, out);
336342
}
337343

0 commit comments

Comments
 (0)