Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322665
b: refs/heads/master
c: 81cb324
h: refs/heads/master
i:
  322663: b91e100
v: v3
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed Sep 11, 2012
1 parent 944adb9 commit c2b905d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 07dc59f0988cb54fd87bd373b3b27eb2401dd811
refs/heads/master: 81cb324675eec592ab8f3038f980c074fbf7fb9b
8 changes: 3 additions & 5 deletions trunk/sound/core/compress_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ static int snd_compr_open(struct inode *inode, struct file *f)
int maj = imajor(inode);
int ret;

if (f->f_flags & O_WRONLY)
if ((f->f_flags & O_ACCMODE) == O_WRONLY)
dirn = SND_COMPRESS_PLAYBACK;
else if (f->f_flags & O_RDONLY)
else if ((f->f_flags & O_ACCMODE) == O_RDONLY)
dirn = SND_COMPRESS_CAPTURE;
else {
pr_err("invalid direction\n");
else
return -EINVAL;
}

if (maj == snd_major)
compr = snd_lookup_minor_data(iminor(inode),
Expand Down

0 comments on commit c2b905d

Please sign in to comment.