mirror of https://github.com/thesofproject/sof.git
ipc4: change frame_fmt and valid_sample_fmt for gateway
First we reused ipc3 pcm conversion function by by setting frame_fmt to S24_4LE, but later found that we need different conversion for copier with gateways support. Now frame_fmt will be set by default config. Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
parent
458bda34b4
commit
10a5bdb829
|
@ -624,13 +624,9 @@ static inline void audio_stream_fmt_conversion(enum ipc4_bit_depth depth,
|
|||
*valid_fmt = (valid >> 3) - 2;
|
||||
|
||||
/* really 24_3LE */
|
||||
if (valid == 24) {
|
||||
if (depth == 24) {
|
||||
*frame_fmt = SOF_IPC_FRAME_S24_3LE;
|
||||
*valid_fmt = SOF_IPC_FRAME_S24_3LE;
|
||||
} else {
|
||||
*frame_fmt = SOF_IPC_FRAME_S24_4LE;
|
||||
}
|
||||
if (valid == 24 && depth == 24) {
|
||||
*frame_fmt = SOF_IPC_FRAME_S24_3LE;
|
||||
*valid_fmt = SOF_IPC_FRAME_S24_3LE;
|
||||
}
|
||||
|
||||
if (type == IPC4_TYPE_FLOAT && depth == 32) {
|
||||
|
|
Loading…
Reference in New Issue