Data Fields | |
snd_card * | card |
most_dev * | most_dev |
snd_pcm * | pcm |
snd_pcm_substream * | p_substream |
atomic_t | p_cur_period |
volatile bool | p_silent |
int | p_thread_id |
completion | p_completion |
semaphore | p_event |
semaphore | p_buffer_mutex |
semaphore | p_thread_sema |
semaphore | p_buf_setup_sema |
snd_pcm_substream * | c_substream |
atomic_t | c_cur_period |
volatile bool | c_silent |
int | c_thread_id |
completion | c_completion |
semaphore | c_buffer_mutex |
semaphore | c_thread_sema |
semaphore | c_buf_setup_sema |
chip
structure of the ALSA driver. It contains MOST specific information. Because the device can only be opened once for playback and once for record, there's no need of a file specific structure or somthing like this. This may change in future.
Definition at line 44 of file most-alsa.h.
struct snd_card* most_alsa_dev::card |
the sound card
Definition at line 46 of file most-alsa.h.
Referenced by most_alsa_remove(), snd_most_capture_setup_sync_file(), snd_most_create(), snd_most_new_pcm(), and snd_most_playback_setup_sync_file().
struct most_dev* most_alsa_dev::most_dev |
the MOST device
Definition at line 47 of file most-alsa.h.
Referenced by most_alsa_remove(), snd_most_capture_hw_params(), snd_most_capture_setup_sync_file(), snd_most_create(), snd_most_playback_hw_params(), and snd_most_playback_setup_sync_file().
struct snd_pcm* most_alsa_dev::pcm |
struct snd_pcm_substream* most_alsa_dev::p_substream |
the playback substream
Definition at line 51 of file most-alsa.h.
Referenced by snd_most_playback_close(), snd_most_playback_open(), and snd_most_playback_thread().
atomic_t most_alsa_dev::p_cur_period |
indicates the current period for accessing the ALSA buffer (used in various places)
Definition at line 52 of file most-alsa.h.
Referenced by snd_most_playback_open(), snd_most_playback_pointer(), snd_most_playback_prepare(), and snd_most_playback_thread().
volatile bool most_alsa_dev::p_silent |
true
if playback is stopped (i. e. silent), false
otherwise
Definition at line 55 of file most-alsa.h.
Referenced by snd_most_playback_hw_free(), snd_most_playback_hw_params(), snd_most_playback_open(), snd_most_playback_thread(), and snd_most_playback_trigger().
the kernel thread that is used for playback handling
Definition at line 58 of file most-alsa.h.
Referenced by most_alsa_int_handler(), snd_most_playback_close(), snd_most_playback_open(), and snd_most_playback_thread().
struct completion most_alsa_dev::p_completion |
the completion object that is used for the kernel thread which is used for playback
Definition at line 60 of file most-alsa.h.
Referenced by snd_most_playback_close(), snd_most_playback_open(), and snd_most_playback_thread().
struct semaphore most_alsa_dev::p_event |
the semaphore that is triggered in the interrupt handler that is used to wake up the kernel thread that is used for playback
Definition at line 63 of file most-alsa.h.
Referenced by most_alsa_int_handler(), snd_most_playback_open(), and snd_most_playback_thread().
struct semaphore most_alsa_dev::p_buffer_mutex |
mutex to aprevent the buffer from being accessed in the kernel thread while it's reallocated in the hw_param method
Definition at line 68 of file most-alsa.h.
Referenced by snd_most_playback_hw_params(), snd_most_playback_open(), and snd_most_playback_thread().
struct semaphore most_alsa_dev::p_thread_sema |
needed that the kernel thread can execute daemonize() and unblock signals before the creator continues
Definition at line 73 of file most-alsa.h.
Referenced by snd_most_playback_open(), and snd_most_playback_thread().
struct semaphore most_alsa_dev::p_buf_setup_sema |
needed to wait until the buffer was setup
Definition at line 77 of file most-alsa.h.
Referenced by snd_most_playback_hw_params(), snd_most_playback_open(), and snd_most_playback_thread().
struct snd_pcm_substream* most_alsa_dev::c_substream |
the playback substream
Definition at line 81 of file most-alsa.h.
Referenced by snd_most_capture_close(), snd_most_capture_open(), and snd_most_capture_thread().
atomic_t most_alsa_dev::c_cur_period |
indicates the current period for accessing the ALSA buffer (used in various places)
Definition at line 82 of file most-alsa.h.
Referenced by snd_most_capture_open(), snd_most_capture_pointer(), snd_most_capture_prepare(), and snd_most_capture_thread().
volatile bool most_alsa_dev::c_silent |
true
if playback is stopped (i.e. silent), false
otherwise
Definition at line 85 of file most-alsa.h.
Referenced by snd_most_capture_hw_free(), snd_most_capture_hw_params(), snd_most_capture_open(), snd_most_capture_thread(), and snd_most_capture_trigger().
the kernel thread that is used for playback handling
Definition at line 88 of file most-alsa.h.
Referenced by snd_most_capture_close(), snd_most_capture_open(), and snd_most_capture_thread().
struct completion most_alsa_dev::c_completion |
the completion object that is used for the kernel thread which is used for playback
Definition at line 90 of file most-alsa.h.
Referenced by snd_most_capture_close(), snd_most_capture_open(), and snd_most_capture_thread().
struct semaphore most_alsa_dev::c_buffer_mutex |
mutex to aprevent the buffer from being accessed in the kernel thread while it's reallocated in the hw_param method
Definition at line 93 of file most-alsa.h.
Referenced by snd_most_capture_hw_params(), snd_most_capture_open(), and snd_most_capture_thread().
struct semaphore most_alsa_dev::c_thread_sema |
needed that the kernel thread can execute daemonize() and unblock signals before the crator continues
Definition at line 98 of file most-alsa.h.
Referenced by snd_most_capture_open(), and snd_most_capture_thread().
struct semaphore most_alsa_dev::c_buf_setup_sema |
needed to wait until the buffer was setup
Definition at line 102 of file most-alsa.h.
Referenced by snd_most_capture_hw_params(), snd_most_capture_open(), and snd_most_capture_thread().