#include "conf_usb.h"
Data Structures | |
struct | device_audio_task_data_t |
Define for each 'feature unit' the max numbers of bmaControls One of them is used by the microphone! More... | |
Macros | |
#define | MAX_BMA_CONTROLS 4 |
Define for each 'feature unit' the max numbers of bmaControls. More... | |
Functions | |
void | device_audio_disable_microphone (void) |
void | device_audio_enable_microphone (void) |
void | device_audio_task (void) |
Entry point of the device Audio task management. More... | |
void | device_audio_task_init (void) |
This function initializes the hardware/software resources required for device Audio task. More... | |
void | usb_sof_action (void) |
usb_sof_action More... | |
#define MAX_BMA_CONTROLS 4 |
Define for each 'feature unit' the max numbers of bmaControls.
void device_audio_disable_microphone | ( | void | ) |
References b_microphone_pause.
Referenced by audio_speaker_set_sample_freq().
void device_audio_enable_microphone | ( | void | ) |
References b_microphone_pause.
Referenced by audio_speaker_set_sample_freq().
void device_audio_task | ( | void | ) |
Entry point of the device Audio task management.
References audio_mixer_dacs_input, b_microphone_started, microphone_st::buffer, EP_AUDIO_IN, EP_AUDIO_OUT, EP_SIZE_IN, Is_device_enumerated, is_joystick_pressed(), Is_usb_out_received, Is_usb_write_enabled, LED0, LED_On(), LED_Set_Intensity(), mic_buf_id, mic_frame_id, microphone, mmi_activity_display(), mmi_display(), mmi_state, mute, sample_sound, SAMPLE_SOUND_LEN, microphone_st::size, Usb_ack_in_ready_send, Usb_ack_out_received_free, Usb_reset_endpoint_fifo_access, USB_STREAM_DEVICE, usb_stream_input(), usb_stream_resync(), and Usb_write_endpoint_data.
Referenced by device_audio_task_init(), and main().
void device_audio_task_init | ( | void | ) |
This function initializes the hardware/software resources required for device Audio task.
References b_microphone_pause, b_microphone_started, microphone_st::buffer, device_audio_task(), Is_usb_device, microphone, player_init(), microphone_st::size, sof_cnt, SPEAKER_FREQUENCY, Usb_enable_sof_interrupt, and usb_stream_init().
Referenced by main().