From: "Serge E. Hallyn" <serue@us.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: Hubertus Franke <frankeh@watson.ibm.com>,
Dave Hansen <haveblue@us.ibm.com>
Subject: [RFC] [PATCH 11/13] Change pid accesses: sound/
Date: Mon, 14 Nov 2005 15:23:52 -0600 [thread overview]
Message-ID: <20051114212530.005024000@sergelap> (raw)
In-Reply-To: 20051114212341.724084000@sergelap
[-- Attachment #1: BA-change-pid-tgid-references-sound --]
[-- Type: text/plain, Size: 6958 bytes --]
Replace-Subject: Change pid accesses: sound/
From: Serge Hallyn <serue@us.ibm.com>
Change pid accesses for sound drivers.
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Serge Hallyn <serue@us.ibm.com>
---
sound/core/control.c | 4 ++--
sound/core/pcm.c | 2 +-
sound/core/rawmidi.c | 2 +-
sound/core/timer.c | 4 ++--
sound/oss/forte.c | 2 +-
sound/pci/korg1212/korg1212.c | 4 ++--
sound/pci/rme9652/hdsp.c | 4 ++--
sound/pci/rme9652/hdspm.c | 4 ++--
sound/pci/rme9652/rme9652.c | 4 ++--
9 files changed, 15 insertions(+), 15 deletions(-)
Index: linux-2.6.15-rc1/sound/core/control.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/core/control.c
+++ linux-2.6.15-rc1/sound/core/control.c
@@ -78,7 +78,7 @@ static int snd_ctl_open(struct inode *in
init_waitqueue_head(&ctl->change_sleep);
spin_lock_init(&ctl->read_lock);
ctl->card = card;
- ctl->pid = current->pid;
+ ctl->pid = task_pid(current);
file->private_data = ctl;
write_lock_irqsave(&card->ctl_files_rwlock, flags);
list_add_tail(&ctl->list, &card->ctl_files);
@@ -781,7 +781,7 @@ static int snd_ctl_elem_lock(snd_ctl_fil
result = -EBUSY;
else {
vd->owner = file;
- vd->owner_pid = current->pid;
+ vd->owner_pid = task_pid(current);
result = 0;
}
}
Index: linux-2.6.15-rc1/sound/core/pcm.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/core/pcm.c
+++ linux-2.6.15-rc1/sound/core/pcm.c
@@ -754,7 +754,7 @@ int snd_pcm_open_substream(snd_pcm_t *pc
down_read(&card->controls_rwsem);
list_for_each(list, &card->ctl_files) {
kctl = snd_ctl_file(list);
- if (kctl->pid == current->pid) {
+ if (kctl->pid == task_pid(current)) {
prefer_subdevice = kctl->prefer_pcm_subdevice;
break;
}
Index: linux-2.6.15-rc1/sound/core/rawmidi.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/core/rawmidi.c
+++ linux-2.6.15-rc1/sound/core/rawmidi.c
@@ -423,7 +423,7 @@ static int snd_rawmidi_open(struct inode
down_read(&card->controls_rwsem);
list_for_each(list, &card->ctl_files) {
kctl = snd_ctl_file(list);
- if (kctl->pid == current->pid) {
+ if (kctl->pid == task_pid(current)) {
subdevice = kctl->prefer_rawmidi_subdevice;
break;
}
Index: linux-2.6.15-rc1/sound/core/timer.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/core/timer.c
+++ linux-2.6.15-rc1/sound/core/timer.c
@@ -1512,10 +1512,10 @@ static int snd_timer_user_tselect(struct
err = -EFAULT;
goto __err;
}
- sprintf(str, "application %i", current->pid);
+ sprintf(str, "application %i", task_pid(current));
if (tselect.id.dev_class != SNDRV_TIMER_CLASS_SLAVE)
tselect.id.dev_sclass = SNDRV_TIMER_SCLASS_APPLICATION;
- err = snd_timer_open(&tu->timeri, str, &tselect.id, current->pid);
+ err = snd_timer_open(&tu->timeri, str, &tselect.id, task_pid(current));
if (err < 0)
goto __err;
Index: linux-2.6.15-rc1/sound/oss/forte.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/oss/forte.c
+++ linux-2.6.15-rc1/sound/oss/forte.c
@@ -1256,7 +1256,7 @@ forte_dsp_open (struct inode *inode, str
file->private_data = forte;
- DPRINTK ("%s: dsp opened by %d\n", __FUNCTION__, current->pid);
+ DPRINTK ("%s: dsp opened by %d\n", __FUNCTION__, task_pid(current));
if (file->f_mode & FMODE_WRITE)
forte_channel_init (forte, &forte->play);
Index: linux-2.6.15-rc1/sound/pci/korg1212/korg1212.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/pci/korg1212/korg1212.c
+++ linux-2.6.15-rc1/sound/pci/korg1212/korg1212.c
@@ -1443,7 +1443,7 @@ static int snd_korg1212_playback_open(sn
spin_lock_irqsave(&korg1212->lock, flags);
korg1212->playback_substream = substream;
- korg1212->playback_pid = current->pid;
+ korg1212->playback_pid = task_pid(current);
korg1212->periodsize = K1212_PERIODS;
korg1212->channels = K1212_CHANNELS;
korg1212->errorcnt = 0;
@@ -1475,7 +1475,7 @@ static int snd_korg1212_capture_open(snd
spin_lock_irqsave(&korg1212->lock, flags);
korg1212->capture_substream = substream;
- korg1212->capture_pid = current->pid;
+ korg1212->capture_pid = task_pid(current);
korg1212->periodsize = K1212_PERIODS;
korg1212->channels = K1212_CHANNELS;
Index: linux-2.6.15-rc1/sound/pci/rme9652/hdsp.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/pci/rme9652/hdsp.c
+++ linux-2.6.15-rc1/sound/pci/rme9652/hdsp.c
@@ -4188,7 +4188,7 @@ static int snd_hdsp_playback_open(snd_pc
runtime->dma_area = hdsp->playback_buffer;
runtime->dma_bytes = HDSP_DMA_AREA_BYTES;
- hdsp->playback_pid = current->pid;
+ hdsp->playback_pid = task_pid(current);
hdsp->playback_substream = substream;
spin_unlock_irq(&hdsp->lock);
@@ -4261,7 +4261,7 @@ static int snd_hdsp_capture_open(snd_pcm
runtime->dma_area = hdsp->capture_buffer;
runtime->dma_bytes = HDSP_DMA_AREA_BYTES;
- hdsp->capture_pid = current->pid;
+ hdsp->capture_pid = task_pid(current);
hdsp->capture_substream = substream;
spin_unlock_irq(&hdsp->lock);
Index: linux-2.6.15-rc1/sound/pci/rme9652/hdspm.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/pci/rme9652/hdspm.c
+++ linux-2.6.15-rc1/sound/pci/rme9652/hdspm.c
@@ -3102,7 +3102,7 @@ static int snd_hdspm_playback_open(snd_p
if (hdspm->capture_substream == NULL)
hdspm_stop_audio(hdspm);
- hdspm->playback_pid = current->pid;
+ hdspm->playback_pid = task_pid(current);
hdspm->playback_substream = substream;
spin_unlock_irq(&hdspm->lock);
@@ -3151,7 +3151,7 @@ static int snd_hdspm_capture_open(snd_pc
if (hdspm->playback_substream == NULL)
hdspm_stop_audio(hdspm);
- hdspm->capture_pid = current->pid;
+ hdspm->capture_pid = task_pid(current);
hdspm->capture_substream = substream;
spin_unlock_irq(&hdspm->lock);
Index: linux-2.6.15-rc1/sound/pci/rme9652/rme9652.c
===================================================================
--- linux-2.6.15-rc1.orig/sound/pci/rme9652/rme9652.c
+++ linux-2.6.15-rc1/sound/pci/rme9652/rme9652.c
@@ -2321,7 +2321,7 @@ static int snd_rme9652_playback_open(snd
rme9652_set_thru(rme9652, -1, 0);
}
- rme9652->playback_pid = current->pid;
+ rme9652->playback_pid = task_pid(current);
rme9652->playback_substream = substream;
spin_unlock_irq(&rme9652->lock);
@@ -2381,7 +2381,7 @@ static int snd_rme9652_capture_open(snd_
rme9652_set_thru(rme9652, -1, 0);
}
- rme9652->capture_pid = current->pid;
+ rme9652->capture_pid = task_pid(current);
rme9652->capture_substream = substream;
spin_unlock_irq(&rme9652->lock);
--
next prev parent reply other threads:[~2005-11-14 21:35 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-14 21:23 [RFC] [PATCH 00/13] Introduce task_pid api Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 01/13] Change pid accesses: drivers Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 02/13] Change pid accesses: most archs Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 03/13] Change pid accesses: filesystems Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 04/13] Change pid accesses: include/ Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 05/13] Change pid accesses: ipc Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 06/13] Change pid accesses: kernel/ Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 07/13] Change pid accesses: lib/ Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 08/13] Change pid accesses: mm/ Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 09/13] Change pid accesses: net/ Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 10/13] Change pid accesses: security/ Serge E. Hallyn
2005-11-14 21:23 ` Serge E. Hallyn [this message]
2005-11-14 21:23 ` [RFC] [PATCH 12/13] Change pid accesses: ia64 and mips Serge E. Hallyn
2005-11-15 23:08 ` Keith Owens
2005-11-16 11:58 ` Serge E. Hallyn
2005-11-16 13:53 ` Serge E. Hallyn
2005-11-14 21:23 ` [RFC] [PATCH 13/13] Define new task_pid api Serge E. Hallyn
2005-11-14 23:36 ` [RFC] [PATCH 00/13] Introduce " Paul Jackson
2005-11-15 1:01 ` Serge E. Hallyn
2005-11-15 1:35 ` Paul Jackson
2005-11-15 1:51 ` Paul Jackson
2005-11-15 2:29 ` Serge E. Hallyn
2005-11-15 3:37 ` Paul Jackson
2005-11-15 5:15 ` Serge E. Hallyn
2005-11-15 6:35 ` Paul Jackson
2005-11-15 8:11 ` Serge E. Hallyn
2005-11-15 9:06 ` Paul Jackson
2005-11-15 10:07 ` Dave Hansen
2005-11-15 18:10 ` Paul Jackson
2005-11-15 11:59 ` Robin Holt
2005-11-15 13:32 ` Serge E. Hallyn
2005-11-15 14:37 ` Hubertus Franke
2005-11-15 18:39 ` Paul Jackson
2005-11-15 18:54 ` Hubertus Franke
2005-11-15 19:00 ` Serge E. Hallyn
2005-11-15 19:17 ` Hubertus Franke
2005-11-15 22:11 ` Paul Jackson
2005-11-15 23:15 ` Cedric Le Goater
2005-11-15 23:28 ` Paul Jackson
2005-11-15 16:47 ` Greg KH
2005-11-15 17:08 ` Serge E. Hallyn
2005-11-15 17:33 ` Dave Hansen
2005-11-15 5:51 ` Serge E. Hallyn
2005-11-13 15:22 ` Pavel Machek
2005-11-16 19:36 ` Kyle Moffett
2005-11-16 20:36 ` Pavel Machek
2005-11-16 20:48 ` Dave Hansen
2005-11-19 23:30 ` Pavel Machek
2005-11-20 22:38 ` Serge E. Hallyn
2005-12-07 14:53 ` Eric W. Biederman
2005-11-20 23:29 ` Nix
2005-11-16 21:07 ` Paul Jackson
2005-11-16 20:24 ` Dave Hansen
2005-11-15 13:34 ` Serge E. Hallyn
2005-11-15 11:17 ` Robin Holt
2005-11-15 12:01 ` Dave Hansen
2005-11-15 19:21 ` Ray Bryant
2005-11-15 19:41 ` Serge E. Hallyn
2005-11-15 20:30 ` Ray Bryant
2005-11-15 21:05 ` Serge E. Hallyn
2005-11-15 22:43 ` Paul Jackson
2005-11-15 22:55 ` Cedric Le Goater
2005-11-16 1:12 ` Paul Jackson
2005-12-07 14:46 ` Eric W. Biederman
2005-12-07 17:47 ` Dave Hansen
2005-12-07 17:55 ` Arjan van de Ven
2005-12-07 18:09 ` Dave Hansen
2005-12-07 19:00 ` Arjan van de Ven
2005-12-07 19:42 ` Eric W. Biederman
2005-12-07 22:13 ` Dave Hansen
2005-12-07 22:20 ` Arjan van de Ven
2005-12-12 10:55 ` Dave Airlie
2005-12-19 14:04 ` Eric W. Biederman
2005-12-07 19:19 ` Eric W. Biederman
2005-12-07 21:40 ` Dave Hansen
2005-12-07 22:17 ` Eric W. Biederman
2004-12-14 15:23 ` Pavel Machek
2005-12-14 13:40 ` Arjan van de Ven
2005-12-14 16:29 ` Serge E. Hallyn
2005-12-07 22:31 ` Dave Hansen
2005-12-07 22:51 ` Eric W. Biederman
2005-12-08 5:42 ` Jeff Dike
2005-12-08 10:09 ` Andi Kleen
2005-12-07 22:17 ` Cedric Le Goater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051114212530.005024000@sergelap \
--to=serue@us.ibm.com \
--cc=frankeh@watson.ibm.com \
--cc=haveblue@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox