Lines Matching full:thread
22 /* Hold communication pipes and pthread info for the thread used to play or
24 * to_thread_fds - Send a message from main to running thread.
25 * to_main_fds - Send a synchronous response to main from running thread.
26 * tid - Thread ID of the running playback/capture thread.
27 * started - Non-zero if the thread has started successfully.
28 * suspended - Non-zero if the thread is suspended.
30 * pollfds - What FDs wake up this thread.
48 /* Callback function to be handled in main loop in audio thread.
54 /* Creates an audio thread.
56 * A pointer to the newly created audio thread. It must be freed by calling
63 * thread - The thread to add open device to.
66 int audio_thread_add_open_dev(struct audio_thread *thread,
71 * thread - The thread to remove open device from.
74 int audio_thread_rm_open_dev(struct audio_thread *thread,
77 /* Checks if dev is open and used by audio thread.
79 * thread - The thread accessing open devs.
82 int audio_thread_is_dev_open(struct audio_thread *thread,
85 /* Adds an thread_callback to audio thread.
95 /* Adds an thread_callback to audio thread.
105 /* Removes an thread_callback from audio thread.
111 /* Removes a thread_callback from main thread.
113 * thread - The thread to remove callback from.
116 int audio_thread_rm_callback_sync(struct audio_thread *thread, int fd);
122 /* Starts a thread created with audio_thread_create.
124 * thread - The thread to start.
128 int audio_thread_start(struct audio_thread *thread);
130 /* Frees an audio thread created with audio_thread_create(). */
131 void audio_thread_destroy(struct audio_thread *thread);
133 /* Add a stream to the thread. After this call, the ownership of the stream will
134 * be passed to the audio thread. Audio thread is responsible to release the
137 * thread - a pointer to the audio thread.
143 * the thread can't be added.
145 int audio_thread_add_stream(struct audio_thread *thread,
152 * thread - a pointer to the audio thread.
159 int audio_thread_drain_stream(struct audio_thread *thread,
164 * thread - a pointer to the audio thread.
170 int audio_thread_disconnect_stream(struct audio_thread *thread,
175 int audio_thread_dump_thread_info(struct audio_thread *thread,
180 * thread - pointer to the audio thread.
185 int audio_thread_set_aec_dump(struct audio_thread *thread,
191 * thread. */
192 int audio_thread_config_global_remix(struct audio_thread *thread,
198 * Ramping is started/updated in audio thread. This function lets the main
199 * thread request that the audio thread start ramping.
202 * thread - a pointer to the audio thread.
208 int audio_thread_dev_start_ramp(struct audio_thread *thread,