Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118307
b: refs/heads/master
c: 4b30fbd
h: refs/heads/master
i:
  118305: 92d3b6f
  118303: a5f9b98
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Nov 1, 2008
1 parent ff63cb0 commit 65287ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 67d112842586aa11506b7a8afec29391bf8f3cca
refs/heads/master: 4b30fbde910dd40b831528e916cb8a91823f618f
2 changes: 1 addition & 1 deletion trunk/sound/oss/dmasound/dmasound.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ struct sound_queue {
*/
int active;
wait_queue_head_t action_queue, open_queue, sync_queue;
fmode_t open_mode;
int non_blocking;
int busy, syncing, xruns, died;
};

Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/oss/dmasound/dmasound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ static ssize_t sq_write(struct file *file, const char __user *src, size_t uLeft,
while (uLeft) {
while (write_sq.count >= write_sq.max_active) {
sq_play();
if (write_sq.open_mode & O_NONBLOCK)
if (write_sq.non_blocking)
return uWritten > 0 ? uWritten : -EAGAIN;
SLEEP(write_sq.action_queue);
if (signal_pending(current))
Expand Down Expand Up @@ -718,7 +718,7 @@ static int sq_open2(struct sound_queue *sq, struct file *file, fmode_t mode,
return rc;
}

sq->open_mode = file->f_mode;
sq->non_blocking = file->f_flags & O_NONBLOCK;
}
return rc;
}
Expand Down

0 comments on commit 65287ff

Please sign in to comment.