aboutsummaryrefslogtreecommitdiffstats
path: root/sound
AgeCommit message (Collapse)AuthorFilesLines
2005-01-13Merge suse.cz:/home/perex/bk/linux-sound/linux-2.5Jaroslav Kysela9-103/+77
into suse.cz:/home/perex/bk/linux-sound/linux-sound
2005-01-12[ALSA] Add ac97_quirk optionJaroslav Kysela1-3/+10
Documentation,ATIIXP driver Added ac97_quirk option like intel and via drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Fix ctl_read/write ioctl wrappersJaroslav Kysela1-74/+15
IOCTL32 emulation Fixed bugs with ctl_read/write ioctls. The struct size mismatch due to alignment is fixed. The code is also a bit optimized. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Fix DMA pointer readJaroslav Kysela1-12/+11
ATIIXP driver Try to reread DMA pointer register if the value is invalid. The register shows bogus values on some broken hardwares. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Add suspend callbackJaroslav Kysela1-0/+2
AC97 Codec Core Add suspend callback for each codec patch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Remove & from function pointersJaroslav Kysela1-2/+2
AC97 Codec Core Remove & from function pointers (it works but not common to add it...) Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Adapt SPDIF Input selection for Realtek ALC658Jaroslav Kysela1-1/+4
AC97 Codec Core This fixes the SPDIF Input selection for ALC658 as Realtek has changed the meaning betweenALC655 and ALC658. Signed-off-by: Stefan Macher <Stefan.Macher@web.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Fix Oops at resumeJaroslav Kysela1-4/+10
AC97 Codec Core Fixed Oops at resume on certain codecs. Set null ops when no patch exists or the patch doesn't set build_ops. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] remove compatibility code for 2.2.x kernelsJaroslav Kysela2-2/+0
CA0106 driver Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-01-12[ALSA] Add quirk for HP zv5000Jaroslav Kysela1-0/+6
Intel8x0 driver Added the quirk for HP zv5000 (mute LED with EAPD). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Fix float format supportJaroslav Kysela1-2/+2
MIXART driver Fixed typos in float format support. Signed-off-by: Markus Bollinger<bollinger@digigram.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] ac97 quirk entries for HP xw6200 & xw8000Jaroslav Kysela1-1/+13
Intel8x0 driver Add AC97 quick list entries to snd-intel8x0 for HP xw6200 and xw8000. Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-12[ALSA] Fix ioctl argumentsJaroslav Kysela1-2/+2
RawMidi Midlevel Fixed the wrong pointer types passed to get_user() for DROP and DRAIN ioctls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-11[PATCH] pcmcia: remove client_attributesDominik Brodowski2-2/+0
Remove the "Attributes" entry of struct client_t -- _all_ in-kernel drivers did set it to INFO_IO_CLIENT | INFO_CARD_SHARE anyway, and the pcmcia core didn't care at all what this value was set to. Also, remove the setting of the respective request field in all in-kernel drivers -- the request structure is kept the same, though, to keep external drivers compiling. Signed-off-by: Dominik Brodowski <linux@brodo.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-11[PATCH] pcmcia: BUG on dev_list != NULLDominik Brodowski4-22/+2
All in-kernel PCMCIA devices do unregister their client in their respective ->detach() function after a REMOVAL event. So, AFAICS, the dev_list iteration should always be false. Signed-off-by: Dominik Brodowski <linux@brodo.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-09Merge kroah.com:/home/greg/linux/BK/bleed-2.6Greg Kroah-Hartman6-43/+53
into kroah.com:/home/greg/linux/BK/usb-2.6
2005-01-08Merge bk://gkernel.bkbits.net/misc-2.6Linus Torvalds67-567/+634
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2005-01-07[PATCH] OSS: misc cleanupsAdrian Bunk43-284/+191
The patch below contains cleanups under sound/oss/ including the following: - make needlessly global code static - kill cs4232.h (it contained two function prototypes: one is now static and the other one was already stale) - removed the following unused global functions: - cs4232.c: init_cs4281 - emu10k1/hwaccess.c: sumVolumeToAttenuation - emu10k1/hwaccess.c: emu10k1_set_stop_on_loop - sb_common.c: sb_dsp_disable_midi - sb_common.c: sb_dsp_disable_recording - wavfront.c: attach_wffx - cs46xx.c: #ifndef CS46XX_ACPI_SUPPORT cs46xx_pm_callback - emu10k1/hwaccess.c: #ifdef DBGEMU emu10k1_writefn0_2 - opl3sa2.c: remove the unused struct opl3sa2_dev - removed the following unused EXPORT_SYMBOL's: - ac97.c: ac97_set_mixer - ac97.c: ac97_get_register - ac97.c: ac97_get_mixer_scaled - sb_common.c: sb_dsp_disable_midi Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] OSS: remove unused functionsAdrian Bunk4-53/+0
The patch below removes some unused functions from OSS. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] MODULE_PARM conversionsAndrew Morton33-211/+211
Rusty Russell <rusty@rustcorp.com.au> MODULE_PARM conversions for x86 `allyesconfig'. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] MODULE_PARM conversionsAndrew Morton1-2/+2
Rusty Russell <rusty@rustcorp.com.au> MODULE_PARM conversions for x86 `allmodconfig'. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] oss: AC97 quirk facilityJohn W. Linville2-0/+213
Add a quirk facility for AC97 in OSS, and add a quirk list for the i810_audio driver. This allows automatically "correct" behaviour for sound hardware w/ known oddities. For example, many cards have the headphone and line-out outputs swapped or headphone outputs only. The code is stolen shamelessly from ALSA, FWIW... Signed-off-by: John W. Linville <linville@tuxdriver.com> From: William Lee Irwin III <wli@holomorphy.com> include/linux/ac97_codec.h:337: warning: `struct pci_dev' declared inside parameter list Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] btaudio module_param conversionJan Dittmer1-9/+9
btaudio module_param conversion Signed-off-by: Jan Dittmer <jdittmer@ppp0.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] Lock initializer unifying: soundThomas Gleixner4-8/+8
To make spinlock/rwlock initialization consistent all over the kernel, this patch converts explicit lock-initializers into spin_lock_init() and rwlock_init() calls. Currently, spinlocks and rwlocks are initialized in two different ways: lock = SPIN_LOCK_UNLOCKED spin_lock_init(&lock) rwlock = RW_LOCK_UNLOCKED rwlock_init(&rwlock) this patch converts all explicit lock initializations to spin_lock_init() or rwlock_init(). (Besides consistency this also helps automatic lock validators and debugging code.) The conversion was done with a script, it was verified manually and it was reviewed, compiled and tested as far as possible on x86, ARM, PPC. There is no runtime overhead or actual code change resulting out of this patch, because spin_lock_init() and rwlock_init() are macros and are thus equivalent to the explicit initialization method. That's the second batch of the unifying patches. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] request_irq: avoid slash in proc directory entriesOlaf Hering1-1/+1
A few users of request_irq pass a string with '/'. As a result, ls -l /proc/irq/*/* will fail to list these entries. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-06mergeGreg Kroah-Hartman6-43/+53
2005-01-06[PATCH] OSS via82cxxx_audio.c: remove unused CONFIG_SOUND_VIA82CXXX_PROCFS codeAdrian Bunk1-217/+1
> >How else is this information available? > > lspci. it's just a verbose dump of PCI config registers. Sounds reasonable. Below is a patch to remove the CONFIG_SOUND_VIA82CXXX_PROCFS code. diffstat output: sound/oss/via82cxxx_audio.c | 218 ------------------------------------ 1 files changed, 1 insertion(+), 217 deletions(-) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-01-04[ALSA] Print values at errorsJaroslav Kysela1-2/+2
EMU10K1/EMU10K2 driver Print out the invalid values at resource allocation errors, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Don't probe sample rates on non-VRA chipsJaroslav Kysela4-0/+6
ES1968 driver,CA0106 driver,EMU10K1/EMU10K2 driver Don't probe sample rates on chips which need no VRA. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Add codec id in component namesJaroslav Kysela1-2/+6
AC97 Codec Core Added codec id number to the component names. The component becomes like 'AC97a:12345678'. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Fix C-Media codecsJaroslav Kysela2-3/+25
AC97 Codec Core Don't create PCM (and Master for CM9739/9761) volume controls for some of C-Media codecs. The volume is supposed to be controlled via softvol plugin. The wrong (duble) entry for a CM9761 model is removed, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Add a DXS entry for ABIT VA-20Jaroslav Kysela1-0/+1
VIA82xx driver Added a DXS whitelist entry for ABIT VA-20. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Fix NULL pointer accessJaroslav Kysela1-1/+1
MIXART driver Fixed NULL pointer access when id string isn't given. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Add a new IDJaroslav Kysela1-3/+4
CA0106 driver I attach a minor update that corrects the DMA mask, and adds an extra ID. This sound card can handle 32bit DMA addresses. Signed-off-by: James Courtier-Dutton <James@superbug.demon.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Clean up and fix stereo mutesJaroslav Kysela1-134/+86
AC97 Codec Core Clean up the build of controls. The volume resolution detection is unified. Fixed minor bugs to handle stereo mutes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-04[ALSA] Clean up handling of user-defined controlsJaroslav Kysela1-21/+5
Control Midlevel Cleaned up the code to handle user-defined controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03Merge suse.cz:/home/perex/bk/linux-sound/linux-soundJaroslav Kysela142-1991/+8967
into suse.cz:/home/perex/bk/linux-sound/work
2005-01-03Merge suse.cz:/home/perex/bk/linux-sound/linux-2.5Jaroslav Kysela82-1080/+1622
into suse.cz:/home/perex/bk/linux-sound/linux-sound
2005-01-03[ALSA] Fix spinlockJaroslav Kysela2-2/+15
au88x0 driver Fixed possible spin deadlocks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add CODEC and BUS device typesJaroslav Kysela8-16/+15
OPL3,OPL4,I2C lib core,L3 drivers,AK4117 receiver,ALSA Core EMU8000 driver,AC97 Codec Core,AK4531 codec Added SNDRV_DEV_CODEC and SNDRV_DEV_BUS types to tell from the lowlevel components. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Remove superfluous codeJaroslav Kysela1-20/+0
USB USX2Y Removed the superfluous creation/deletion of lowlevel component. It's not used at all. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix the order of creation of instancesJaroslav Kysela11-76/+61
AZT3328 driver,CMIPCI driver,CS4281 driver,ENS1370/1+ driver Maestro3 driver,SonicVibes driver,CS46xx driver,KORG1212 driver NM256 driver,Trident driver,YMFPCI driver Make sure that the chip instance is created at first before other components. This will fix occasional oops at unloading due to the access to the released resources. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Clean up codesJaroslav Kysela5-73/+10
ALSA<-OSS emulation Got rid of the unused float codes (the legacy code for sharing with ALSA library). Add assert to the invalid conversion indices which results in oops (just to be sure). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix the release of resources at error pathJaroslav Kysela1-8/+19
Control Midlevel Implemented free callback to fix the release of control resources before calling register. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add hotplug firmware loader supportJaroslav Kysela1-5/+102
RME HDSP driver Added the hotplug firmware loader support without hdsploader. The firmware data must be installed beforehand in the proper place from the latest alsa-firmware package. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix compile warningJaroslav Kysela1-1/+0
EMU10K1/EMU10K2 driver Removed an unused variable to fix a compile warning. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix compile warning (make inline)Jaroslav Kysela1-2/+2
AZT3328 driver Fixed compile warning when built without joystick support. (Optimized via inline.) Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix open handlingJaroslav Kysela2-3/+7
USB USX2Y Return -EBUSY from snd_usX2Y_usbpcm_open(), if the associated hwdep device is not opened. It now works as originally intended. Had forgotten a pair of parenthesis. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA CVS] delete unused fileJaroslav Kysela1-110/+0
Remove nowhere referenced file. (egrep "filename\." didn't find anything) Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Code clean upJaroslav Kysela1-19/+6
EMU10K1/EMU10K2 driver Small code clean up. Use snd_pcm_lib_preallocage_pages_for_all() for buffer allocation. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Avoid VRA on codec chipsJaroslav Kysela1-0/+5
YMFPCI driver Avoid VRA setting on ac97 codec chips. YMFPCI doesn't need VRA. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add snd-ca0106 driverJaroslav Kysela7-0/+2907
Documentation,PCI drivers,CA0106 driver Added snd-ca0106 driver for SB Audigy LS / Live 24bit boards by James Courtier-Dutton <James@superbug.demon.co.uk>. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add emu10k1x driverJaroslav Kysela3-0/+1670
Documentation,PCI drivers,EMU10K1/EMU10K2 driver Added the new driver, snd-emu10k1x, for SB Live Dell OEM version by Francisco Moraes <fmoraes@nc.rr.com>. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Allow strings for ac97_quirk optionsJaroslav Kysela3-37/+77
AC97 Codec Core,Intel8x0 driver,VIA82xx driver Since there are many ac97_quirk values, the number is no longer good to remember what it really means. Now ac97_quirk option becomes as a string option, and more undstandable. For example, you can pass like 'ac97_quirk=hp_only'. The old number is still kept and parsed for backward compatibility. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix handling of user-defined controlsJaroslav Kysela1-32/+44
Control Midlevel,ALSA Core Fixed handling of user-defined controls. The max number of user-defined controls is limited, too (as default 32). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Don't probe rates when bus->no_vra is setJaroslav Kysela1-2/+12
AC97 Codec Core Don't probe rates and set VRA/VRM bits when bus->no_vra is set. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Use msleep() in ac97 callbacksJaroslav Kysela2-3/+3
CS46xx driver,NM256 driver Use msleep() instead of mdelay() in ac97 callbacks (spinlock was removed). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Spinlock removal and loop fixJaroslav Kysela1-17/+3
au88x0 driver Removed unnecessary spinlocks. The invalid (typo) loop in the codec read callback is fixed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix spinlocksJaroslav Kysela1-8/+7
FM801 driver Fixed the possible deadlock with no irq spinlock. Also, spin_lock_irqsave() is replaced with spin_lock_irq() in some places. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Remove unnecessary ac97 spinlocksJaroslav Kysela8-85/+17
ATIIXP driver,ATIIXP-modem driver,ENS1370/1+ driver,Intel8x0 driver Intel8x0-modem driver,Maestro3 driver,VIA82xx driver VIA82xx-modem driver Removed unnecessary spinlocks in ac97 callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Remove spinlock in callbacksJaroslav Kysela6-79/+81
AC97 Codec Core,AK4531 codec Removed spinlocks in callback, use sempahore instead since all ac97 callbacks are supposed to be non-atomic. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Unify ac97 control callbacksJaroslav Kysela3-106/+65
AC97 Codec Core Unified single_* and double_* control callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Replace long delays with msleep()Jaroslav Kysela1-13/+13
au88x0 driver Long udelay()'s are replaced with msleep() as much as possible. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix creation of control devices over udevJaroslav Kysela3-31/+35
Control Midlevel,ALSA Core Don't create control devices before the driver initialization finishes (ALSA BTS #742). The control device is now handled in the device list together with others (holding the card instance as the device pointer). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add mute LED quirkJaroslav Kysela2-0/+51
AC97 Codec Core,Intel8x0 driver A new quirk type, AC97_TUNE_MUTE_LED, is added for HP/Compaq laptops. With this quirk, the EAPD bit is used to control the mute LED in conjunction with the master mute switch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix compile warningJaroslav Kysela1-1/+1
Wavefront drivers Fixed compile warning regarding the sign of char. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix the wrong sign of format data entriesJaroslav Kysela1-4/+7
PCM Midlevel Fix suggested by Benjamin Herrenschmidt <benh@kernel.crashing.org> On architectures like PPC, char is handled as 'unsigned char', thus the pcm_format_data table entries with -1 give a positive 255. This causes Oops with OSS-emulation on such architectures. The patch simply adds the right signed/unsigned prefix to fix this problem. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix invalid 'AutoSync Reference' valueJaroslav Kysela1-1/+1
RME HDSP driver The value returned by controllers for control number 14 ('AutoSync Reference') is incorrect and different from that reported by doing a cat /proc/asound/card0/hdsp. The value reported is not 'AutoSync Reference' but 'Preferred Sync Reference' instead. Signed-off-by: Remy Bruno <remy.bruno@trinnov.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix the invalid DMA pointer valueJaroslav Kysela1-1/+2
PPC PMAC driver Fixed the bug returning invalid DMA pointer values. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix compilation errorsJaroslav Kysela2-10/+8
Digigram VX core,MIXART driver Fix compilation errors when built without hotplug fw loader. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix CMI9739A silent problemJaroslav Kysela2-1/+6
AC97 Codec Core Fix by Zinx Verituse <zinx@epicsol.org> The patch for cmi9739a is added. The undocumented unmute bits are enabled. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix interrupt generation on MIDI input for es1938 sound cardsJaroslav Kysela1-4/+11
ES1938 driver The patch ensures that a es1938 based sound card generates interrupts on incoming MIDI events. I tested the patch successfully on an ess Solo-1 in a AlphaPC UX/164. Signed-off-by: Andreas Feldner <pelzi@flying-snail.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Hotplug firmware loader supportJaroslav Kysela10-182/+410
Digigram VX core,MIXART driver,Digigram VX222 driver Digigram VX Pocket driver The hogplut fw loader is supported by vxpocket, vxp440, vx2222 and mixart drivers. The old ALSA fw loader is still supported for built-in kernels. To use the hotplug, the new firmware data must be installed beforehand from the latest alsa-tools package. The experimental suspend/resume for vxpocket, vxp440 and vx222 are added, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix memory corruptionJaroslav Kysela1-1/+1
Digigram VX core Fixed the memory corruption by the wrong sized kmalloc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Return -EBADFD when the device is disconnectedJaroslav Kysela1-1/+4
USB generic driver The trigger callback returns -EBADFD when the device is disconnected. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add volatile to IO pintersJaroslav Kysela1-2/+2
ALSA Core Add volatile prefix to IO pointers for copy_to_user_fromio() and copy_from_user_toio() functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] buffersize and constraints on pmacJaroslav Kysela1-4/+6
PPC PMAC driver Buffersize is a bit small compared to the OSS driver (dmasound.h says 128kb is limit for Amiga, for pmac 256kb is used) At least on Snapper, some samplerates cause choppy sound when periods<3 or buffersize is not a multiple of periodsize. Signed-off-by: Danny Tholen <obiwan@mailmij.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Export snd_ctl_elem_read/write() functionsJaroslav Kysela3-7/+4
Control Midlevel,ALSA Core,IOCTL32 emulation snd_ctl_elem_read() and snd_ctl_elem_write() functions are exported to be accessible from other kernel modules. They can be used for suspend/resume codes, for example. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Clean up power-managementJaroslav Kysela24-76/+53
Documentation,SA11xx UDA1341 driver,Control Midlevel,ALSA Core ES18xx driver,OPL3SA2 driver,AD1848 driver,CS4231 driver,ATIIXP driver ATIIXP-modem driver,CS4281 driver,ES1938 driver,ES1968 driver Intel8x0 driver,Intel8x0-modem driver,Maestro3 driver,VIA82xx driver VIA82xx-modem driver,ALI5451 driver,CS46xx driver,NM256 driver Trident driver,YMFPCI driver,Sound Core PDAudioCF driver PPC PMAC driver Clean up for PM code. snd_power_change() is called in the common routines instead of driver's callback. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Midiman Delta DIO2496 has two stereo analog outsJaroslav Kysela1-0/+3
ICE1712 driver Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-01-03[ALSA] [trivial] Fix compile warningJaroslav Kysela1-1/+0
Intel8x0 driver Fix compile warning abount unused variables. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix non-symmetrical page_attr changesJaroslav Kysela1-5/+25
Intel8x0 driver Fixed non-symmetrical calls of change_page_attr() which may cause BUG(). This bug happens only on 440MX. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add missing source codes in the last hwdep-pcm patch.Jaroslav Kysela2-0/+828
USB USX2Y The missing source files in the last hwdep-pcm patch are added. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] hwdep interface for pcm dataJaroslav Kysela6-5/+15
USB,USB USX2Y Implements 'rawusb' pcm data transfer through hwdep interface: The usb_hc moves pcm data from/into memory via DMA. That memory is mmaped by jack's usx2y driver. Jack's usx2y driver is the first/last executable code to read/write pcm data. Read/write is a combination of power of 2 period shaping and float/int conversation. Compared to standard alsa/jack we leave out power of 2 period shaping inside snd-usb-usx2y which needs memcpy() and additional buffers. As a side effect possible unwanted pcm-data coruption resulting of standard alsa's snd-usb-usx2y period shaping scheme falls away. Result is sane jack operation at buffering schemes down to 128frames, 2 periods. Also changed Kconfig file, so snd-usb-usx2y is only available for X86, PPC or ALPHA platforms, as on others DMA-memory isn't mmapable. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix detection of XboxJaroslav Kysela1-1/+2
AC97 Codec Core Unfortunately, on newer xboxes, the chip reports less info than before, making another change necessary - this change is backwards compatible, and doesn't break earlier xboxes, of course. The patch is originally from Ed Hucek <hostmaster@ed-soft.at>. Signed-off-by: David Pye <dmp@davidmpye.dyndns.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03ALSA CVS updateJaroslav Kysela1-2/+4
ENS1370/1+ driver Trivial patch to enable rear out selection for ens1373 on the Gigabyte GA-8IEXP motherboard. Signed-off-by: Andrew Dennison <andrew-lists@optusnet.com.au> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-01-03[ALSA] misc cleanupsJaroslav Kysela10-45/+15
OPL3,Digigram VX core,I2C cs8427,SoundFont,Common EMU synth The patch below contains the following changes in ALSA code not touched by my previous patches: - make some needlessly global code static - remove the following unused global functions: - sound/i2c/cs84: snd_cs8427_detect - sound/synth/emux/emux_synth.c: snd_emux_release_voice - sound/synth/emux/soundfont.: snd_soundfont_mem_used - remove the following unused EXPORT_SYMBOL's: - sound/i2c/cs8427.c: snd_cs8427_detect - sound/i2c/cs8427.c: snd_cs8427_reg_read Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Add 'Duplicate Front' controlJaroslav Kysela1-4/+35
CS46xx driver A new mixer control 'Duplicate Front' is added for the board with a single codec. This toggles the duplication of front signal to the rear speakers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] opl4 depends on opl3Jaroslav Kysela1-0/+1
OPL3 Compiling OPL4 doesn't include the snd-opl3-lib. This change in the Makefile enables now the compiling of snd-opl3-lib.o for OPL4 soundcards. Signed-off-by: Martin Langer <martin-langer@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Update user-space access from sscape driverJaroslav Kysela1-14/+13
Sound Scape driver I see that the copy_to/from_user() functions have been updated across Linux 2.4 and 2.6, and that verify_read/write() has been replaced by access_ok(). I have patched the SoundScape driver accordingly. Signed-off-by: Chris Rankin <rankincj@yahoo.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] disable legacy IRQs before request_irq() to avoid unhandled interruptsJaroslav Kysela1-3/+2
VIA82xx driver Signed-off-by: Christian Koerner <ckoerner@sysgo.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-01-03[ALSA] IEC958 Capture mixer controls and Universe supportJaroslav Kysela4-59/+458
ICE1712 driver,ICE1724 driver * Added SPI read routine * Added IEC958 Capture mixer controls * Improved Universe support * Headphone Amp renamed to External Amplifier * Fixed GPIO bug in Prodigy code (There is no GPIO23 on ICE1724) Signed-off-by: Peter Christensen <peter@developers.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix sleep in h/w volume controlJaroslav Kysela1-14/+23
ES1968 driver Fixed sleeps in h/w volume control tasklet. Also, msleep()s in ac97 accessor callbacks are removed since the chip works without such delays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Use macro usb_maxpacket() for portabilityJaroslav Kysela2-15/+17
USB USX2Y In future kernels struct usb_device won't have the epmaxpacketin/out members. Use macro usb_maxpacket() instead of directly accessing those members. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Remove the NULL pointer check in kfree/vfree wrappersJaroslav Kysela1-6/+2
ALSA Core The check of NULL pointer in kfree/vfree wrappers is removed. kfree() and vfree() accept NULL pointer. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Added VIA82xx-modem driverJaroslav Kysela3-0/+1278
Documentation,PCI drivers,VIA82xx-modem driver Added the VIA82xx AC97 modem driver by Sasha Khapyorsky <sashak@smlink.com>. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] ALSA core: misc cleanupsJaroslav Kysela21-214/+87
HWDEP Midlevel,ALSA Core,PCM Midlevel,RawMidi Midlevel ALSA<-OSS emulation,ALSA sequencer,ALSA<-OSS sequencer The patch below does the following cleanups under sound/core/ : - make needlessly global code static - remove the following stale prototypes from pcm.h (the functions are not or no longer present): - snd_pcm_capture_ready_jiffies - snd_pcm_playback_ready_jiffies - remove the following unused global functions: - oss/pcm_plugin.c: snd_pcm_plug_capture_channels_mask - seq/seq_instr.c: snd_seq_cluster_new - seq/seq_instr.c: snd_seq_cluster_free - move global to static inline functions - pcm_lib.c: snd_pcm_playback_ready - pcm_lib.c: snd_pcm_capture_ready - pcm_lib.c: snd_pcm_playback_empty - pcm_lib.c: snd_pcm_capture_empty - pcm_lib.c: snd_pcm_playback_data - remove the following unused EXPORT_SYMBOL's: - snd_create_proc_entry - snd_interval_ratden - snd_midi_channel_init - snd_midi_channel_init_set - snd_pcm_playback_empty - snd_pcm_capture_empty - snd_pcm_playback_data - snd_pcm_capture_poll - snd_pcm_playback_ready - snd_pcm_capture_ready - snd_pcm_format_size - snd_pcm_open - snd_pcm_playback_poll - snd_pcm_playback_ready - snd_pcm_release - snd_pcm_subformat_name - snd_remove_proc_entry Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] check __copy_to_user in sscape_upload_bootblock()Jaroslav Kysela1-1/+2
Sound Scape driver __copy_to_user() is called without checking its return value in sound/isa/sscape.c::sscape_upload_bootblock . Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] ifdef typos: sound_isa_es18xx.cJaroslav Kysela1-2/+2
ES18xx driver Changed CONFIG_PNP_ to CONFIG_PNP, also fixed a comment related to another CONFIG_PNP. Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] ifdef typos: sound_isa_cs423x_cs4231_lib.cJaroslav Kysela1-1/+1
CS4231 driver Funny typo. Acked-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix interface type for some mixer controlsJaroslav Kysela1-5/+5
RME96 driver The interface type of some basic mixer controls is changed from IFACE_PCM to IFACE_MIXER so that it can be accessed from mixer apps. Signed-off-by: Peter Chrisensen <peter@developers.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] Fix the interface type of mixer controlsJaroslav Kysela1-3/+3
RME32 driver The patch will change SNDRV_CTL_ELEM_IFACE_PCM to SNDRV_CTL_ELEM_IFACE_MIXER for some mixer elements of rme32. Signed-off-by: Martin Langer <martin-langer@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-01-03[ALSA] [trivial] Fix compilation warnings on 64bitJaroslav Kysela1-3/+3
SPARC cs4231 driver Fixed the compilation warnings about the pointer size. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-12-27Merge bk://gkernel.bkbits.net/misc-2.6Linus Torvalds3-12/+12
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-12-27Merge pobox.com:/garz/repo/linux-2.6 into pobox.com:/garz/repo/misc-2.6Jeff Garzik3-12/+12
2004-12-26[PATCH] i810 more AC97 tuningsAlan Cox1-0/+18
Add some more funky AC97 knowledge to the intel8x0 driver. These come from Red Hat and its partners and are included in our shipping code. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-21Merge kroah.com:/home/greg/linux/BK/bleed-2.6Greg Kroah-Hartman6-45/+61
into kroah.com:/home/greg/linux/BK/usb-2.6
2004-12-21[PATCH] alsa: fix oops with ALSA OSS emulation on PPCTakashi Iwai1-4/+7
Fix suggested by Benjamin Herrenschmidt <benh@kernel.crashing.org> On architectures like PPC, char is handled as "unsigned char", thus the pcm_format_data table entries with -1 give a positive 255. This results in Oops with OSS-emulation on such architectures. The patch simply adds the right signed/unsigned prefix to fix this problem. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-21[ALSA] Fix targets for GUS and OPL4Jaroslav Kysela1-0/+2
ALSA sequencer The the obj targets for GUS and OPL4 are fixed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-12-21[ALSA] Clean up of kfree()/vfree() NULL checksJaroslav Kysela37-148/+73
ALSA Core,PCM Midlevel,Memalloc module,Timer Midlevel,IOCTL32 emulation ALSA<-OSS emulation,ALSA sequencer,ALSA<-OSS sequencer,I2C cs8427 L3 drivers,GUS Library,EMU8000 driver,Wavefront drivers,Maestro3 driver AC97 Codec Core,ALI5451 driver,CS46xx driver,EMU10K1/EMU10K2 driver ICE1712 driver,Trident driver,YMFPCI driver,PPC PMAC driver Common EMU synth,USB generic driver,USB USX2Y I've cleaned up sound/ directory from 'if (x) {k/v}free(x);' and similar constructions. I'm going to to this for most of the kernel if I found some time. Signed-off-by: Marcel Sebek <sebek64@post.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-12-21[ALSA] Fix ioctl32 wrapper (for SPARC)Jaroslav Kysela7-451/+343
IOCTL32 emulation Fix ioctl32 wrapper design, using compat_alloc_user_space() now. This will fix the crash on SPARC64. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-12-21[ALSA] Export functions for ioctl32 wrapperJaroslav Kysela4-24/+47
Control Midlevel,PCM Midlevel,ALSA Core Export some functions to access from ioctl32 wrapper. This will reduce the memory footprint (doublly kmalloc's for the same ioctl records). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-12-21[ALSA] Fix compilation without CONFIG_PMJaroslav Kysela1-0/+16
AC97 Codec Core Fixed the compilation without CONFIG_PM. The resume callback is built only with CONFIG_PM. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-12-20USB: change wMaxPacketSize field in struct usb_config_descriptor to be __le16Greg Kroah-Hartman2-6/+6
Yet another step in the quest to get all USB data structures to be native endian. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2004-12-20USB: change wTotalLength field in struct usb_config_descriptor to be __le16Greg Kroah-Hartman2-4/+5
Another step in the quest to get all USB data structures to be native endian. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2004-12-19USB: convert the idVendor, idProduct, bcdDevice and bcdUSB fields to __le16Greg Kroah-Hartman6-35/+43
These fields are in the struct usb_device_descriptor, and now we keep the native (on-the-wire mode) format of these fields. Any driver using these fields needs to convert it to cpu endian before using them. All USB drivers in the kernel tree have been fixed up to work properly with this change. All out-of-the USB kernel drivers are on their own... Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2004-12-15[PATCH] USB: ALSA and usb_dev->ep[] (4/15)David Brownell1-2/+9
Makes an ALSA audio driver stop referencing the udev->epmaxpacket[] arrays. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2004-12-07Merge pobox.com:/garz/repo/linux-2.6 into pobox.com:/garz/repo/misc-2.6Jeff Garzik3-12/+12
2004-12-06[PATCH] alsa: fix iomem mmapTakashi Iwai1-0/+1
The patch adds the definition vm_private_data again to snd_pcm_lib_mmap_iomem(). It got lost during the rewrite of the mmap stuff. Signed-off-by: Martin Langer <martin-langer@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-06[PATCH] alsa: add pci_disable_device() to removal and error pathsTakashi Iwai31-33/+181
pci_disable_device() is called properly in the removal and error paths. Also, the pci_set_master() is added to the resume callbacks if missing (just to be sure). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-06[PATCH] alsa: fix sleep in atomic during prepare callbackTakashi Iwai1-0/+2
Fixed the sleep in spinlock during prepare callback. This happened only on Nforce chips. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-04[PATCH] Fix ALSA resumeMartin Josefsson1-1/+4
Some time ago, a patch was merged that removed pci_save_state() and pci_restore_state() from various ALSA drivers. That patch also added pci_restore_state() to sound/core/init.c but didn't add pci_save_state() anywhere. This is needed since the core pci handling doesn't do this for us anymore. My laptop doesn't resume (gets what I assume is an ACPI timeout and hangs solid) without this small obvious patch. Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se> Fixed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-29MergeJaroslav Kysela24-211/+294
2004-11-29Merge suse.cz:/home/perex/bk/linux-sound/linux-2.5Jaroslav Kysela25-213/+296
into suse.cz:/home/perex/bk/linux-sound/linux-sound
2004-11-29[ALSA] alternate CS4235 ident stringJaroslav Kysela1-0/+2
CS4236+ driver The patch adds an alternate CS4235 ident string Signed-off-by: Pang Lih Wuei <basic@mozdev.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] alternate ALS0200 ident stringJaroslav Kysela1-0/+2
ALS100 driver The patch adds an alternate ALS0200 ident string Signed-off-by: Pang Lih Wuei <basic@mozdev.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Disable 'IEC958 Input Monitor' switch for ALC codecsJaroslav Kysela1-2/+4
AC97 Codec Core 'IEC958 Input Monitor' switch for ALC codecs produces only the cracky noises, and KDE seems to turn this on as default in the initialization. So, better to remove this switch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] ALSA ISA drivers: misc cleanupsJaroslav Kysela13-94/+96
AD1848 driver,CS4231 driver,ES1688 driver,GUS Library,SB drivers Wavefront drivers,ES18xx driver,OPL3SA2 driver,AD1816A driver Opti9xx drivers,SB16/AWE driver,SB8 driver The patch below makes cleanups under sound/isa/ including: - make needlessly global code static - ad1816a/ad1816a_lib.c: much code was unused starting with the global function snd_ad1816a_timer - removed EXPORT_SYMBOL's: - cs423x/cs4231_lib.c: snd_cs4231_outm - es1688/es1688_lib.c: snd_es1688_mixer_read Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] misc clean upJaroslav Kysela1-5/+1
Intel8x0 driver Clean up the module init code after removal of midi/joystick support. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] fix weird placement of static keyword in sound/core/pcm_memory.cJaroslav Kysela1-1/+1
PCM Midlevel This patch moves the 'static' keyword to the beginning of the declaration to eliminate the following warning when building with gcc -W sound/core/pcm_memory.c:40: warning: 'static' is not at beginning of declaration This has no actal imact on the code, but it's one less warning to sift through when looking for potential trouble-code with -W I have a hard time thinking of a reason to not apply this trivial patch :) Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Fix the detection of Audigy2 ZSJaroslav Kysela1-1/+1
EMU10K1/EMU10K2 driver Fix the detection of the older model of Audigy2 ZS. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] [trivial] Fix compile warningsJaroslav Kysela3-4/+7
ALSA Core,CS46xx driver,MIXART driver Fix trivial compile warnings. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Fixed problem with changing size of etramJaroslav Kysela1-1/+1
EMU10K1/EMU10K2 driver It doesn't work to double the etram size, because of a bad comparison statement. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] add register dump to procJaroslav Kysela1-0/+173
EMU10K1/EMU10K2 driver The register dump proc files are added. Enabled only when CONFIG_SND_DEBUG=y. Signed-off-by: James Courtier-Dutton Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] check CONFIG_COMPAT for snd-ioctl32Jaroslav Kysela1-1/+1
ALSA Core check CONFIG_COMPAT for selection of snd-ioctl32 module. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] make some code staticJaroslav Kysela2-4/+2
Sound Core PDAudioCF driver The patch below makes some needlessly global code static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Support for Audigy2 Value SB0400Jaroslav Kysela3-3/+56
EMU10K1/EMU10K2 driver This adds support for the SB0400 version of the Audigy2 Value, that uses the new CA0108 chip. Signed-off-by: James Courtier-Dutton Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] ALSA PCI drivers: misc cleanupsJaroslav Kysela18-172/+76
EMU10K1/EMU10K2 driver,Trident driver,YMFPCI driver,AZT3328 driver SonicVibes driver,AC97 Codec Core,CS46xx driver,KORG1212 driver RME HDSP driver,RME9652 driver The patch below does the following cleanups under sound/pci/ : - make some needlessly global code static - remove the following unused EXPORT_SYMBOL's: - trident/trident_main.c: snd_trident_clear_voices - trident/trident_main.c: snd_trident_synth_bzero - remove the following unused global functions: - azt3328.c: snd_azf3328_mixer_read - emu10k1/io.c: snd_emu10k1_sum_vol_attn - trident/trident_main.c: snd_trident_detach_synthesizer - trident/trident_memory.c: snd_trident_synth_bzero Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] fix display of send routing in /procJaroslav Kysela1-17/+30
EMU10K1/EMU10K2 driver The emu10k1's send routing is a per channel setting. The emu10k1 has 4 sends per channel, the Audigy 8. Currently we only display the first 4 sends for the first channel. This patch updates the /proc file to display the send routing for all 64 channels, and to display the last 4 sends if present. Signed-off-by: Lee Revell <rlrevell@joe-job.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] AD18xx/19xx resume fixJaroslav Kysela3-67/+128
AC97 Codec Core Added resume callback so that the codec-specific resume code can be called properly. Moved AD-specific initialization code into it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] sort DXS whitelistJaroslav Kysela1-4/+4
VIA82xx driver DXS whitelist entries are sorted. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] via82xx: Enable DXS on ABIT KV8 ProJaroslav Kysela1-0/+1
VIA82xx driver From Marko Kreen <marko@l-t.ee>: Enable DXS for via audio chip on ABIT KV8 Pro. Works for me. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Add pci_disable_device() to removal and error pathsJaroslav Kysela31-33/+181
ALS4000 driver,ATIIXP driver,ATIIXP-modem driver,AZT3328 driver BT87x driver,CMIPCI driver,CS4281 driver,ENS1370/1+ driver ES1938 driver,ES1968 driver,FM801 driver,Intel8x0 driver Intel8x0-modem driver,Maestro3 driver,RME32 driver,RME96 driver SonicVibes driver,VIA82xx driver,ALI5451 driver,CS46xx driver EMU10K1/EMU10K2 driver,ICE1712 driver,ICE1724 driver,KORG1212 driver MIXART driver,NM256 driver,RME HDSP driver,RME9652 driver Trident driver,Digigram VX222 driver,YMFPCI driver pci_disable_device() is called properly in the removal and error paths. Also, the pci_set_master() is added to the resume callbacks if missing (just to be sure). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] whitespace cleanupJaroslav Kysela1-35/+35
EMU10K1/EMU10K2 driver Signed-off-by: Lee Revell <rlrevell@joe-job.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] minor send routing cleanupJaroslav Kysela1-8/+3
EMU10K1/EMU10K2 driver Use snd_emu10k1_compose_audigy_fxrt* macro where appropriate. Also add a few comments to explain send routing structure. Signed-off-by: Lee Revell <rlrevell@joe-job.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] fix chorus/reverb FX loaderJaroslav Kysela1-0/+4
EMU8000 driver Fixed the chorus/reverb FX loader callback. The header bytes must be eliminated. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] fix MIDI GS chorus/reverb modeJaroslav Kysela1-2/+2
ALSA sequencer Fixed the parsing of MIDI GS chorus/reverb mode SYSEX messages. They were swapped. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] fix iomem mmapJaroslav Kysela1-0/+1
PCM Midlevel The patch adds the definition vm_private_data again to snd_pcm_lib_mmap_iomem(). It got lost during the rewrite of the mmap stuff. Signed-off-by: Martin Langer <martin-langer@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] add Line/Headphone jack detection for AD1981A/BJaroslav Kysela1-2/+21
AC97 Codec Core Line/Headphone Jack Sense mixer switches are added to AD1981A/B. HP sense is activated as default. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Add pci_save_state() in suspendJaroslav Kysela1-1/+4
ALSA Core Added pci_save_state() in the ALSA suspend core callback since its call was removed from the PCI core driver in the recent version. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] fix sleep in atomic during prepare callbackJaroslav Kysela1-0/+2
Intel8x0 driver Fixed the sleep in spinlock during prepare callback. This happened only on Nforce chips. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] AC97 quirks for DellJaroslav Kysela1-0/+12
Intel8x0 driver Added ac97 quirks for some dell machines. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Fix WM8770 InitJaroslav Kysela1-3/+3
ICE1712 driver Corrects WM8770 ADC mux initialization Signed-off-by: Peter Christensen <peter@developers.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-29[ALSA] Fix the missing line in the patch for hdsp accurate_ptrJaroslav Kysela1-0/+1
RME HDSP driver Fixed missing line in the patch for hdsp accurate_ptr. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-27[PATCH] iomem annotations and fixes + isa_-ectomy in msndAlexander Viro3-97/+163
* switched to ioremap() + normal operations * split msnd_fifo_write() (and msnd_fifo_read()) into iomem and normal versions (original was even worse - it used to do __user and __iomem versions in the same code and in atomic context; when that bogosity got fixed, the difference between these cases (now normal memory and iomem) had been lost). Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-27[PATCH] misc sparc iomem annotationsAlexander Viro1-2/+2
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-27[PATCH] pmac sound iomem annotationsAlexander Viro3-38/+33
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-20[PATCH] sound/oss iomem annotationsAlexander Viro9-20/+21
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-20[PATCH] misc __user annotationsAlexander Viro1-1/+1
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-19[PATCH] ad1889 annotations and fixesAlexander Viro2-17/+30
fixed leaks on failure exits in ->probe()
2004-11-19[PATCH] 64bit portability fixesAlexander Viro1-2/+2
assorted 64bit issues - extraction of number passed in pointer, use of %zd for size_t, ssize_t instead of int as return value of ->read(), %p for pointers instead of casting to int and using %x. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-15[PATCH] sound_alloc_dmap memory allocation warning suppressionAndrew Morton1-1/+1
alloc_pages() failures are expected here. Manually prevent warnings. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-14[sound/oss] use module_param() in soundcard.c and uart401.cJeff Garzik2-6/+6
2004-11-14[sound/oss i810_audio] use module_param()Jeff Garzik1-6/+6
Also, set MODULE_AUTHOR and correct module name in a macro.
2004-11-13[PATCH] __devinit in sound/oss/es1371.cAndries E. Brouwer1-2/+2
It is forbidden to refer from __devinit to __init. (Unless one argues that in the given situation hotplugging is actually impossible. Too ugly.) However, es1371_probe() is __devinit and referred to __initdata initvol[] and to __init src_init().
2004-11-12Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6Linus Torvalds3-31/+36
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-11-11[PATCH] cmipci.c: convert pci_find_device to pci_get_deviceHanna V. Linder1-2/+5
As pci_find_device is going away I've replaced it with pci_get_device. Signed-off-by: Hanna Linder <hannal@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2004-11-11[PATCH] I2C: Recent I2C "dead code removal" breaks pmac sound.Gabriel Paubert3-31/+36
> Put the function back, and change the pmac.h file to delete the #define, > and replace the snd_pmac_keywest_write function with a real call to > i2c_smbus_write_block_data so things like this don't happen again. > > Care to write a patch to do this? It follows, along with an update of the include/linux/i2c.h to only declare functions that actually exist, but grepping the whole sound subtree shows that at least sound/oss/dmasound/tas_common.h defines a few inline functions that call i2c_smbus_write_{byte,block}_data. [I2C part] Ressuscitate i2c_smbus_write_block_data since it's actually used. Update include/linux/i2c.h to reflect the existing functions. [Sound part] Remove snd_pmac_keywest_write* wrapper macros and directly call the i2c_smbus_* functions instead. Signed-off-by: Gabriel Paubert <paubert@iram.es> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> ===== include/linux/i2c.h 1.41 vs edited =====
2004-11-11[ALSA] nonblock_open=1 by default for OSS PCM API emulationJaroslav Kysela1-1/+1
Documentation,ALSA<-OSS emulation Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-11-11[ALSA] fix parsing of mixer unit descriptorsJaroslav Kysela1-19/+40
USB generic driver MU descriptor parsing code completely rewritten; the old code confused the number of input audio channel clusters and the number of input channels. Furthermore, check all bmControls bits so that mixer controls are created even if the first output channel doesn't have a control. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-11-11[ALSA] read bmControls array in correct orderJaroslav Kysela1-1/+1
USB generic driver The driver used some code from audio.c that reads the bmControl array backwards; this would not work here as we get a pointer to the beginning of the array. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-11-11[ALSA] handle missing control bitmap when parsing MUDsJaroslav Kysela1-2/+5
USB generic driver The AudioTrak Maya44 USB has a mixer unit descriptor without a bmControl field; handle this as if all bits are zero. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-11-11[ALSA] emu10k1 - fixed remaining problems with new DSP code loadingJaroslav Kysela1-22/+12
EMU10K1/EMU10K2 driver Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-11-11[ALSA] [emu10k1] add interval timer supportJaroslav Kysela4-3/+108
EMU10K1/EMU10K2 driver Signed-off-by: Lee Revell <rlrevell@joe-job.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-11[ALSA] Fixed issues with Abit AV8Jaroslav Kysela1-0/+1
VIA82xx driver Added Abit AV8 sound card to the white list to use VIA_DXS_NO_VRA by default. This resolves issues with programs wanting to use 41k streams. It also fixes gstreamer issue with alsasink module interaction. Signed-off-by: Jerone Young <jerone@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-11[ALSA] Add subvendor ID to the pci id table of vx222 driverJaroslav Kysela1-2/+2
Digigram VX222 driver The subsystem ID is added to the pci id table of vx222 driver to make the matching more strict since it (PLX) conflicts with other devices. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-11[ALSA] removes unneeded spin_lock_irqsave()s from snd-es1968Jaroslav Kysela1-6/+0
ES1968 driver spin_lock_irqsave(&chip->reg_lock) was called a second time in sequence from snd_es1968_bob_start() called from es1968_measure_clock(). While this didn't cause harm on my UP laptop with mainline kernels, it made 'insmod snd-es1968' hang on kernel 2.6.9-mm1-RT-V0.6.9. The patch assumes that 2 callpaths don't need explicit spinlock protection: 1: The trigger callback, because it is called with IRQs disabled. 2. PM's suspend/resume callbacks, because those are called while ortdinary user processes are frozen. Thus the spin_lock_irqsave(&chip->reg_lock) calls in snd_es1968_bob_start() / snd_es1968_bob_stop() are not needed. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2004-11-11[ALSA] remove snd_seq_simple_idJaroslav Kysela2-2/+2
Instrument layer,GUS Library,Trident driver remove uses of the snd_seq_simple_id symbol because it is no longer exported Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-11-11[ALSA] emu10k1 - another attempt to correct the new emufx DSP codeJaroslav Kysela1-6/+8
EMU10K1/EMU10K2 driver Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-11-11[ALSA] replace schedule_timeout() with msleep()Jaroslav Kysela1-9/+8
SPARC cs4231 driver Uses msleep() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-11-11[ALSA] replace schedule_timeout() with msleep()Jaroslav Kysela1-15/+6
CS4231 driver Uses msleep() instead of schedule_timeout() to guarantee the task delays as expected. This lead to several related changes, as the current code assumes the value of HZ is 100. Use timeout as an iteration variable to count out how many 10ms delays should be used. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-11-06bk-kbuild utsname fixAndrew Morton1-1/+4
sound/core/info.c:31: sound/utsname.h: No such file or directory sound/core/info.c: In function `snd_info_version_read': sound/core/info.c:965: parse error before `CONFIG_SND_VERSION' sound/core/info.c:962: warning: unused variable `kernel_version' Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by Sam Ravnborg <sam@ravnborg.org>
2004-10-31Do not recompile if localversion changesSam Ravnborg1-2/+2
Changing localversion causes a few files to be recompiled, namely those who include <version.h>. Replace <version.h> with <utsname.h> in a few places. Long term solution is to split up <version.h> in two files. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-10-30[ALSA] emu10k1 - fixes against the last emufx changesJaroslav Kysela1-24/+38
EMU10K1/EMU10K2 driver The indirect pointers are allocated correctly now for default DSP code. Also, one bug in emu10k1_fx8010_code_t has been fixed as well. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-30Merge suse.cz:/home/perex/bk/linux-sound/linux-soundJaroslav Kysela25-576/+760
into suse.cz:/home/perex/bk/linux-sound/work
2004-10-29[ALSA] fixed emu10k1_fx8010_code_t structure to be less than 8192 bytesJaroslav Kysela1-55/+100
EMU10K1/EMU10K2 driver This patch fixes emu10k1_fx8010_code_t structure using indirect pointers to be less than 8192 bytes to follow the ioctl semantics. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] remove kernel version info from proc fileJaroslav Kysela1-12/+3
ALSA Core The kernel version information isn't necessary for the driver in the kernel tree, so move it to the alsa-driver package. This removes a dependency to <linux/version.h>. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-10-29[ALSA] Limit parity error messagesJaroslav Kysela1-18/+43
BT87x driver Some systems generate tons of PCI parity errors, so shut up when more than 20 have been detected. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-10-29[ALSA] remove dead exportsJaroslav Kysela8-34/+11
ALSA Core,Instrument layer,AD1848 driver,ES1688 driver Alsa currently has tons of dead exports, often with totally unused functions behind them. This removes some of them. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-10-29[ALSA] remove old compatibility codeJaroslav Kysela1-1/+1
USB USX2Y Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-10-29[ALSA] fix data type mismatch in sign_invertJaroslav Kysela1-1/+1
au88x0 driver the last sign_invert cleanup introduced a data type mismatch (an unsigned value can never be negative) Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-10-29[ALSA] au88x0: comment and whitespace cleanupJaroslav Kysela1-8/+5
au88x0 driver Remove an obsolete comment and cleanup up some whitespace a bit Signed-off-by: Jeff Muizelaar <muizelaar@rogers.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] au88x0: name typoJaroslav Kysela2-2/+2
au88x0 driver Fix the spelling of my name Signed-off-by: Jeff Muizelaar <muizelaar@rogers.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] au88x0: sign_invert cleanupJaroslav Kysela1-15/+15
au88x0 driver Remove unecessary ' & 0xffff'ing of the result of sign_invert Signed-off-by: Jeff Muizelaar <muizelaar@rogers.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] au88x0: set-levels cleanupJaroslav Kysela1-11/+15
au88x0 driver Cleanup vortex_EqHw_SetLevels and add a bit of documentation Signed-off-by: Jeff Muizelaar <muizelaar@rogers.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] au88x0: fix is-quad oopsJaroslav Kysela2-2/+7
au88x0 driver Fixes an oops on module removal caused by dereferencing the codec pointer. This is not the best solution, but it is the easiest and fixes things for now. Signed-off-by: Jeff Muizelaar <muizelaar@rogers.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] au88x0: add resetup dmaJaroslav Kysela3-1/+31
au88x0 driver Add adbdma_resetup for refreshing the hw page table on pcm start Signed-off-by: Jeff Muizelaar <muizelaar@rogers.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] snd-usb-usx2y - crash fix for OHCI USB-HCDsJaroslav Kysela4-396/+449
USB USX2Y Version: 0.8.6 Work on this started, when rumors spread that OHCI equipped machines would crash. This was due to me missing two facts: 1) Ohci has a bigger usb frame number wrap around. 2) It only supports URB_ISO_ASAP when submitting iso urbs. These issues are fixed now. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2004-10-29[ALSA] rearrange OSS SPARC dependenciesJaroslav Kysela1-1/+1
Sound Core rearrange the SPARC symbols in the OSS dependencies to prevent alsa-driver's mod-deps from throwing up Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2004-10-29[ALSA] fix sequencer sleeping in interrupt contextJaroslav Kysela2-2/+2
ALSA sequencer,ALSA<-OSS sequencer Signed-off-by: Clemens Ladisch <clemens@ladisch.de>