delete sof callback
This commit is contained in:
@@ -357,10 +357,6 @@ static void audio_notify_handler(uint8_t event, void *arg)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case USBD_EVENT_SOF:
|
|
||||||
usbd_audio_sof_callback();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case USBD_EVENT_SET_INTERFACE: {
|
case USBD_EVENT_SET_INTERFACE: {
|
||||||
struct usb_interface_descriptor *intf = (struct usb_interface_descriptor *)arg;
|
struct usb_interface_descriptor *intf = (struct usb_interface_descriptor *)arg;
|
||||||
if (intf->bAlternateSetting == 1) {
|
if (intf->bAlternateSetting == 1) {
|
||||||
@@ -464,8 +460,4 @@ __WEAK void usbd_audio_get_sampling_freq_table(uint8_t entity_id, uint8_t **samp
|
|||||||
#endif
|
#endif
|
||||||
__WEAK void usbd_audio_set_pitch(uint8_t ep, bool enable)
|
__WEAK void usbd_audio_set_pitch(uint8_t ep, bool enable)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
__WEAK void usbd_audio_sof_callback(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,6 @@ void usbd_audio_set_mute(uint8_t entity_id, uint8_t ch, uint8_t enable);
|
|||||||
void usbd_audio_set_sampling_freq(uint8_t entity_id, uint8_t ep_ch, uint32_t sampling_freq);
|
void usbd_audio_set_sampling_freq(uint8_t entity_id, uint8_t ep_ch, uint32_t sampling_freq);
|
||||||
void usbd_audio_get_sampling_freq_table(uint8_t entity_id, uint8_t **sampling_freq_table);
|
void usbd_audio_get_sampling_freq_table(uint8_t entity_id, uint8_t **sampling_freq_table);
|
||||||
void usbd_audio_set_pitch(uint8_t ep, bool enable);
|
void usbd_audio_set_pitch(uint8_t ep, bool enable);
|
||||||
void usbd_audio_sof_callback(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -692,10 +692,6 @@ static void video_notify_handler(uint8_t event, void *arg)
|
|||||||
usbd_video_cfg.power_mode = 0;
|
usbd_video_cfg.power_mode = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case USBD_EVENT_SOF:
|
|
||||||
usbd_video_sof_callback();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case USBD_EVENT_SET_INTERFACE: {
|
case USBD_EVENT_SET_INTERFACE: {
|
||||||
struct usb_interface_descriptor *intf = (struct usb_interface_descriptor *)arg;
|
struct usb_interface_descriptor *intf = (struct usb_interface_descriptor *)arg;
|
||||||
if (intf->bAlternateSetting == 1) {
|
if (intf->bAlternateSetting == 1) {
|
||||||
@@ -802,7 +798,3 @@ void usbd_video_mjpeg_payload_header_toggle(uint8_t *output, uint32_t packets)
|
|||||||
output[usbd_video_cfg.probe.dwMaxPayloadTransferSize * i + 1] ^= 0x01;
|
output[usbd_video_cfg.probe.dwMaxPayloadTransferSize * i + 1] ^= 0x01;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
__WEAK void usbd_video_sof_callback(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ void usbd_video_close(uint8_t intf);
|
|||||||
void usbd_video_probe_and_commit_controls_init(uint32_t dwFrameInterval, uint32_t dwMaxVideoFrameSize, uint32_t dwMaxPayloadTransferSize);
|
void usbd_video_probe_and_commit_controls_init(uint32_t dwFrameInterval, uint32_t dwMaxVideoFrameSize, uint32_t dwMaxPayloadTransferSize);
|
||||||
uint32_t usbd_video_mjpeg_payload_fill(uint8_t *input, uint32_t input_len, uint8_t *output, uint32_t *out_len);
|
uint32_t usbd_video_mjpeg_payload_fill(uint8_t *input, uint32_t input_len, uint8_t *output, uint32_t *out_len);
|
||||||
void usbd_video_mjpeg_payload_header_toggle(uint8_t *output, uint32_t packets);
|
void usbd_video_mjpeg_payload_header_toggle(uint8_t *output, uint32_t packets);
|
||||||
void usbd_video_sof_callback(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user