Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
IPC4: simplify pcm conversion function and add LSB & MSB support#7959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
010f028c2349c7d7e09f896ed600f7956e4File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -573,6 +573,18 @@ config FORMAT_S24LE | ||
| help | ||
| Support 24 bit processing data format with sign and in little endian format | ||
| config FORMAT_S24_3LE | ||
| bool "Support S24_3LE" | ||
| default n | ||
| help | ||
| Support packed 24 bit processing data format with sign and in little endian format | ||
| config FORMAT_S24_4LE_MSB | ||
| bool "Support S24_4LE_MSB" | ||
| default y | ||
| help | ||
| Support 24 bit processing data format with sign and in msb 24 bits format | ||
| config FORMAT_S32LE | ||
| bool "Support S32LE" | ||
| default y | ||
| @@ -609,6 +621,12 @@ config PCM_CONVERTER_FORMAT_S24LE | ||
| help | ||
| Support 24 bit processing data format with sign and in little endian format | ||
| config PCM_CONVERTER_FORMAT_S24_4LE_MSB | ||
| bool "Support S24_4LE_MSB" | ||
| default y | ||
| help | ||
| Support 24 bit processing data format with sign and in msb 24 bits format | ||
RanderWang marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| config PCM_CONVERTER_FORMAT_S24_3LE | ||
| bool "Support S24_3LE" | ||
| default n | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -56,6 +56,7 @@ enum sof_ipc_frame { | ||
| SOF_IPC_FRAME_FLOAT, | ||
| /* other formats here */ | ||
| SOF_IPC_FRAME_S24_3LE, | ||
| SOF_IPC_FRAME_S24_4LE_MSB, | ||
lgirdwood marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| SOF_IPC_FRAME_U8, | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1055,10 +1055,13 @@ static inline void audio_stream_fmt_conversion(enum ipc4_bit_depth depth, | ||
| *valid_fmt = SOF_IPC_FRAME_U8; | ||
| #endif /* CONFIG_FORMAT_U8 */ | ||
| /* really 24_3LE */ | ||
| if (valid == 24 && depth == 24) { | ||
| *frame_fmt = SOF_IPC_FRAME_S24_3LE; | ||
| *valid_fmt = SOF_IPC_FRAME_S24_3LE; | ||
| if (valid == 24) { | ||
RanderWang marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| #ifdef CONFIG_FORMAT_S24_3LE | ||
| if (depth == 24) { | ||
btian1 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| *frame_fmt = SOF_IPC_FRAME_S24_3LE; | ||
| *valid_fmt = SOF_IPC_FRAME_S24_3LE; | ||
| } | ||
kv2019i marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| #endif | ||
| } | ||
| if (type == IPC4_TYPE_FLOAT && depth == 32) { | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.