summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavide Gerhard <[email protected]>2024-06-28 19:57:59 +0200
committerDavide Gerhard <[email protected]>2024-06-28 19:57:59 +0200
commit8f9a57636c9ae6b51e272274ea79f01a7a2631c1 (patch)
treed4a9ad2c20645bbb11f869f0c49c3cd8c5bdc48f /src
parent7125ac20caf1b0e3e46eb8ed2c5125bdc924ba71 (diff)
audio.h: fix error ISO C restricts enumerator values to range of 'int'
fix error ~/dsp/libs/tinyusb/src/class/audio/audio.h:643:53: error: ISO C restricts enumerator values to range of 'int' before C23 [-Werror=pedantic] 643 | AUDIO_CHANNEL_CONFIG_RAW_DATA = 0x80000000, // TODO | ^~~~~~~~~~ compilation terminated due to -Wfatal-errors. Closes: https://github.com/hathach/tinyusb/issues/2690
Diffstat (limited to 'src')
-rw-r--r--src/class/audio/audio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/audio/audio.h b/src/class/audio/audio.h
index d6f3e22e2..49ccbe863 100644
--- a/src/class/audio/audio.h
+++ b/src/class/audio/audio.h
@@ -489,7 +489,7 @@ typedef enum
AUDIO_DATA_FORMAT_TYPE_I_IEEE_FLOAT = (uint32_t) (1 << 2),
AUDIO_DATA_FORMAT_TYPE_I_ALAW = (uint32_t) (1 << 3),
AUDIO_DATA_FORMAT_TYPE_I_MULAW = (uint32_t) (1 << 4),
- AUDIO_DATA_FORMAT_TYPE_I_RAW_DATA = 0x80000000,
+ AUDIO_DATA_FORMAT_TYPE_I_RAW_DATA = (int)(1U << 31U),
} audio_data_format_type_I_t;
/// All remaining definitions are taken from the descriptor descriptions in the UAC2 main specification
@@ -640,7 +640,7 @@ typedef enum
AUDIO_CHANNEL_CONFIG_BOTTOM_CENTER = 0x01000000,
AUDIO_CHANNEL_CONFIG_BACK_LEFT_OF_CENTER = 0x02000000,
AUDIO_CHANNEL_CONFIG_BACK_RIGHT_OF_CENTER = 0x04000000,
- AUDIO_CHANNEL_CONFIG_RAW_DATA = 0x80000000,
+ AUDIO_CHANNEL_CONFIG_RAW_DATA = (int)(1U << 31U),
} audio_channel_config_t;
/// AUDIO Channel Cluster Descriptor (4.1)