Age | Commit message (Collapse) | Author |
|
From: Adrian Bunk <bunk@kernel.org>
The saa7134-oss is deprecated for quite some time, it's the only remaining OSS
user outside of sound/oss/, and considering how few and what kind of
soundcards are left supported by OSS I hardly see any use cases left.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
A couple loops weren't changed because they expected the loop iterator
to be left as NULL if the list was empty. Maybe the code should just
check for that first, then loop?
Adjust some of the loop logic to be simpler.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Since at least kernel 2.6.12-rc2, module.h includes moduleparm.h. This
patch removes all occurences of moduleparm.h from drivers/media files.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Backport a kernel patch by Arjan van de Ven <arjan@linux.intel.com>
that made all file_operations instances const.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
Kernel-sync:
This patch is required to allow compilation of the tree with kernel
2.6.19.
This is the original description of the original patch, signed by
David Howells <dhowells@redhat.com>:
Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
of passing regs around manually through all ~1800 interrupt handlers in the
Linux kernel.
The regs pointer is used in few places, but it potentially costs both stack
space and code to pass it around. On the FRV arch, removing the regs parameter
from all the genirq function results in a 20% speed up of the IRQ exit path
(ie: from leaving timer_interrupt() to leaving do_IRQ()).
Where appropriate, an arch may override the generic storage facility and do
something different with the variable. On FRV, for instance, the address is
maintained in GR28 at all times inside the kernel as part of general exception
handling.
Having looked over the code, it appears that the parameter may be handed down
through up to twenty or so layers of functions. Consider a USB character
device attached to a USB hub, attached to a USB controller that posts its
interrupts through a cascaded auxiliary interrupt controller. A character
device driver may want to pass regs to the sysrq handler through the input
layer which adds another few layers of parameter passing.
I've build this code with allyesconfig for x86_64 and i386. I've runtested the
main part of the code on FRV and i386, though I can't test most of the drivers.
I've also done partial conversion for powerpc and MIPS - these at least compile
with minimal configurations.
This will affect all archs. Mostly the changes should be relatively easy.
Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
struct pt_regs *old_regs = set_irq_regs(regs);
And put the old one back at the end:
set_irq_regs(old_regs);
Don't pass regs through to generic_handle_irq() or __do_IRQ().
In timer_interrupt(), this sort of change will be necessary:
- update_process_times(user_mode(regs));
- profile_tick(CPU_PROFILING, regs);
+ update_process_times(user_mode(get_irq_regs()));
+ profile_tick(CPU_PROFILING);
I'd like to move update_process_times()'s use of get_irq_regs() into itself,
except that i386, alone of the archs, uses something other than user_mode().
Some notes on the interrupt handling in the drivers:
(*) input_dev() is now gone entirely. The regs pointer is no longer stored in
the input_dev struct.
(*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
something different depending on whether it's been supplied with a regs
pointer or not.
(*) Various IRQ handler function pointers have been moved to type
irq_handler_t.
Signed-Off-By: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Adrian Bunk <bunk@stusta.de>
Two different exports with the same name are not a good idea:
$ grep -r EXPORT_SYMBOL\(dmasound_init\) *
drivers/media/video/saa7134/saa7134-core.c:EXPORT_SYMBOL(dmasound_init);
sound/oss/dmasound/dmasound_core.c:EXPORT_SYMBOL(dmasound_init);
$
This patch renames the saa7134 dmasound_{init,exit} to
saa7134_dmasound_{init,exit}.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
merge:
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Video_buf were concerned to allow PCI devices to be used as
video capture devices. This patch extends video_buf features
by virtualizing pci-dependent functions and allowing other
type of devices to use it.
It is still DMA centric, although it may be used also by
devices that emulates scatter/gather behavior or a DMA device
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Kernel-sync from patch 3318b
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
- Now, all internal ioctls are at v4l2-common.h
- removed unused ioctl at saa6752hs.h
- all debug ioctl code moved to v4l2-common.c
- removed duplicated stuff from other cards
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
kernel-sync.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
From: Ricardo Cerqueira <v4l@cerqueira.org>
Replaced module_init() with late_initcall() so sound core can be loaded
before these modules, to prevent an oops when booting with them statically
compiled into the kernel.
Signed-off-by:
|
|
From: Ricardo Cerqueira <v4l@cerqueira.org>
When ALSA or OSS are loaded, check if the other is present
Fixed hotplug notifiers cleanup on module removal
Signed-off-by:
|
|
kernel-sync
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
kernel-sync
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
From: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
From: Ricardo Cerqueira <v4l@cerqueira.org>
- Fixed issue with hotplugging and DMA sound (sound was lost when replugging
a card)
- Added notifiers to main saa7134 module to let the sound sub-modules know
when a card has been inserted or removed
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
From: Tyler Trafford <tatrafford@comcast.net>
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
From:
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
From: Tyler Trafford <tatrafford@comcast.net>
Change default filename of firmware image to 'cx25840.fw'
Signed-off-by: Tyler Trafford <tatrafford@comcast.net>
|
|
From: Arnd Bergmann <arnd@arndb.de>
This moves the 32 bit ioctl compatibility handlers for
Video4Linux into a new file and adds explicit calls to them
to each v4l device driver.
Unfortunately, there does not seem to be any code handling
the v4l2 ioctls, so quite often the code goes through two
separate conversions, first from 32 bit v4l to 64 bit v4l,
and from there to 64 bit v4l2. My patch does not change
that, so there is still much room for improvement.
Also, some drivers have additional ioctl numbers, for
which the conversion should be handled internally to
that driver.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
From:
- saa7134-oss is now a standalone module as well
- remaining DMA sound code has been removed from core the module
- Lots of small cleanups and variable renames to get more consistency
between the OSS and ALSA drivers
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
reflect the fact that it is common to both OSS and ALSA
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
- Whitespace script improved.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
* saa7134-alsa.c: (saa7134_dma_stop), (saa7134_dma_start),
(saa7134_irq_alsa_done), (snd_card_saa7134_capture_trigger),
(dsp_buffer_conf), (dsp_buffer_init),
(snd_card_saa7134_pcm_prepare), (snd_card_saa7134_capture_prepare),
(snd_card_saa7134_pointer), (snd_card_saa7134_capture_pointer),
(snd_card_saa7134_runtime_free), (snd_card_saa7134_hw_params),
(snd_card_saa7134_hw_free), (dsp_buffer_free), (saa7134_cap_close),
(saa7134_cap_open), (snd_card_saa7134_capture_open),
(snd_card_saa7134_capture_close), (snd_card_saa7134_pcm),
(snd_saa7134_volume_info), (snd_saa7134_volume_get),
(snd_saa7134_volume_put), (snd_saa7134_capsrc_info),
(snd_saa7134_capsrc_get), (snd_saa7134_capsrc_put),
(snd_card_saa7134_new_mixer), (snd_saa7134_free),
(snd_saa7134_dev_free), (alsa_card_saa7134_create),
(alsa_card_saa7134_exit):
* saa7134-core.c: (saa7134_irq), (saa7134_initdev),
(saa7134_finidev):
* saa7134-oss.c: (dsp_rec_start):
* saa7134-reg.h:
* saa7134.h:
- Alsa support for saa7134 that should work. Wonderful
patch from Ricardo.
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
- Removed remaining trailing spaces.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
* lgdt3302.c, lgdt3302_priv.h, or51132.c:
* saa7134-cards.c, saa7134-core.c:
* saa7134-dvb.c, saa7134-i2c.c, saa7134-oss.c:
* saa7134-tvaudio.c, saa7134-video.c:
* tda8290.c, tea5767.c, tuner-simple.c:
- Clean up ALL whitespace using
scripts/strip-trailing-whitespaces.sh
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
|
|
- some pinnacle 300i progress (can talk to mt352 now, not working yet
through).
- misc minor stuff.
|
|
- ir support for Compro Videomate by Michael Mellor.
|
|
- move more modules to new-style insmod options.
|
|
|
|
|
|
- cx88: doc update.
|
|
|
|
- saa7134: adapt sync_control bits when the signal comes and goes away.
|
|
- video-buf: add sanity checks (thanks to Laurent Pinchart).
- saa7133: fix off-by-one bug for oss sound recording.
|
|
less sensitive to IRQ latencies.
- saa7134: new card added, minor saa7133 fixes (by toshii@netbsd.org).
|
|
|
|
- add magics to video-buf structs.
- fix saa7134 oss driver spinlocks.
- misc minor stuff.
|
|
|