Integrate OS guessing quirk into uac2_speaker_fb example.
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
#include "usb_descriptors.h"
|
||||
#include "common_types.h"
|
||||
|
||||
#ifdef CFG_QUIRK_OS_GUESSING
|
||||
#include "quirk_os_guessing.h"
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO CONSTANT TYPEDEF PROTOTYPES
|
||||
//--------------------------------------------------------------------+
|
||||
@@ -385,6 +389,18 @@ bool tud_audio_rx_done_post_read_cb(uint8_t rhport, uint16_t n_bytes_received, u
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CFG_QUIRK_OS_GUESSING
|
||||
bool tud_audio_feedback_format_correction_cb(uint8_t func_id)
|
||||
{
|
||||
(void)func_id;
|
||||
if(tud_speed_get() == TUSB_SPEED_FULL && quirk_os_guessing_get() == QUIRK_OS_GUESSING_OSX) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//--------------------------------------------------------------------+
|
||||
// AUDIO Task
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user