Skip to content

Commit

Permalink
Fix configuration for Android 13 A2DP Opus codec
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Oct 14, 2024
1 parent 4b7f1ce commit 0db6ac1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ unreleased
- renamed bluealsa-cli to bluealsactl (no backward compatibility)
- channel map and volume control for surround sound (5.1, 7.1) audio
- native A2DP volume control by default (dropped --a2dp-volume option)
- fix configuration for Android 13 A2DP Opus codec

bluez-alsa v4.3.1 (2024-08-30)
==============================
Expand Down
4 changes: 2 additions & 2 deletions src/shared/a2dp-codecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -706,15 +706,15 @@ typedef struct a2dp_lhdc_v5 {
typedef struct a2dp_opus {
a2dp_vendor_info_t info;
#if __BYTE_ORDER == __BIG_ENDIAN
uint8_t rfa:2;
uint8_t sampling_freq:1;
uint8_t rfa:2;
uint8_t frame_duration:2;
uint8_t channel_mode:3;
#else
uint8_t channel_mode:3;
uint8_t frame_duration:2;
uint8_t sampling_freq:1;
uint8_t rfa:2;
uint8_t sampling_freq:1;
#endif
} __attribute__ ((packed)) a2dp_opus_t;

Expand Down
2 changes: 1 addition & 1 deletion utils/a2dpconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ static void dump_opus(const void *blob, size_t size) {
printf("Opus <hex:%s> {\n", bintohex(blob, size));
printf_vendor(&opus->info);
printf(""
" <reserved>:2\n"
" sample-rate:1 =%s\n"
" <reserved>:2\n"
" frame-duration:2 =%s%s\n"
" channel-mode:3 =%s%s%s\n"
"}\n",
Expand Down

0 comments on commit 0db6ac1

Please sign in to comment.