07 Jan, 2009
1 commit
-
Several subsystem open handlers dereference the fops_get() return value
without checking it for nullness. This opens a race condition between the
open handler and module unloading.A module can be marked as being unloaded (MODULE_STATE_GOING) before its
exit function is called and gets the chance to unregister the driver.
During that window open handlers can still be called, and fops_get() will
fail in try_module_get() and return a NULL pointer.This change checks the fops_get() return value and returns -ENODEV if NULL.
Reported-by: Alan Jenkins
Signed-off-by: Laurent Pinchart
Acked-by: Takashi Iwai
Cc: Al Viro
Cc: Dave Airlie
Acked-by: Mauro Carvalho Chehab
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
31 Dec, 2008
1 commit
-
…l/git/tip/linux-2.6-tip
* 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
hrtimers: fix warning in kernel/hrtimer.c
x86: make sure we really have an hpet mapping before using it
x86: enable HPET on Fujitsu u9200
linux/timex.h: cleanup for userspace
posix-timers: simplify de_thread()->exit_itimers() path
posix-timers: check ->it_signal instead of ->it_pid to validate the timer
posix-timers: use "struct pid*" instead of "struct task_struct*"
nohz: suppress needless timer reprogramming
clocksource, acpi_pm.c: put acpi_pm_read_slow() under CONFIG_PCI
nohz: no softirq pending warnings for offline cpus
hrtimer: removing all ur callback modes, fix
hrtimer: removing all ur callback modes, fix hotplug
hrtimer: removing all ur callback modes
x86: correct link to HPET timer specification
rtc-cmos: export second NVRAM bankFixed up conflicts in sound/drivers/pcsp/pcsp.c and sound/core/hrtimer.c
manually.
25 Dec, 2008
5 commits
19 Dec, 2008
1 commit
18 Dec, 2008
1 commit
-
Replace all tasklet_hi_schedule() callers with the normal
tasklet_schedule(). The former often causes troubles with
RT-kernels, and has actually no merit.Signed-off-by: Takashi Iwai
10 Dec, 2008
1 commit
-
Some systems support both mechanical and electrical jack detection,
allowing them to report that a jack is physically present but does
not have any functioning connections. Add a new jack type for these,
allowing user space to report faulty connections.Thanks to Guillem Jover for the suggestion.
Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
08 Dec, 2008
2 commits
-
Use the hard-irq mode for the callback (for possible removal of
soft-irq mode in future).Signed-off-by: Takashi Iwai
-
Add the license and misc comments at the beginning of the code.
Also, use ns_to_ktime() for simplification.Signed-off-by: Takashi Iwai
26 Nov, 2008
1 commit
-
Conflicts:
sound/drivers/pcsp/pcsp_lib.c
19 Nov, 2008
1 commit
-
Do not ignore the return of 'device_create_file' in
'snd_card_register' and thereby fixing the following warnings:sound/core/init.c: In function 'snd_card_register':
sound/core/init.c:640: warning: ignoring return value of
'device_create_file', declared with attribute warn_unused_result
sound/core/init.c:641: warning: ignoring return value of
'device_create_file', declared with attribute warn_unused_resultSigned-off-by: Hannes Eder
Signed-off-by: Takashi Iwai
13 Nov, 2008
1 commit
-
Signed-off-by: Jaroslav Kysela
Signed-off-by: Takashi Iwai
12 Nov, 2008
1 commit
-
For udev, we need a way to rename soundcard names. The soundcard numbers
(indexes) are hardwired but we have a text identification which can be
changed at run-time. The ALSA user space tools already allow using of
this text identification.Signed-off-by: Jaroslav Kysela
Signed-off-by: Takashi Iwai
07 Nov, 2008
1 commit
04 Nov, 2008
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
ALSA: hda: make a STAC_DELL_EQ option
ALSA: emu10k1 - Add more invert_shared_spdif flag to Audigy models
ALSA: hda - Add a quirk for another Acer Aspire (1025:0090)
ALSA: remove direct access of dev->bus_id in sound/isa/*
sound: struct device - replace bus_id with dev_name(), dev_set_name()
ALSA: Fix PIT lockup on some chipsets when using the PC-Speaker
ALSA: rawmidi - Add open check in rawmidi callbacks
ALSA: hda - Add digital-mic for ALC269 auto-probe mode
ALSA: hda - Disable broken mic auto-muting in Realtek codes
03 Nov, 2008
2 commits
-
The drivers (e.g. mtpav) may call rawmidi functions in irq handlers
even though the streams are not opened. This results in Oops or panic.This patch adds the rawmidi state check before actually operating the
rawmidi buffers.Tested-by: Ingo Molnar
Signed-off-by: Takashi Iwai
02 Nov, 2008
1 commit
-
As it is, all instances of ->release() for files that have ->fasync()
need to remember to evict file from fasync lists; forgetting that
creates a hole and we actually have a bunch that *does* forget.So let's keep our lives simple - let __fput() check FASYNC in
file->f_flags and call ->fasync() there if it's been set. And lose that
crap in ->release() instances - leaving it there is still valid, but we
don't have to bother anymore.Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
31 Oct, 2008
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
ALSA: ASoC: Fix WM9713 ALC Decay Time name
ALSA: ASoC: Fix some minor errors in mpc5200 psc i2s driver
ALSA: ASoC: Fix mono controls after conversion to support full int masks
ALSA: sound/ice1712: indentation & braces disagree - add braces
ALSA: usb - Add quirk for Edirol UA-25EX advanced modes
sound: struct device - replace bus_id with dev_name(), dev_set_name()
ALSA: hda - Add reboot notifier
ALSA: Warn when control names are truncated
ALSA: intel8x0 - add Dell Optiplex GX620 (AD1981B) to AC97 clock whitelist
ALSA: hda - Fix SPDIF mute on IDT/STAC codecs
ALSA: hda: Add HDA vendor ID for Wolfson Microelectronics
ALSA: hda - Add another HP model for AD1884A
29 Oct, 2008
3 commits
-
The previous commit bbaf5e97337287479eb78dbc3822d9560bbfd2e2 has
an obvious typo. Fixed now.Signed-off-by: Takashi Iwai
-
This is likely to confuse user interfaces since the end of the control
name is interpreted (eg, "Volume", "Switch").Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
27 Oct, 2008
3 commits
-
This patch introduces support for reporting SW_LINEOUT_INSERT detection events
via the jack abstraction layer.Also adds a SND_JACK_LINEOUT define to the input system header.
Signed-off-by: Matthew Ranostay
Cc: Dmitry Torokhov
Acked-by: Mark Brown
Signed-off-by: Takashi Iwai -
This patch duplicates the jack->id pointer with kstrdup() to prevent
scoping issues from calling autoprobing functions from the HDA section.Signed-off-by: Matthew Ranostay
Acked-by: Mark Brown
Signed-off-by: Takashi Iwai
25 Oct, 2008
1 commit
-
Added the hrtimer backend for ALSA timer interface.
It can be used for the sequencer timer source.Signed-off-by: Takashi Iwai
21 Oct, 2008
1 commit
-
Signed-off-by: Al Viro
20 Oct, 2008
1 commit
-
…taging-fixes' into for-linus
18 Oct, 2008
2 commits
-
Fix alsa kernel-doc warning in linux-next:
Warning(linux-next-20081016//sound/core/pcm_misc.c:327): No description found for parameter 'samples'
Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai -
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
ALSA: Fix debugfs_create_dir's error checking method for sound/soc/
ALSA: ASoC: Convert playpaq_wm8510 to bulk route registration API
ALSA: kernel docs: fix sound/core/ kernel-doc
ALSA: Handle NULL jacks in snd_jack_report()
ALSA: hda - Fix PCM type of Nvidia HDMI devices
17 Oct, 2008
1 commit
-
Now that device_create() has been audited, rename things back to the
original call to be sane.Cc: Jaroslav Kysela
Signed-off-by: Greg Kroah-Hartman
16 Oct, 2008
3 commits
-
Use the new %pF for error messages in snd_device_*() functions
to give more understandable results.Signed-off-by: Takashi Iwai
-
Add kernel-doc function short descriptions to sound/core functions that
are missing this short description. Mostly this involves moving some of
the function description onto the @funcname line.Also correct a few variable names and fix other kernel-doc notation.
Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai -
Facilitate drivers that wish to carry on if they can't create a jack
input device by handling attempts to report the state of a NULL jack,
removing the need to check for initialisation before use.Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
12 Oct, 2008
1 commit
-
Conflicts:
sound/core/memalloc.c
10 Oct, 2008
1 commit
-
Added a note on the dependency of old RTC stuff, which is exclusive
with the new RTC class drivers.
http://bugme.linux-foundation.org/show_bug.cgi?id=11430Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
09 Sep, 2008
1 commit
-
The lock used in snd_ctl_dev_disconnect() should be card->ctl_files_rwlock
for protection of card->ctl_files entries, instead of card->controls_rwsem.Reported-by: Vegard Nossum
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela