Replace-Subject: Change pid accesses: sound/
From: Serge Hallyn <[email protected]>
Change pid accesses for sound drivers.
Signed-off-by: Dave Hansen <[email protected]>
Signed-off-by: Serge Hallyn <[email protected]>
---
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);
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]