Skip to content

Commit f3f018b

Browse files
committed
app: Add overlays to enable compr offload support (mp3, aac and vorbis)
The needed libraries should be placed in sof/../cadence_libs/ directory if the overlay is used. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 6b2712d commit f3f018b

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed

app/compr/README.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Cadence Codec Configuration Overlays
2+
=====================================
3+
4+
This directory contains Kconfig overlay files for enabling Cadence codec support
5+
in SOF firmware builds.
6+
7+
Prerequisites
8+
-------------
9+
The Cadence codec libraries must be placed in the cadence_libs directory, one level
10+
up from the SOF project directory:
11+
sof/../cadence_libs/
12+
13+
Available Overlay Files
14+
-----------------------
15+
cadence.conf - Base Cadence codec module only (no individual codecs)
16+
mp3.conf - MP3 decoder and encoder
17+
aac.conf - AAC decoder
18+
vorbis.conf - Vorbis decoder
19+
all_codecs.conf - All supported codecs (MP3, AAC, Vorbis)
20+
21+
Usage Examples
22+
--------------
23+
Use with scripts/xtensa-build-zephyr.py via -o parameter:
24+
25+
# Base module only (e.g., for Tiger Lake)
26+
scripts/xtensa-build-zephyr.py tgl -o app/compr/cadence.conf
27+
28+
# Single codec
29+
scripts/xtensa-build-zephyr.py mtl -o app/compr/mp3.conf
30+
31+
# Multiple codecs (use separate -o for each)
32+
scripts/xtensa-build-zephyr.py mtl -o app/compr/mp3.conf -o app/compr/aac.conf
33+
34+
# All codecs
35+
scripts/xtensa-build-zephyr.py mtl -o app/compr/all_codecs.conf
36+
37+
For more information about Cadence codecs, see the SOF documentation.

app/compr/aac.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Cadence AAC decoder
2+
CONFIG_CADENCE_CODEC=y
3+
CONFIG_CADENCE_CODEC_AAC_DEC=y
4+
CONFIG_CADENCE_CODEC_AAC_DEC_LIB="../cadence_libs/xa_aac_dec.a"

app/compr/all_codecs.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# All Cadence codecs (MP3, AAC, Vorbis)
2+
CONFIG_CADENCE_CODEC=y
3+
CONFIG_CADENCE_CODEC_MP3_DEC=y
4+
CONFIG_CADENCE_CODEC_MP3_DEC_LIB="../cadence_libs/xa_mp3_dec.a"
5+
CONFIG_CADENCE_CODEC_MP3_ENC=y
6+
CONFIG_CADENCE_CODEC_MP3_ENC_LIB="../cadence_libs/xa_mp3_enc.a"
7+
CONFIG_CADENCE_CODEC_AAC_DEC=y
8+
CONFIG_CADENCE_CODEC_AAC_DEC_LIB="../cadence_libs/xa_aac_dec.a"
9+
CONFIG_CADENCE_CODEC_VORBIS_DEC=y
10+
CONFIG_CADENCE_CODEC_VORBIS_DEC_LIB="../cadence_libs/xa_vorbis_dec.a"
11+

app/compr/cadence.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Cadence codec module base support
2+
CONFIG_CADENCE_CODEC=y

app/compr/mp3.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Cadence MP3 decoder and encoder
2+
CONFIG_CADENCE_CODEC=y
3+
CONFIG_CADENCE_CODEC_MP3_DEC=y
4+
CONFIG_CADENCE_CODEC_MP3_DEC_LIB="../cadence_libs/xa_mp3_dec.a"
5+
CONFIG_CADENCE_CODEC_MP3_ENC=y
6+
CONFIG_CADENCE_CODEC_MP3_ENC_LIB="../cadence_libs/xa_mp3_enc.a"

app/compr/vorbis.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Cadence Vorbis decoder
2+
CONFIG_CADENCE_CODEC=y
3+
CONFIG_CADENCE_CODEC_VORBIS_DEC=y
4+
CONFIG_CADENCE_CODEC_VORBIS_DEC_LIB="../cadence_libs/xa_vorbis_dec.a"

0 commit comments

Comments
 (0)