Bluetooth: Audio: Change lang to 3-byte value from uint32_t

The 3-byte value suits the assigned number much better,
and also allows for less memory copies when getting and
setting the values.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-05-10 16:42:57 +02:00 committed by Anas Nashif
commit be307f8ad9
8 changed files with 96 additions and 65 deletions

View file

@ -66,7 +66,7 @@ static inline bool valid_metadata_type(uint8_t type, uint8_t len)
return true;
case BT_AUDIO_METADATA_TYPE_LANG:
if (len != 3) {
if (len != BT_AUDIO_LANG_SIZE) {
return false;
}