linux/sound/core
Dan Carpenter 81cb324675 ALSA: compress_core: fix open flags test in snd_compr_open()
O_RDONLY is zero so the original test (f->f_flags & O_RDONLY) is always
false and it will never do compress capture.  The test for O_WRONLY is
also slightly off.  The original test would consider "->flags =
(O_WRONLY | O_RDWR)" as write only instead of rejecting it as invalid.

I've also removed the pr_err() because that could flood dmesg.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-09-11 14:27:40 +02:00
..
oss
seq Documentation: remove references to /etc/modprobe.conf 2012-03-30 16:03:15 -07:00
compress_offload.c ALSA: compress_core: fix open flags test in snd_compr_open() 2012-09-11 14:27:40 +02:00
control_compat.c
control.c ALSA: control - Fixe a trailing white space error 2012-03-13 08:11:59 +01:00
ctljack.c
device.c
hrtimer.c
hwdep_compat.c
hwdep.c
info_oss.c
info.c
init.c The following text was taken from the original review request: 2012-03-24 10:41:37 -07:00
isadma.c
jack.c ALSA: jack: Update documention to reflect other userspace interfaces 2012-05-07 18:11:37 +02:00
Kconfig
Makefile
memalloc.c
memory.c
misc.c sound: use printk_get_level and printk_skip_level 2012-07-30 17:25:14 -07:00
pcm_compat.c
pcm_lib.c ALSA: pcm: Make constraints lists const 2012-07-05 14:19:39 +02:00
pcm_memory.c
pcm_misc.c ALSA: pcm: Add snd_pcm_rate_bit_to_rate() 2012-06-18 09:38:58 +02:00
pcm_native.c ALSA: pcm - Add proper state checks to snd_pcm_drain() 2012-05-21 12:03:54 +02:00
pcm_timer.c
pcm.c The following text was taken from the original review request: 2012-03-24 10:41:37 -07:00
rawmidi_compat.c
rawmidi.c
rtctimer.c
sgbuf.c ALSA: PCM: Fix possible memory leaks in the error path 2012-08-03 12:48:32 +02:00
sound_oss.c ALSA: Fix the card number limit of OSS-emulation 2012-05-08 17:25:56 +02:00
sound.c
timer_compat.c
timer.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
vmaster.c ALSA: fix core/vmaster.c kernel-doc warning 2012-04-18 07:56:15 +02:00