Skip to content

Commit

Permalink
No need for frame alignmment anymore
Browse files Browse the repository at this point in the history
Signed-off-by: Serhiy Katsyuba <[email protected]>
  • Loading branch information
serhiy-katsyuba-intel committed Jul 2, 2024
1 parent eb69adc commit 6ca8668
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 240 deletions.
6 changes: 6 additions & 0 deletions src/audio/copier/copier_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ pcm_converter_func get_converter_func(const struct ipc4_audio_format *in_fmt,

if (in_fmt->channels_count != out_fmt->channels_count ||
is_remapping_chmap(chmap, out_fmt->channels_count)) {

if (in_valid == SOF_IPC_FRAME_S16_LE && in == SOF_IPC_FRAME_S32_LE)
in = SOF_IPC_FRAME_S16_4LE;
if (out_valid == SOF_IPC_FRAME_S16_LE && out == SOF_IPC_FRAME_S32_LE)
out = SOF_IPC_FRAME_S16_4LE;

return pcm_get_remap_function(in, out);
}

Expand Down
Loading

0 comments on commit 6ca8668

Please sign in to comment.