diff options
| author | Ha Thach <[email protected]> | 2024-04-11 21:11:27 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-11 21:11:27 +0700 |
| commit | 6144da9602aac2673c5d84647befed3105c3bd98 (patch) | |
| tree | 556d7c78778ae3f781e3fcf044ee9241d844e6cb /examples/device/uac2_headset | |
| parent | c83e28ca85d62880c8a8431017d6b6ab9bc4177f (diff) | |
| parent | 0f775630c7468b804fad7e3350b37430b6fb0a2d (diff) | |
Merge pull request #2574 from HiFiPhile/fsdev
FSDEV fix/cleanup.
Diffstat (limited to 'examples/device/uac2_headset')
| -rw-r--r-- | examples/device/uac2_headset/src/main.c | 6 | ||||
| -rw-r--r-- | examples/device/uac2_headset/src/tusb_config.h | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/examples/device/uac2_headset/src/main.c b/examples/device/uac2_headset/src/main.c index 35b7ac94b..fbd7ffe22 100644 --- a/examples/device/uac2_headset/src/main.c +++ b/examples/device/uac2_headset/src/main.c @@ -35,11 +35,7 @@ //--------------------------------------------------------------------+ // List of supported sample rates -#if defined(__RX__) - const uint32_t sample_rates[] = {44100, 48000}; -#else - const uint32_t sample_rates[] = {44100, 48000, 88200, 96000}; -#endif +const uint32_t sample_rates[] = {44100, 48000}; uint32_t current_sample_rate = 44100; diff --git a/examples/device/uac2_headset/src/tusb_config.h b/examples/device/uac2_headset/src/tusb_config.h index 4b08fa676..328e35f52 100644 --- a/examples/device/uac2_headset/src/tusb_config.h +++ b/examples/device/uac2_headset/src/tusb_config.h @@ -114,11 +114,9 @@ extern "C" { #define CFG_TUD_AUDIO_FUNC_1_N_FORMATS 2 // Audio format type I specifications -#if defined(__RX__) -#define CFG_TUD_AUDIO_FUNC_1_MAX_SAMPLE_RATE 48000 // 16bit/48kHz is the best quality for Renesas RX -#else -#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 +/* 24bit/48kHz is the best quality for headset or 24bit/96kHz for 2ch speaker, + high-speed is needed beyond this */ +#define CFG_TUD_AUDIO_FUNC_1_MAX_SAMPLE_RATE 48000 #define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1 #define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX 2 |
