Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270444
b: refs/heads/master
c: ffd3d5c
h: refs/heads/master
v: v3
  • Loading branch information
Feng Tang authored and Takashi Iwai committed Oct 10, 2011
1 parent ed3bd38 commit 91bb943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d448162bda5ae3b5ecb26fe50c8fbbeae99faa4
refs/heads/master: ffd3d5c6c7a20fb718daf98a6c8a476d228f3995
12 changes: 3 additions & 9 deletions trunk/sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -2058,16 +2058,12 @@ EXPORT_SYMBOL(snd_pcm_open_substream);

static int snd_pcm_open_file(struct file *file,
struct snd_pcm *pcm,
int stream,
struct snd_pcm_file **rpcm_file)
int stream)
{
struct snd_pcm_file *pcm_file;
struct snd_pcm_substream *substream;
int err;

if (rpcm_file)
*rpcm_file = NULL;

err = snd_pcm_open_substream(pcm, stream, file, &substream);
if (err < 0)
return err;
Expand All @@ -2083,8 +2079,7 @@ static int snd_pcm_open_file(struct file *file,
substream->pcm_release = pcm_release_private;
}
file->private_data = pcm_file;
if (rpcm_file)
*rpcm_file = pcm_file;

return 0;
}

Expand Down Expand Up @@ -2113,7 +2108,6 @@ static int snd_pcm_capture_open(struct inode *inode, struct file *file)
static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream)
{
int err;
struct snd_pcm_file *pcm_file;
wait_queue_t wait;

if (pcm == NULL) {
Expand All @@ -2131,7 +2125,7 @@ static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream)
add_wait_queue(&pcm->open_wait, &wait);
mutex_lock(&pcm->open_mutex);
while (1) {
err = snd_pcm_open_file(file, pcm, stream, &pcm_file);
err = snd_pcm_open_file(file, pcm, stream);
if (err >= 0)
break;
if (err == -EAGAIN) {
Expand Down

0 comments on commit 91bb943

Please sign in to comment.