mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Initialize all fields of slave PCM instance of direct plugins
Initialize all fields of slave PCM instance of direct plugins. Some fields were not initialized properly.
This commit is contained in:
parent
2a7f35347b
commit
b3c3e355d9
2 changed files with 114 additions and 30 deletions
|
|
@ -50,6 +50,7 @@ struct slave_params {
|
|||
unsigned int periods;
|
||||
};
|
||||
|
||||
/* shared among direct plugin clients - be careful to be 32/64bit compatible! */
|
||||
typedef struct {
|
||||
unsigned int magic; /* magic number */
|
||||
char socket_name[256]; /* name of communication socket */
|
||||
|
|
@ -65,15 +66,36 @@ typedef struct {
|
|||
snd_interval_t periods;
|
||||
} hw;
|
||||
struct {
|
||||
unsigned int buffer_size;
|
||||
unsigned int period_size;
|
||||
unsigned long long boundary;
|
||||
unsigned int channels;
|
||||
unsigned int sample_bits;
|
||||
unsigned int rate;
|
||||
/* copied to slave PCMs */
|
||||
snd_pcm_access_t access;
|
||||
snd_pcm_format_t format;
|
||||
snd_pcm_subformat_t subformat;
|
||||
unsigned int channels;
|
||||
unsigned int rate;
|
||||
unsigned int period_size;
|
||||
unsigned int period_time;
|
||||
snd_interval_t periods;
|
||||
unsigned int tick_time;
|
||||
snd_pcm_tstamp_t tstamp_mode;
|
||||
unsigned int period_step;
|
||||
unsigned int sleep_min;
|
||||
unsigned int avail_min;
|
||||
unsigned int start_threshold;
|
||||
unsigned int stop_threshold;
|
||||
unsigned int silence_threshold;
|
||||
unsigned int silence_size;
|
||||
unsigned int xfer_align;
|
||||
unsigned long long boundary;
|
||||
unsigned int info;
|
||||
unsigned int msbits;
|
||||
unsigned int rate_num;
|
||||
unsigned int rate_den;
|
||||
unsigned int hw_flags;
|
||||
unsigned int fifo_size;
|
||||
unsigned int buffer_size;
|
||||
snd_interval_t buffer_time;
|
||||
unsigned int sample_bits;
|
||||
unsigned int frame_bits;
|
||||
} s;
|
||||
union {
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue