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,
78 /* Checks if dev is open and used by audio thread.
80 * thread - The thread accessing open devs.
83 int audio_thread_is_dev_open(struct audio_thread *thread,
86 /* Adds an thread_callback to audio thread.
95 /* Adds an thread_callback to audio thread.
104 /* Removes an thread_callback from audio thread.
110 /* Removes a thread_callback from main thread.
112 * thread - The thread to remove callback from.
115 int audio_thread_rm_callback_sync(struct audio_thread *thread, int fd);
120 /* Starts a thread created with audio_thread_create.
122 * thread - The thread to start.
126 int audio_thread_start(struct audio_thread *thread);
128 /* Frees an audio thread created with audio_thread_create(). */
129 void audio_thread_destroy(struct audio_thread *thread);
134 /* Add a stream to the thread. After this call, the ownership of the stream will
135 * be passed to the audio thread. Audio thread is responsible to release the
138 * thread - a pointer to the audio thread.
144 * the thread can't be added.
146 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,
190 * thread. */
191 int audio_thread_config_global_remix(struct audio_thread *thread,
197 * Ramping is started/updated in audio thread. This function lets the main
198 * thread request that the audio thread start ramping.
201 * thread - a pointer to the audio thread.
207 int audio_thread_dev_start_ramp(struct audio_thread *thread,