[ALSA] Add O_APPEND flag support to PCM
Added O_APPEND flag support to PCM to enable shared substreams among multiple processes. This mechanism is used by dmix and dsnoop plugins. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Jaroslav Kysela
parent
f001c3acf6
commit
0df63e44c3
@@ -368,7 +368,8 @@ struct snd_pcm_substream {
|
||||
struct snd_pcm_group *group; /* pointer to current group */
|
||||
/* -- assigned files -- */
|
||||
void *file;
|
||||
struct file *ffile;
|
||||
int ref_count;
|
||||
unsigned int f_flags;
|
||||
void (*pcm_release)(struct snd_pcm_substream *);
|
||||
#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
|
||||
/* -- OSS things -- */
|
||||
@@ -387,7 +388,7 @@ struct snd_pcm_substream {
|
||||
unsigned int hw_opened: 1;
|
||||
};
|
||||
|
||||
#define SUBSTREAM_BUSY(substream) ((substream)->file != NULL)
|
||||
#define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)
|
||||
|
||||
|
||||
struct snd_pcm_str {
|
||||
|
Reference in New Issue
Block a user