summaryrefslogtreecommitdiffstats
path: root/include/sound/pcm.h
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2009-11-10 10:13:30 +0100
committerTakashi Iwai <tiwai@suse.de>2009-11-10 16:32:20 +0100
commite7373b702f6eab35f315e016a4159860a7a4d686 (patch)
tree01e2401935c57f80f6b78d1906128f006655b432 /include/sound/pcm.h
parent91d12c485b8949cce6c13ab641147c5bc86ce8b9 (diff)
downloadop-kernel-dev-e7373b702f6eab35f315e016a4159860a7a4d686.zip
op-kernel-dev-e7373b702f6eab35f315e016a4159860a7a4d686.tar.gz
sound: pcm: record a substream's owner process
Record the pid of the task that opened a PCM substream. For sound cards with hardware mixing, this allows determining which process is associated with a specific substream's volume control. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r--include/sound/pcm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index de6d981..c83a4a7 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -348,6 +348,8 @@ struct snd_pcm_group { /* keep linked substreams */
int count;
};
+struct pid;
+
struct snd_pcm_substream {
struct snd_pcm *pcm;
struct snd_pcm_str *pstr;
@@ -379,6 +381,7 @@ struct snd_pcm_substream {
atomic_t mmap_count;
unsigned int f_flags;
void (*pcm_release)(struct snd_pcm_substream *);
+ struct pid *pid;
#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
/* -- OSS things -- */
struct snd_pcm_oss_substream oss;
OpenPOWER on IntegriCloud