mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
91d12c485b
commit
e7373b702f
2 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue