24 Apr, 2008
15 commits
-
Define some MPU401 registers in sound/mpu401_uart.h so that other
drivers can refer to them.Signed-off-by: Takashi Iwai
-
Signed-off-by: Stas Sergeev
(fixed invalid KERN_WARNING by tiwai)
Signed-off-by: Takashi Iwai -
Added the proper dependency to Kconfig for snd-pcsp driver.
Signed-off-by: Takashi Iwai
-
bps is unsigned, a negative snd_pcm_format_width() return value is not noticed
Signed-off-by: Roel Kluin
Signed-off-by: Takashi Iwai -
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable sound
platform drivers, to re-enable auto loading.[dbrownell@users.sourceforge.net: more drivers, registration fixes]
Signed-off-by: Kay Sievers
Signed-off-by: David Brownell
Signed-off-by: Andrew Morton
Signed-off-by: Takashi Iwai -
pcsp: remove S16->U8 downsampling as dmix now supports U8 natively.
Signed-off-by: Stas Sergeev
Signed-off-by: Takashi Iwai -
sound/drivers/pcsp/pcsp.c: In function 'snd_pcsp_create':
sound/drivers/pcsp/pcsp.c:54: error: 'loops_per_jiffy' undeclared (first use in\ this function)
sound/drivers/pcsp/pcsp.c:54: error: (Each undeclared identifier is reported on\ ly once
sound/drivers/pcsp/pcsp.c:54: error: for each function it appears in.)Signed-off-by: Mariusz Kozlowski
Signed-off-by: Andrew Morton
Signed-off-by: Takashi Iwai -
We want to have snd_card_set_dev() in _probe(), but not a second one in
snd_ml403_ac97cr_create().Signed-off-by: Joachim Foerster
Signed-off-by: Takashi Iwai -
pcsp: locking fix.
Signed-off-by: Stas Sergeev
Signed-off-by: Takashi Iwai -
Simplify init code.
Signed-off-by: Stas Sergeev
Signed-off-by: Takashi Iwai -
- make pcsp_start_timer_tasklet static
- remove redundant includes. is not available on all platforms.Signed-off-by: Stas Sergeev
Signed-off-by: Takashi Iwai -
Added PC-speaker sound driver (snd-pcsp).
Signed-off-by: Stas Sergeev
Signed-off-by: Takashi Iwai -
when the time interval for a period is smaller than kernel HZ, then
snd-aloop and snd-dummy cannot call snd_pcm_period_elapsed as fast enough
annymore. this happens for example with games. but the app still needs to
see, that the buffer actually did go further, which is provided by these
patches.Signed-off-by: Ahmet İnan mathematik.uni-freiburg.de>
Signed-off-by: Takashi Iwai -
Reduce the number of times to check for a non-empty Tx FIFO from 100 to
2 because there is no MPU-401 implementation that needs more than one or
two reads to determine the actual FIFO status.Signed-off-by: Clemens Ladisch
-
Signed-off-by: Ahmet İnan mathematik.uni-freiburg.de>
Signed-off-by: Takashi Iwai
23 Feb, 2008
1 commit
-
Add proper ifdef's to the patch loading code moved from the old instr
layer so that opl3 driver can be compiled without the sequencer support.Signed-off-by: Takashi Iwai
Signed-off-by: Linus Torvalds
01 Feb, 2008
12 commits
-
Fix section mismatches in mts64 by making a static variable __devinitdata.
WARNING: vmlinux.o(.data+0x2e33f0): Section mismatch: reference to .init.data:mts64_ctl_smpte_switch (between 'control.19929' and 'snd_mts64_rawmidi_output_ops')
WARNING: vmlinux.o(.data+0x2e33f8): Section mismatch: reference to .init.data:mts64_ctl_smpte_time_hours (between 'control.19929' and 'snd_mts64_rawmidi_output_ops')
WARNING: vmlinux.o(.data+0x2e3400): Section mismatch: reference to .init.data:mts64_ctl_smpte_time_minutes (between 'control.19929' and 'snd_mts64_rawmidi_output_ops')
WARNING: vmlinux.o(.data+0x2e3408): Section mismatch: reference to .init.data:mts64_ctl_smpte_time_seconds (between 'control.19929' and 'snd_mts64_rawmidi_output_ops')
WARNING: vmlinux.o(.data+0x2e3410): Section mismatch: reference to .init.data:mts64_ctl_smpte_time_frames (between 'control.19929' and 'snd_mts64_rawmidi_output_ops')
WARNING: vmlinux.o(.data+0x2e3418): Section mismatch: reference to .init.data:mts64_ctl_smpte_fps (between 'control.19929' and 'snd_mts64_rawmidi_output_ops')Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
This header file exists only for some hacks to adapt alsa-driver
tree. It's useless for building in the kernel. Let's move a few
lines in it to sound/core.h and remove it.
With this patch, sound/driver.h isn't removed but has just a single
compile warning to include it. This should be really killed in
future.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
The functions time_before, time_before_eq, time_after, and time_after_eq
are more robust for comparing jiffies against other values.
A simplified version of the semantic patch making this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
//
@ change_compare_np @
expression E;
@@
(
- jiffies = E
+ time_after_eq(jiffies,E)
|
- jiffies < E
+ time_before(jiffies,E)
|
- jiffies > E
+ time_after(jiffies,E)
)
@ include depends on change_compare_np @
@@
#include
@ no_include depends on !include && change_compare_np @
@@
#include
+ #include
//Signed-off-by: Julia Lawall
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Signed-off-by: Joe Perches
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Added the missing call of snd_card_set_dev() in drivers/*
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Check the value ranges in ctl put callbacks properly (in the rest drivers).
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Check the value ranges in ctl put callbacks in vxpocket driver.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
We have to do fairly accurate counting of the minimal periods, instead
of being lazy and just setting the number to zero as soon as one period
elapses.Signed-off-by: Joachim Foerster
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Add ALSA support for the opb_ac97_controller_ref_v1_00_a ip core found
in Xilinx' ML403 reference design.
Known issue: Currently this driver hits a WARN_ON_ONCE(1) statement in
kernel/irq/resend.c (line 70). According to Linus
(http://lkml.org/lkml/2007/8/5/5) this may be ignored, right? I haven't
had a look into this 'problem' yet.Signed-off-by: Joachim Foerster
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
I applied a wrong patch for 'opl3 - simplify exclusive access lock'.
Fixed now.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Use the exclusive access lock in hwdep instead of the own one.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Use the hwdep device for loading OPL2/3 patch data instead of the
messy sequencer instrument layer.
Due to this change, the sbiload program should be updated, too.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
21 Nov, 2007
1 commit
-
Reported by Ingo Molnar,
when booting an allyesconfig bzImage kernel the bootup hangs in the
portman2x4 driver (on a box that does not have this hardware), at:
Pid: 1, comm: swapper
EIP: 0060:[] CPU: 0
EIP is at parport_pc_read_status+0x4/0x8
EFLAGS: 00000202 Not tainted (2.6.23-rc9 #904)
EAX: f7e57a7f EBX: 00000010 ECX: c2b808c0 EDX: 00000379
ESI: f7cb8230 EDI: 00000010 EBP: f7cb8230 DS: 007b ES: 007b FS: 0000
CR0: 8005003b CR2: fff9c000 CR3: 007ec000 CR4: 00000690
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400
[] portman_flush_input+0xde/0x12c
[] snd_portman_probe+0x368/0x484
[] __device_attach+0x0/0x8
[] platform_drv_probe+0xc/0x10
[] driver_probe_device+0x74/0x194
[] klist_next+0x38/0x70
[] __device_attach+0x0/0x8
[] bus_for_each_drv+0x35/0x68
[] device_attach+0x72/0x78
the reason is due to an inconsistent error return code of 1 or 2, while
snd_portman_probe only realizes negative error codes.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
20 Nov, 2007
1 commit
-
When the output and input ports are used at the same time, the timer can
be interrupted by the hardware interrupt, so we have to disable
interrupts when we take a lock in the timer.Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela
24 Oct, 2007
1 commit
-
None of the drivers with a struct pardevice's ->irq_func() hook ever
used the 'irq' argument passed to it, so remove it.Signed-off-by: Jeff Garzik
20 Oct, 2007
1 commit
-
Fix the various misspellings of "system", controller", "interrupt" and
"[un]necessary".Signed-off-by: Robert P. J. Day
Signed-off-by: Adrian Bunk
16 Oct, 2007
5 commits
-
Signed-off-by: Jaroslav Kysela
-
Since the last patch made the ENTER_UART command optional, the
enter_uart option and its corresponding flag have become superfluous.
The uart_enter option remains for backward compatibility but just prints
a warning when used.Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela -
The original MPU-401 does not send an ACK byte after processing the
ENTER_UART command, so we better do not try to wait for it.
Many clones get this wrong and do send an ACK, but when interpreting it
as MIDI, it is just a harmless Active Sensing message, and it is likely
to be read and discarded by the interrupt handler before the MIDI input
device is triggered.Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela -
Clean up Makefile using xxx- style instead of
ifeq(CONFIG_XXX,y).Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Clean up codes using the new common snd_ctl_boolean_*_info() callbacks.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
20 Jul, 2007
3 commits
-
FIx section mismatch when CONFIG_HOTPLUG=n:
WARNING: sound/built-in.o(.exit.text+0x271): Section mismatch: reference to .init.text:snd_p
ortman_unregister_all (between 'snd_portman_module_exit' and 'alsa_mpu401_uart_exit')Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Something about __init_or_module isn't working as expected (?).
CONFIG_HOTPLUG=y
CONFIG_MODULES=n
Fix shared init/exit code helper:
WARNING: sound/built-in.o(.exit.text+0x243): Section mismatch: reference to .init.text: (between 'alsa_card_mpu401_exit' and 'ac97_bus_exit')
WARNING: sound/built-in.o(.exit.text+0x21b): Section mismatch: reference to .init.text: (between 'alsa_card_dummy_exit' and 'alsa_card_serial_exit')Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Fix shared init/exit function attributes:
WARNING: sound/built-in.o(.exit.text+0x4a1): Section mismatch: reference to .init.text: (between 'alsa_card_virmidi_exit' and 'alsa_card_serial_exit')
WARNING: sound/built-in.o(.exit.text+0x4c1): Section mismatch: reference to .init.text: (between 'alsa_card_serial_exit' and 'ac97_bus_exit')Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela