nuttx/audio: increase bits of samplerate in struct audio_info_s.

Current 8 bits of uint8_t cannot represent sample rate bigger than
255,change uint8_t to uint32_t to expand sample rate range.

Signed-off-by: wurui3 <wurui3@xiaomi.com>
This commit is contained in:
wurui3
2023-11-23 11:15:48 +08:00
committed by Xiang Xiao
parent ef827e88a7
commit 42e416d054

View File

@@ -436,10 +436,10 @@ struct audio_caps_desc_s
struct audio_info_s
{
uint8_t samplerate; /* Sample Rate of the audio data */
uint8_t channels; /* Number of channels (1, 2, 5, 7) */
uint8_t format; /* Audio data format */
uint8_t subformat; /* Audio subformat
uint32_t samplerate; /* Sample Rate of the audio data */
uint8_t channels; /* Number of channels (1, 2, 5, 7) */
uint8_t format; /* Audio data format */
uint8_t subformat; /* Audio subformat
* (maybe should be combined with format?
*/
};