Which BT chip support AAC codec for both A2DP/SINK and A2DP/SRC?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello Infineon support team.

Our customer requests us AAC codec support for both A2DP/SINK and A2DP/SRC.
According to following thread, CYW20721 support AAC for A2DP/SINK. But no mention for A2DP/SRC.

https://community.infineon.com/t5/Studio-Bluetooth/Does-WICED-6-2-support-A2DP-AAC-codec-on-CYW20706...
https://community.infineon.com/t5/Bluetooth-SDK/The-kinds-of-bluetooth-audio-codec-of-CYW20721/td-p/...

Please tell me which BT chip support AAC codec for both A2DP/SINK and A2DP/SRC.

Thanks,
Tayo

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

In the audio_watch demo, you can see the codec configure in hci_control_audio.c

static uint8_t supported_av_codecs[] = {A2D_MEDIA_CT_SBC, A2D_MEDIA_CT_SBC};

You can add the codec you need.

View solution in original post

0 Likes
5 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

CYW20721 is the most powerful device for audio application. It can support AAC codec for A2DP sink and source application.

0 Likes
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello Infineon Team

I got it.

For our reference, where can I find the source code or library for A2DP/SRC/AAC codec in BT SDK?

Thanks,

Tayo

 

 

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

You can find the codec type in the wiced_bt_a2d.h

/* AV Media Codec Type (Audio Codec ID) */
#define A2D_MEDIA_CT_SBC 0x00 /* SBC media codec type */
#define A2D_MEDIA_CT_M12 0x01 /* MPEG-1, 2 Audio media codec type */
#define A2D_MEDIA_CT_M24 0x02 /* MPEG-2, 4 AAC media codec type */
#define A2D_MEDIA_CT_ATRAC 0x04 /* ATRAC family media codec type */
#define A2D_MEDIA_CT_VEND 0xFF /* Vendor specific */
#define A2D_MEDIA_CT_APTX A2D_MEDIA_CT_VEND /* APTX media codec type */

0 Likes
tayo
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 25 solutions authored 250 sign-ins

Hello Infineon Team

Thank you for your comment. We can find the define as you mentioned.
However we don't understand the way to implement into our application code.

For example, in the case of A2DP/"SINK"/AAC, we can refer to following code in Audio_Headset_And_Speaker/wiced_app_cfg.c.
============================
wiced_app_cfg.c
/** A2DP sink configuration data */
wiced_bt_a2dp_config_data_t bt_audio_config = { skip
.ext_codec =
{
#ifdef A2DP_SINK_AAC_ENABLED
.codec_id = WICED_AUDIO_CODEC_AAC_DEC,
#ifndef CYW55572
/* 55572A1 has internal AAC-LC decoder, it doesn't need to use ia_aaclc_lib */
.codec_functions = &AAC_codec_function_table, #endif #else
.codec_id = WICED_AUDIO_CODEC_NONE,
.codec_functions = NULL,
#endif
}
=============================

In the other hand, in the case of A2DP/"SRC"/AAC, we can't find the reference code.
Please tell us the reference code for A2DP/"SRC"/AAC, like above.

Thanks,
Tayo

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

In the audio_watch demo, you can see the codec configure in hci_control_audio.c

static uint8_t supported_av_codecs[] = {A2D_MEDIA_CT_SBC, A2D_MEDIA_CT_SBC};

You can add the codec you need.

0 Likes