mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-28 16:20:26 +00:00
Reduce uac2_headset max sample rate for better compatibility.
This commit is contained in:
parent
00db422745
commit
68b973aa9f
@ -35,11 +35,7 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
// List of supported sample rates
|
// List of supported sample rates
|
||||||
#if defined(__RX__)
|
const uint32_t sample_rates[] = {44100, 48000};
|
||||||
const uint32_t sample_rates[] = {44100, 48000};
|
|
||||||
#else
|
|
||||||
const uint32_t sample_rates[] = {44100, 48000, 88200, 96000};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uint32_t current_sample_rate = 44100;
|
uint32_t current_sample_rate = 44100;
|
||||||
|
|
||||||
|
@ -114,11 +114,9 @@ extern "C" {
|
|||||||
#define CFG_TUD_AUDIO_FUNC_1_N_FORMATS 2
|
#define CFG_TUD_AUDIO_FUNC_1_N_FORMATS 2
|
||||||
|
|
||||||
// Audio format type I specifications
|
// Audio format type I specifications
|
||||||
#if defined(__RX__)
|
/* 24bit/48kHz is the best quality for headset or 24bit/96kHz for 2ch speaker,
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_MAX_SAMPLE_RATE 48000 // 16bit/48kHz is the best quality for Renesas RX
|
high-speed is needed beyond this */
|
||||||
#else
|
#define CFG_TUD_AUDIO_FUNC_1_MAX_SAMPLE_RATE 48000
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_MAX_SAMPLE_RATE 96000 // 24bit/96kHz is the best quality for full-speed, high-speed is needed beyond this
|
|
||||||
#endif
|
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
|
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX 2
|
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX 2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user