Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17458f74 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Disable 48.0kHz sampling rate for AAC - update the unit test

Some carkits have issues playing A2DP audio using AAC with 48.0kHz
sampling rate, while playing AAC with 44.1kHz sampling rate is fine.

Bug: 38443632
Bug: 62301376
Test: manual
Change-Id: I5a8b72e86fb1a2cbf92f85e7a6c340cee58dadb5
(cherry picked from commit 858b6a15f528468e2b1b497dba27337f40220f7b)
parent aad165e7
Loading
Loading
Loading
Loading
+15 −17
Original line number Diff line number Diff line
@@ -94,10 +94,8 @@ const uint8_t codec_info_aac_capability[AVDT_CODEC_SIZE] = {
    2,     // Media Codec Type: A2DP_MEDIA_CT_AAC
    0x80,  // Object Type: A2DP_AAC_OBJECT_TYPE_MPEG2_LC
    0x01,  // Sampling Frequency: A2DP_AAC_SAMPLING_FREQ_44100
    0x80 | 0x04,  // Sampling Frequency:
                  // A2DP_AAC_SAMPLING_FREQ_48000 |
                  // Channels:
                  // A2DP_AAC_CHANNEL_MODE_STEREO
    // TODO: AAC 48.0kHz sampling rate should be added back - see b/62301376
    0x04,        // Channels: A2DP_AAC_CHANNEL_MODE_STEREO
    0x00 | 0x4,  // Variable Bit Rate:
                 // A2DP_AAC_VARIABLE_BIT_RATE_DISABLED
                 // Bit Rate: 320000 = 0x4e200