delete sof callback
This commit is contained in:
@@ -357,10 +357,6 @@ static void audio_notify_handler(uint8_t event, void *arg)
|
||||
|
||||
break;
|
||||
|
||||
case USBD_EVENT_SOF:
|
||||
usbd_audio_sof_callback();
|
||||
break;
|
||||
|
||||
case USBD_EVENT_SET_INTERFACE: {
|
||||
struct usb_interface_descriptor *intf = (struct usb_interface_descriptor *)arg;
|
||||
if (intf->bAlternateSetting == 1) {
|
||||
@@ -465,7 +461,3 @@ __WEAK void usbd_audio_get_sampling_freq_table(uint8_t entity_id, uint8_t **samp
|
||||
__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_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_sof_callback(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -692,10 +692,6 @@ static void video_notify_handler(uint8_t event, void *arg)
|
||||
usbd_video_cfg.power_mode = 0;
|
||||
break;
|
||||
|
||||
case USBD_EVENT_SOF:
|
||||
usbd_video_sof_callback();
|
||||
break;
|
||||
|
||||
case USBD_EVENT_SET_INTERFACE: {
|
||||
struct usb_interface_descriptor *intf = (struct usb_interface_descriptor *)arg;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
__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);
|
||||
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_sof_callback(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user