The USB Stream Control embeds a mechanism that ensures a good audio playback by keeping synchronized both Host and Device, even if their sampling frequency are not strictly equivalent.
USB resynchronization methods | |
| #define | USB_RESYNC_METHOD_EXT_CLOCK_SYNTHESIZER 8 |
| Use of an external clock synthesizer (e.g. the CL CS2200). | |
| #define | USB_RESYNC_METHOD_FEEDBACK_ENDPOINT 4 |
| Use of a feedback endpoint. | |
| #define | USB_RESYNC_METHOD_SOFT_ADAPTIF_SRC 2 |
| Pseudo adaptif Sampling Rate Conversion. | |
| #define | USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES 1 |
Defines | |
| #define | TIMER_USB_STREAM_MONITOR 700 |
| Period (in ms) of the polling of the buffers monitoring. | |
| #define | USB_RESYNC_AUDIO_STREAM ENABLED |
| ENABLE to activate the USB audio resynchronization. | |
| #define | USB_STREAM_BUFFER_NUMBER 16 |
| Number of buffers used in the USB stream FIFO. | |
| #define | USB_STREAM_BUFFER_SIZE 256 |
| Size of a buffer (in bytes) used in the USB stream FIFO. | |
| #define | USB_STREAM_RESYNC_PPM_STEPS 10 |
| Steps in PPM for the resynchronization. | |
| #define TIMER_USB_STREAM_MONITOR 700 |
| #define USB_RESYNC_AUDIO_STREAM ENABLED |
ENABLE to activate the USB audio resynchronization.
Possible values ENABLED or DISABLED
Definition at line 285 of file conf_usb.h.
| #define USB_RESYNC_METHOD_EXT_CLOCK_SYNTHESIZER 8 |
Use of an external clock synthesizer (e.g. the CL CS2200).
Definition at line 300 of file conf_usb.h.
| #define USB_RESYNC_METHOD_FEEDBACK_ENDPOINT 4 |
| #define USB_RESYNC_METHOD_SOFT_ADAPTIF_SRC 2 |
| #define USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES 1 |
Add/remove samples on the fly.
Definition at line 291 of file conf_usb.h.
| #define USB_STREAM_BUFFER_NUMBER 16 |
Number of buffers used in the USB stream FIFO.
Definition at line 274 of file conf_usb.h.
Referenced by mmi_activity_display().
| #define USB_STREAM_BUFFER_SIZE 256 |
Size of a buffer (in bytes) used in the USB stream FIFO.
It shall be equivalent to the pipe/endpoint from which the stream comes to.
Definition at line 271 of file conf_usb.h.
| #define USB_STREAM_RESYNC_PPM_STEPS 10 |
1.5.5