aboutsummaryrefslogtreecommitdiffstats
path: root/sound
AgeCommit message (Collapse)AuthorFilesLines
2005-06-23[PATCH] create a kstrdup library functionPaulo Marques10-38/+32
This patch creates a new kstrdup library function and changes the "local" implementations in several places to use this function. Most of the changes come from the sound and net subsystems. The sound part had already been acknowledged by Takashi Iwai and the net part by David S. Miller. I left UML alone for now because I would need more time to read the code carefully before making changes there. Signed-off-by: Paulo Marques <pmarques@grupopie.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-22[ALSA] emu10k1: Add more card identification entries.James Courtier-Dutton1-0/+78
EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22[ALSA] Add dxs_support for Soltek SL-K8Tpro-939Takashi Iwai1-0/+1
VIA82xx driver Added dxs_support entry for Soltek SL-K8Tpro-939. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] SigmaTel HDA SPDIF and input mux updatesMatt1-39/+145
HDA Codec driver Adds SPDIF in/out support to the SigmaTel HDA codecs. Now builds the input mux control element names from the defcfg regs. Signed-off-by: Matt <matt@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] via82xx - Fix info text about dxs_support optionTakashi Iwai1-1/+2
VIA82xx driver Fixed the info text about dxs_support option (suggest dxs_support=5). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-codec - More fix of ALC880 codec supportTakashi Iwai6-1092/+1201
Documentation,HDA Codec driver,HDA generic driver,HDA Intel driver - Fix some invalid configurations, typos in the last patch - Make init_verbs chainable, so that different configs can share the same init_verbs - Reorder and clean up the source codes in patch_realtek.c - Add the pin default configuration parser, used commonly in cmedia and realtek patch codes. - Add 'auto' model to ALC880 for auto-configuration from BIOS Use this model as default, and 3-stack as fallback Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Add const prefixTakashi Iwai1-1/+1
Control Midlevel Add const prefix to snd_kcontrol_new_t pointer for better protection. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-codec - Add support of more models with ALC codecsTakashi Iwai3-162/+723
HDA Codec driver,HDA Intel driver Merged the work of pshou <pshou@realtek.com.tw> for the support of more models with ALC codecs: ALC880 ASUS, Uniwill, FSC1734, generic 6-stack, and ALC260 HP. Tests with the real hardwares are appreciated. The codec patch is cleaned up: The preset configuration of codecs are stored in the table and copied to the spec instance. Added/fixed comments. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-codec - Allow sub_device=0 in board config checkTakashi Iwai1-1/+2
HDA Codec driver Allow sub_device=0 in board config check. This means that every device with the given sub vendor ID will match. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-codec - Clean up and fix ALC-codec support codeTakashi Iwai1-308/+328
HDA Codec driver Clean up and fix ALC-codec support code. The last addition of bound volume is fixed now to handle correctly the bound 'mute switches'. The analog loopback should work better. The init verbs are fixed together with this change. The numbers are replaced with macros for better readability. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-codec - Feed front signals to all surroundsTakashi Iwai1-3/+4
HDA Codec driver Feed front signals to all surround channels if no data is given for surround channels. It seems that CLFE works as expected (only center outputs) even if connected from the front line - at least on my test system. If this change causes problems on other system (e.g. only the left channel is transferred to the center channel), please let me know... Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-codec - Print all AMP IN valuesTakashi Iwai1-17/+27
HDA generic driver Print all AMP IN values when multiple nodes are connected. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Disable MPU401 on SIS7018Takashi Iwai1-1/+2
Trident driver Disable MPU401 support on SIS7018 since it results in kernel freeze. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Fix the analog loopback volumes of ALC codecsTakashi Iwai1-25/+97
HDA Codec driver Fix the analog loopback volumes of ALC codecs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Fix the PCM mixer switch for AD1986ATakashi Iwai1-1/+1
HDA Codec driver Fix the PCM mixer switch for AD1986a (it was a typo). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Fix the handling of amp cache in hda-codecTakashi Iwai1-40/+34
HDA Codec driver Fixed the handling of amp cache in hda-codec driver. The confliction of cache values with different indices should be fixed now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] via82xx - fixed entry for Umax AB 595T (VIA K8N800A - VT8237)Jaroslav Kysela1-1/+1
VIA82xx driver As the original reporter noted, the NO_VRA must be used for loud volumes. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] ca0106: Fix 96000 Hz audio playback.James Courtier-Dutton2-2/+2
CA0106 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22[ALSA] Add HDSP MADI driverTakashi Iwai3-0/+3686
HDSPM driver,PCI drivers,RME9652 driver Added RME Hammerfall DSP MADI driver by Winfried Ritsch. (Moved from alsa-driver tree to mainline.) Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] cs4236-irq-handling-fix.patchChristoph Schulz1-2/+1
CS4236+ driver Background: The card/chipset supports an external MIDI interrupt. By default, this interrupt isn't used (because the isapnp mechanism chooses a configuration without an assigned interrupt). If the user wishes to explicitly select an interrupt via the mpu_irq parameter for such a configured device, it doesn't work: The driver always shows: isapnp MPU: port=0x330, irq=-1 (note the 'irq=-1') Problem: The driver only allows to set the irq if pnp_irq_valid returns true for this particular pnp device. This, however, is only true if an interrupt has already been assigned (pnp_valid_irq returns true if the flag IORESOURCE_IRQ is set and IORESOURCE_UNSET is not set). If no interrupt has been assigned so far, IORESOURCE_UNSET is set and pnp_irq_valid returns false, thereby inhibiting the selection of a valid irq. Solution: Don't check for a valid (= already assigned) irq at the point of calling pnp_resource_change. Tested successfully on Linux 2.6.11. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] OSS PCM emulation - The 2nd final fix for SNDCTL_DSP_GETOPTR problemJaroslav Kysela1-4/+4
ALSA<-OSS emulation The problem was negative/wrong result (info.bytes) in a specific condition at playback startup. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] Add FSC T3010 quirkTakashi Iwai1-0/+6
Intel8x0 driver Added ac97_quirk for FSC T3010. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] OSS PCM emulation - The final fix for SNDCTL_DSP_GETOPTR problemJaroslav Kysela1-2/+5
ALSA<-OSS emulation The problem was negative result (info.bytes) in a specific condition at playback startup. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] Fix races between PCM drain and other opsTakashi Iwai1-34/+36
PCM Midlevel Fix semaphore races between PCM drain and other ops. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] hda-intel - Fix Oops in the error pathTakashi Iwai1-1/+4
HDA Intel driver Fixed Oops in the error path from probe function of snd-hda-intel driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Add write support to snd-page-alloc proc fileTakashi Iwai3-102/+127
Documentation,Memalloc module,RME HDSP driver,RME9652 driver Add the write support to snd-page-alloc proc file for buffer pre-allocation. Removed the pre-allocation codes via module options. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] Remove redundant NULL checks before kfreeJesper Juhl18-87/+39
Timer Midlevel,ALSA sequencer,ALSA<-OSS sequencer,Digigram VX core I2C tea6330t,GUS Library,VIA82xx driver,VIA82xx-modem driver CA0106 driver,CS46xx driver,EMU10K1/EMU10K2 driver,YMFPCI driver Digigram VX Pocket driver,Common EMU synth,USB generic driver,USB USX2Y Checking a pointer for NULL before calling kfree() on it is redundant, kfree() deals with NULL pointers just fine. This patch removes such checks from sound/ This patch also makes another, but closely related, change. It avoids casting pointers about to be kfree()'ed. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] AC97 - renamed vendor/device to subvendor/subdevice where appropriateJames Courtier-Dutton1-74/+74
Intel8x0 driver To avoid confusion, the structure members vendor/device were renamed to subvendor/subdevice, because we compare them with PCI subsystem vendor and subsystem device. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22[ALSA] AC97 - renamed vendor/device to subvendor/subdevice where appropriateJaroslav Kysela3-65/+65
AC97 Codec,ATIIXP driver,VIA82xx driver To avoid confusion, the structure members vendor/device were renamed to subvendor/subdevice, because we compare them with PCI subsystem vendor and subsystem device. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] via82xx - added 0x1071/0x8399 to while listJaroslav Kysela1-0/+1
VIA82xx driver - 0x1071, 0x8399 == VIA_DXS_ENABLE - Umax AB 595T (VIA K8N800A - VT8237) - reporter: Honza Machacek <Hloupy.Honza@centrum.cz> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] Modem support for ALI5451Sasha Khapyorsky1-63/+218
ALI5451 driver This patch adds modem support for ali5451. Since it is same pci device all is done in ali5451.c. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] sound/pci/ca0106: Use the DMA_32BIT_MASK constantTobias Klauser1-2/+3
CA0106 driver Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] PCI modem drivers updateSasha Khapyorsky3-119/+25
ATIIXP-modem driver,Intel8x0-modem driver,VIA82xx-modem driver Modem drivers (atiixp-modem, intel8x0m, via82xx-modem) migration for using MC97 generic modem mixer for off-hook operation. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] MC97 modem mixer in sound/pci/ac97Sasha Khapyorsky2-4/+38
AC97 Codec Simple MC97 modem mixer with two common controls: Off-hook and CID, and Si3056 MC specific control: Modem Speaker. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] Be more specific with which I2C channel to use.James Courtier-Dutton1-1/+4
CA0106 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22[ALSA] Implement S32_LE(24bit) and 96000 capture rates etc.James Courtier-Dutton1-4/+59
CA0106 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22[ALSA] Add Mic capture support.James Courtier-Dutton2-1/+69
CA0106 driver Notes: This adds a new mixer item to switch between Mic and Line-in. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22[ALSA] Implement support for Line-in capture on SB Live 24bit.James Courtier-Dutton3-10/+148
CA0106 driver Notes: MIC capture not tested yet. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-06-22Merge with ↵Jaroslav Kysela1-1/+1
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
2005-06-21[PATCH] rme96xx: fix PageReserved rangeHugh Dickins1-1/+1
rme96xx busmaster_malloc miscalculates and fails to set PageReserved on any page of char *buf; but busmaster_free does it right, so do the same (I don't have the card, just noticed this while sifting for rmap BUGs). Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitJaroslav Kysela4-24/+23
2005-06-20[PATCH] class: convert sound/* to use the new class api instead of class_simplegregkh@suse.de3-18/+17
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-06-14[PATCH] usbusx2y: prevent oops & dead keyboard on usb unplugging while the ↵Karsten Wiese1-4/+7
device is being used Without this patch, some usb kobjects, which are parents to the usx2y's kobjects can be freed before the usx2y's. This led to an oops in get_kobj_path_length() and a dead keyboard, when the usx2y's kobjects were freed. The patch ensures the correct sequence. Tested ok on kernel 2.6.12-rc2. Present in ALSA cvs Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-14[PATCH] usbaudio: prevent oops & dead keyboard on usb unplugging while the ↵Karsten Wiese1-1/+1
device is being used Without this patch, some usb kobjects, which are parents to the usx2y's kobjects can be freed before the usx2y's. This led to an oops in get_kobj_path_length() and a dead keyboard, when the usx2y's kobjects were freed. The patch ensures the correct sequence. Tested ok on kernel 2.6.12-rc2. Present in ALSA cvs Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-29Automatic merge of 'for-linus' branch fromLinus Torvalds1-6/+6
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/dtor/input
2005-05-29[ALSA] select ISAPNP for SND_INTERWAVE_STB targetJaroslav Kysela1-0/+1
ISA Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Fix compilation on 32bit archTakashi Iwai1-1/+10
ALSA<-OSS emulation Fix the division with int64 for 32bit architectures. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] emu10k1: add details for the audigy player box versionArnaud Patard1-0/+6
EMU10K1/EMU10K2 driver Add details for the audigy player box version. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] ice1724 - Add support of Chaintech AV-710Takashi Iwai2-1/+45
Documentation,ICE1724 driver Add the support of Chaintech AV-710 to ice1724 driver. The patch includes the WM-codec initialization fix by Jaanus Kivistik <jaanus@no.spam.ee>. Since both AV-710 and AMP Audio2000 have the same SSID, initialize WM codecs as default for both devices. In case it breaks Audio2000, you can pass 'model=amp2000' option to avoid WM codec initialization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] als4000 - Fix kernel panic with MPU401Takashi Iwai1-1/+1
ALS4000 driver Fix kernel panic with als4000 when MPU401 is accessed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] alsa-oss - 2nd - improved readabilityJaroslav Kysela1-2/+2
ALSA<-OSS emulation Use 'long' for byte counters in snd_pcm_oss_bytes() snd_pcm_alsa_bytes(). Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] alsa-oss - improve readability of snd_pcm_oss_bytes() functionJaroslav Kysela1-3/+3
ALSA<-OSS emulation Added bytes variable and do not use the frames argument as a temporaly storage for the byte counter. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Add dxs_support for a Twinhead moboTakashi Iwai1-0/+1
VIA82xx driver Added dxs_support=4 for a Twinhead mobo. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix a wrong bit set in AC1985 codeTakashi Iwai1-2/+2
AC97 Codec Fixed a wrong bit set in AD1985 surround jack controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Reverted last patch for SNDCTL_DSP_GETOPTR fix & possible overflow fixJaroslav Kysela1-4/+3
ALSA<-OSS emulation This reverts the last patch which wrongly mixes bytes and frames. The real culprit might be the 32-bit overflow, so the return expression uses 64-bit values now in snd_pcm_oss_bytes(). Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] pcm_oss - fix SNDCTL_DSP_GETOPTR not working correctlyRoger Mach1-2/+3
ALSA<-OSS emulation This patch changes snd_pcm_oss_bytes() by adding a local variable for the frames -> bytes conversion, which means that the frame count is no longer corrupted by this conversion. Signed-off-by: Roger Mach <bigmach@us.ibm.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] Fix ALC880 capture problemsTakashi Iwai1-19/+67
HDA Codec driver Fixed the capture on some ALC880 devices. The node 0x07 is sometimes invalid as an ADC. Also, the intialization of ADC nodes are fixed on some models. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] hda-code: Fix the array size of codec listTakashi Iwai1-1/+1
HDA Codec driver Fixed the wrong array size of the codec pointer list. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Use standard form for URLTakashi Iwai1-1/+1
Sound Core Use the standard form with <> for URL in Kconfig help texts. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Make docproc happyTakashi Iwai1-3/+3
PCM Midlevel Make docproc happy by moving '#if 0' before comments. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add comments for Takashi Iwai1-0/+5
Sound Core Added (minimal) comments for in Kconfig, so that configurators can choose this entry explicitly. A more descriptive comment by someone else is appreciated... Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Update documentation for ice1712 and ice1724Takashi Iwai1-1/+2
Documentation,ICE1712 driver Updated the documentation for ice1712 and ice1724 drivers. Added the device description for shuttle SN25P missing in the last patch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add Shuttle SN25P supportTakashi Iwai2-0/+10
ICE1712 driver Added the support for Shuttle SN25P. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add the vendor 0x1558 to PM whitelist of es1968Takashi Iwai1-0/+1
ES1968 driver Added the vendor id 0x1558 to the power management whitelist of es1968 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] sound/isa/: cleanupsAdrian Bunk7-14/+33
GUS Library This patch contains the following possible cleanups: - make needlesly global code static - #if 0 the following unused global functions: - gus/gus_volume.c: snd_gf1_gvol_to_lvol_raw - gus/gus_volume.c: snd_gf1_calc_ramp_rate - gus/gus_volume.c: snd_gf1_compute_vibrato - gus/gus_volume.c: snd_gf1_compute_pitchbend - gus/gus_volume.c: snd_gf1_compute_freq - gus/gus_io.c: snd_gf1_i_adlib_write - gus/gus_io.c: snd_gf1_i_write_addr - gus/gus_io.c: snd_gf1_pokew - gus/gus_io.c: snd_gf1_peekw - gus/gus_io.c: snd_gf1_dram_setmem - gus/gus_io.c: snd_gf1_print_global_registers - gus/gus_io.c: snd_gf1_print_setup_registers - gus/gus_io.c: snd_gf1_peek_print_block - gus/gus_io.c: snd_gf1_print_setup_registers - gus/gus_io.c: snd_gf1_peek_print_block - #if 0 the following unused global variable: - gus/gus_tables.h: snd_gf1_scale_table - remove the following unneeded EXPORT_SYMBOL's: - gus/gus_main.c: snd_gf1_i_write16 - gus/gus_main.c: snd_gf1_start - gus/gus_main.c: snd_gf1_stop Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Tidy up card recognition.James Courtier-Dutton2-28/+43
CA0106 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] When the alsamixer says 'SPDIF Out [Off]', SPDIF output should be off ↵James Courtier-Dutton1-2/+2
and Analog output should be on. CA0106 driver This fixes a bug whereby when the snd-ca0106 module first loads, alsamixer says 'SPDIF Out [Off]' but no analog sound comes from the speakers. This covers any bug reports that said things like 'mixer fails to remember analog output on, when the system is rebooted.' Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Implement surround71 outputs on SB Live 24bit.James Courtier-Dutton1-2/+2
CA0106 driver Notes: Requires updated alsa-lib. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] maestro3: Add hardware volume control quirk listVille Syrjala1-21/+106
Maestro3 driver Add a hardware volume quirk list to the maestro3 driver. Details were taken from the Windows driver. Hardware volume control is enabled only for the systems in the list. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix resume of via82xx-modemTakashi Iwai1-1/+1
VIA82xx-modem driver Fix the resume of via82xx-modem, removing invalid __devinit. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] sound/core/: possible cleanupsAdrian Bunk11-43/+42
PCM Midlevel,ALSA Core,Timer Midlevel,ALSA sequencer,Virtual Midi This patch contains the following possible cleanups: - make needlessly global code static - #if 0 the following unused global functions - remove the following unneeded EXPORT_SYMBOL's Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] ppc32: Fix Alsa PowerMac driver on old machinesBenjamin Herrenschmidt1-11/+19
PPC PMAC driver The g5 support code broke some earlier models unfortunately as those bail out early from the detect function, before the point where I added the code to locate the PCI device for use with DMA allocations. This patch fixes it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Export missing snd_pcm_format_*()Takashi Iwai2-16/+1
PCM Midlevel Export snd_pcm_format_size(). This function is used by some out-of-kernel drivers. Make snd_pcm_format_cpu_endian() macro for optimization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix Mic/CLFE sharing on AD1985Takashi Iwai1-6/+13
AC97 Codec Fixed Mic/CLFE jack sharing on AD1985 codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] usb-audio - fix synchronization packet interval with Audigy 2 NXClemens Ladisch1-2/+7
USB generic driver When a device does not provide the bRefresh field in its audio endpoint descriptors, use the bInterval field instead. Furthermore, increase the number of sync URBs for better queueing. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - claim all interfaces for Roland USB MIDI devicesClemens Ladisch1-50/+220
USB generic driver Many Roland USB MIDI devices have two interfaces that are currently not used by the driver; claim them anyway. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] fixed PAUSE ioctl for user space interfaceJaroslav Kysela1-1/+1
Timer Midlevel - fixed traditional cut-n-paste error Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Change some timer ioctls due to conflictionTakashi Iwai2-0/+15
Timer Midlevel,ALSA Core Change values of some timer ioctls to avoid confliction with FIO* ioctls. The protocol version is increased to indicate this change. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add missing PAUSE ioctlTakashi Iwai2-0/+13
Timer Midlevel Added the missing implemenation of TIMER PAUSE ioctl. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add PnP ID ADS7180Takashi Iwai1-0/+2
AD1816A driver Added PnP ID 'ADS7180' (AD1816?). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Suppress debug messageTakashi Iwai1-1/+1
Control Midlevel Suppress 'unknown ioctl' debug message (replaced with snd_printdd). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add Analog Devices vendor nameTakashi Iwai1-0/+1
HDA Codec driver Added the missing vendor name entry for Analog Devices. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Allow more than 2 channel modesTakashi Iwai1-6/+16
HDA Codec driver Allow 'Channel Mode' control to have more than 2 modes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix a typo in position_fix module option typeTakashi Iwai1-1/+1
HDA Intel driver Fixed a typo in the type of position_fix module option. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Suppress error messageTakashi Iwai1-1/+1
HDA Codec driver Suppressing the error message regarding no AFG. This is often harmless (e.g. probing a modem codec). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] make code staticAdrian Bunk2-3/+3
CA0106 driver,HDA Codec driver This patch makes needlessly global code static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Remove obsolete mixer controlTakashi Iwai1-1/+0
AC97 Codec Removed the obsolete mixer control for AD1985. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] usb-audio - avoid unnecessary double bufferingClemens Ladisch1-0/+2
USB generic driver When a USB packet boundary falls exactly on a buffer boundary, hwptr remains at the end of the buffer which causes an overflow in the next iteration and triggers double buffering although the next packet would actually be contiguous. This patch ensures that hwptr is always smaller than buffer_size. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - sanity-check sync feedback frequency valuesClemens Ladisch1-13/+9
USB generic driver Check that the synchronization feedback frequency values returned by the device are more or less near the nominal frequency. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] Rename pci_vendor/pci_device to pci_subvendor/pci_subdeviceTakashi Iwai3-57/+57
HDA Codec driver,HDA generic driver Renamed pci_vendor/pci_device fields to pci_subvendor/pci_subdevice. They are really PCI subsystem IDs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add support of VIA VT8251/VT8237A HD-Audio controllersTakashi Iwai1-1/+4
Documentation,HDA Intel driver Added the support of VIA VT8251/VT8237A HD-Audio controllers. They are (almost) compatible with Intel ICH6/7. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Adding support for ATI IXP450 HD Audio device supportFrederick Li1-3/+20
Documentation,HDA Intel driver This patch changes the Intel HD Audio device driver to include the support of HD Audio device embedded in ATI south bridge IXP450. Because the design of ATI chipset follows intel HD Audio specification 1.0, the programming method is the same as that of intel HD Audio device exception one minor change which requires to enable snoop for DMA transport. There are 3 changes that have been made to hda_intel.c file. 1. Added device ID for ATI HD Audio device; 2. Increase maximum CODEC supported to 4; 3. Enable snoop during the driver initialization. Signed-off-by: Frederick Li <fli@ati.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add test model for debugging ALC880 devicesTakashi Iwai1-1/+270
HDA Codec driver Added 'test' model for testing/debugging the devices with ALC880 codec. This model is built only when CONFIG_SND_DEBUG is set. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add ASUS Z71V supportTakashi Iwai1-0/+109
Documentation,HDA Codec driver Added the ASUS Z71V (or similar) laptop support. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add position_fix module optionTakashi Iwai1-37/+48
Documentation,HDA Intel driver Added position_fix module option to HDA-intel driver for fixing up the DMA position (possibly hardware-) bugs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] maestro3: HP OmniBook HW volume button magicVille Syrjala1-0/+12
Maestro3 driver Some HP OmniBook laptops (500 and 6000 at least) require some GPIO magic before the HW volume buttons work. This patch makes them work mostly. Something is still missing to make them work perfectly. However I have been unable to figure out what exactly. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] maestro3: Add HW volume button supportVille Syrjala1-4/+103
Maestro3 driver Add support for hardware volume buttons. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] maestro3: Fix interrupt ack and disableVille Syrjala1-2/+2
Maestro3 driver Due to a typo interrupts were never actually acked or disabled. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] ARM AACI primecell driverRussell King4-0/+1223
ARM,/arm/Makefile,ARM AACI PL041 driver Add support for the ARM AACI Primecell, which provides an AC'97 based interface. This driver only provides playback support. This has been extensively tested with an LM4549 AC'97 codec. Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] ARM DMA subsystemRussell King2-0/+84
ARM DMA routines The patch below adds a convenient re-usable shim around the extended ARM DMA API, and is used by several ARM ALSA drivers. Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] emu10k1 - add SB0060 to emu_chip_detailsMikael Magnusson1-0/+6
EMU10K1/EMU10K2 driver The following patch adds SB0060 to emu_chip_details. Signed-off-by: Mikael Magnusson <mikaelmagnusson@glocalnet.net> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] usb-audio - bind to control interface instead of usb_deviceClemens Ladisch1-2/+1
USB generic driver Bind the device files to the (first) audio control interface instead of the entire USB device. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] ac97 - enable multichannel output on AD198x codecsClemens Ladisch1-2/+4
AC97 Codec The code for AD1980/AD1985/AD1986 codecs forgot to enable the code to switch the jack sharing bits on AD1888-compatible codecs. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] ac97 - fix Mic jack sharing on AD1888 codecsClemens Ladisch1-1/+1
AC97 Codec The code for modifying the center/LFE disable bit on AD1888 codecs accidentally toggled the mute split bit instead. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - add a proc file for Audigy 2 NX jack statusClemens Ladisch1-3/+51
USB generic driver This patch adds a proc file for the SB Audigy 2 NX which shows the connection status of the various jacks. Unfortunately, no SPDIF input frequency (yet). Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - remove superfluous LIRC ioctlsClemens Ladisch1-33/+0
USB generic driver The ioctls for LIRC compatibility can be removed because the infrastructure and detection stuff is better done in user space. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - enable high speed (not) on Audigy 2 NXClemens Ladisch1-0/+24
USB generic driver The SB Audigy 2 NX needs a special boot-up command before it works in high speed mode. However, we don't actually enable it yet because high speed synchronization doesn't seem to work with this device. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] Fix snd-usb-audio dependency on snd-hwdep.James Courtier-Dutton1-0/+1
USB Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] cs4281 - fix DLLRDY not seen problemArnaud Patard1-0/+8
CS4281 driver Reset the FPDN bit of the EPPMC register if needed. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Increase capture buffer sizes.James Courtier-Dutton1-4/+6
EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Implement different capture sources.James Courtier-Dutton1-1/+61
EMU10K1/EMU10K2 driver e.g. When HD Capture source is set to SPDIF, setting HD Capture channel to 0 captures from CDROM digital input. setting HD Capture channel to 1 captures from SPDIF in. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Support multiple capture rates on p16v.James Courtier-Dutton1-18/+35
EMU10K1/EMU10K2 driver The capture rate does in fact vary, but it only captures anything if the HD Capture source is set to I2S or AC97. I have not tested if the sound is actually captured from an physical input of some type or not. TODO: Get SPDIF capture working. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] usb-audio - set sample rate attribute on Audigy 2 NX endpointsClemens Ladisch1-11/+10
USB generic driver The SB Audigy 2 NX does not advertise the sample rate attribute in its endpoint descriptors although it supports it. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - Audigy 2 NX blinkenlightsClemens Ladisch1-11/+95
USB generic driver Adds mixer controls for the CMSS/Dolby Digital/Power LEDs on the SB Audigy 2 NX. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - make SB remote control device LIRC compatibleClemens Ladisch1-2/+37
USB generic driver Add ioctls to the Sound Blaster remote control hwdep device so that it can be used with LIRC. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - use only one packet in synchronization feedback URBsClemens Ladisch1-62/+31
USB generic driver Do not use more than one packet in synchronization feedback URBs because it would be pointless to send or receive more than one value at the same time. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - use proper interval between synchronization packetsClemens Ladisch1-5/+7
USB generic driver Add sanity checks when reading the bRefresh value, and actually use it for the synchronization packets instead of polling at 1000 Hz. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - allow type 0 extension unitsClemens Ladisch1-3/+0
USB generic driver Extension units can have type 0, so do not ignore them when constructing mixer controls. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - cache vendor/product IDsClemens Ladisch5-145/+139
USB generic driver Cache the decoded values of idVendor/idProduct to get rid of most of those ugly le16_to_cpu() calls. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - add Extigy/Audigy 2 NX remote control supportClemens Ladisch1-0/+159
ALSA Core,USB generic driver Add an hwdep interface that supports reading remote control data from Sound Blaster Extigy and Audigy 2 NX devices. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - add mixer control notificationsClemens Ladisch1-3/+98
USB generic driver Add support for the optional status interrupt endpoint in audio control interfaces, and translate USB status notifications into ALSA mixer control notifications. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - move mixer data into separate structClemens Ladisch3-45/+105
USB generic driver Move all data related to audio control interfaces into a separate struct local to usbmixer.c. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - reduce size of unitbitmap arrayClemens Ladisch1-1/+1
USB generic driver Unit/terminal IDs are 8-bit integers, so the unitbitmap variable does not need to be bigger than 256 bits. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - restrict Audigy 2 NX frequencies to 48/96 kHzClemens Ladisch1-3/+5
USB generic driver On the SB Audigy 2 NX, frequency feedback doesn't quite work when playing at 44.1 kHz, so temporarily disable this frequency. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] hdsp - solved big endian problemThomas Charbonnel1-12/+2
RME HDSP driver ppc firmware upload fix Signed-off-by: Thomas Charbonnel <thomas@undata.org> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] ac97 - add the 'Mic Front Input Switch' control (ALC850)Sergey Vlasov1-0/+1
AC97 Codec Add the 'Mic Front Input Switch' control to the mixer for ALC850. Enabling this input is required for using the front panel microphone connector with ASUS A8V motherboard. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] fix behaviour of ac97_enum_mixer elementsSergey Vlasov1-2/+2
AC97 Codec ac97_enum mixer elements (e.g., 'Capture Source') did not work because of wrong bitmask calculation in snd_ac97_get_enum_double() and snd_ac97_put_enum_double(). https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1072 Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] usb-audio - remove superfluous parameterClemens Ladisch4-6/+6
USB generic driver,USB USX2Y This patch removes the superfluous driver parameter from the disconnect functions. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - add selector unit names override for Audigy 2 NXClemens Ladisch2-6/+69
USB generic driver Add a mechanism to specify source names of selector units, and add such names for the SB Audigy 2 NX. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio - show exact synchronous frequency in proc fileClemens Ladisch1-2/+3
USB generic driver In the streamX proc file, show the exact number of samples per USB frame as 16.16 hexadecimal floating point value. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] usb-audio: add Audigy 2 NX control namesClemens Ladisch1-0/+45
USB generic driver Add a mixer control map for the SB Audigy 2 NX so that we get meaningful mixer control names. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] Add dxs_support entry for MSI K8T Neo-FIS2RTakashi Iwai1-0/+1
VIA82xx driver Report by Ronny V. Vindenes <s864@ii.uib.no> Add dxs_support=5 for MSI K8T Neo-FIS2R. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix and cleanup of CM9880 auto-configurationTakashi Iwai3-12/+24
HDA Codec driver Fix and cleanup of CM9880 automatic PIN configuration. snd_hda_codec_setup_stream() doesn't do anything when NID is 0. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Show PIN jack typeTakashi Iwai1-1/+3
HDA generic driver Show the jack type of each PIN default configuration entry. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix a typo in commentsTakashi Iwai1-1/+1
HDA generic driver Fix a typo in comments. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] prevent oops & dead keyboard on usb unplugging while the device is ↵Karsten Wiese2-5/+8
being used USB generic driver,USB USX2Y Without this patch, some usb kobjects, which are parents to the usx2y's kobjects can be freed before the usx2y's. This led to an oops in get_kobj_path_length() and a dead keyboard, when the usx2y's kobjects were freed. The patch ensures the correct sequence. Tested ok on kernel 2.6.12-rc2. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] trivial warning fix for emu10k1Jesper Juhl1-1/+1
EMU10K1/EMU10K2 driver When building with gcc -W sound/pci/emu10k1/emupcm.c produces this little warning in 2.6.12-rc2-mm3 : sound/pci/emu10k1/emupcm.c:265: warning: 'inline' is not at beginning of declaration No big deal, but trivial to fix. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add dxs_support=5 for Insight P4-ITXTakashi Iwai1-0/+1
VIA82xx driver Added dxs_support=5 entry for Insight P4-ITX. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Misc clean upTakashi Iwai1-7/+5
HDA Codec driver Misc clean up: move the definitions of constants for pinctl to a single place. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Remove dead codeTakashi Iwai1-4/+0
HDA Codec driver Removed the dead (duplicated) code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add AD1981HD and AD1983 supportTakashi Iwai1-169/+522
HDA Codec driver Added the support of AD1981HD and AD1983 codecs. Including the fix for AD1986A. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] add sigmatel codec supportMatt4-1/+565
HDA generic driver,HDA Codec driver Add initial SigmaTel codec support for 9200 and 922x. Note that this hda patch relies on the configuration default registers to be set correctly (normally by BIOS/firmware) in order for it to set up pin widgets properly. There's a test switch in the patch so it will work with the SigmaTel reference boards that are usually plugged into a system that doesn't set the configuration default registers. It supports 2 channel analog out and line/mic in. I plan to add >2 channel support and spdif support shortly. Please apply. Signed-off-by: Matt <matt@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] hda: fix vref cap and ctl valuesMatt2-8/+14
HDA Codec driver,HDA generic driver Fix some vref defines so they are valid for the different bits in the pin cap and pin control registers. Please apply. Signed-off-by: Matt <matt@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Improve the shared-jack handling on ac97Takashi Iwai1-190/+236
AC97 Codec The handling of shared surround/clfe output jacks with line/mic-in on some AC97 codecs is improved. Instead of 'Line-In As Surround' or 'Mic As Center/LFE' switch, two new enum controls are introduced: 'Channel Mode' and 'Surround Jack Mode'. The formar changes the current output mode among 2, 4 and 6-channels. The latter controls whether the jacks are shared or independent. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix capture on OSS emulationTakashi Iwai1-1/+2
ALSA<-OSS emulation Fix the noisy capture on some hardwares over OSS emulation. Change back to avail_min = period_size for capture direction. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix permissions in some /proc filesTakashi Iwai5-0/+10
PCM Midlevel,CA0106 driver,EMU10K1/EMU10K2 driver Fix by Guillaume Chazarain <guichaz@yahoo.fr>: Some tunables in /proc have a write() function, but as their permission does not reflect it, it can be confusing to the user. So here is a patch that corrects the mode of those files. Note that I have only tested the 'xrun_debug' entry. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix compile warningTakashi Iwai1-0/+2
EMU10K1/EMU10K2 driver Fix compile warnings regarding the unused variables/functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Replace pci_module_init() with pci_register_driver()Takashi Iwai36-55/+174
Documentation,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,VIA82xx-modem driver ALI5451 driver,au88x0 driver,CA0106 driver,CS46xx driver EMU10K1/EMU10K2 driver,HDA Intel driver,ICE1712 driver,ICE1724 driver KORG1212 driver,MIXART driver,NM256 driver,RME HDSP driver RME9652 driver,Trident driver,Digigram VX222 driver,YMFPCI driver Replace the obsolete pci_module_init() with pci_register_driver(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix SPDIF rate with dxs_support=4Takashi Iwai1-1/+2
VIA82xx driver Fix SPDIF rate setting with dxs_support=4. It should be 48k fixed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Support all sample rate conversion capabilities of DXS channelsSergey Vlasov1-3/+17
Documentation,VIA82xx driver Add support for full sample rate conversion capabilities of DXS channels present in VIA VT8233/5/7 controllers: - any sample rate in the 8000 ... 48000 Hz range is supported even if the AC'97 codec supports only 48000 Hz output; - different DXS channels can use different sample rates at the same time (the controller performs required sample rate conversion and mixing in hardware). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add PCI ID for Gallant Odyssey Sound 4Sergey Vlasov1-0/+1
FM801 driver The Gallant Odyssey Sound 4 card is based on the ForteMedia FM801 chip, but has a different PCI ID. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] remove dead codeAdrian Bunk1-23/+8
YMFPCI driver This patch removes some dead code found by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Provides preliminary support for the Terratec Phase 28 cardSimone Zinanni3-1/+751
ICE1712 driver Provides preliminary support for the Terratec Phase 28 card. Not extensively tested and probably buggy, but it seems to work. Signed-off-by: Simone Zinanni <simone@develer.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix typo in speaker routing. Now sound comes from the correct speakersJames Courtier-Dutton1-1/+1
EMU10K1/EMU10K2 driver when using the p16v HD device. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Improve playback startup. Increase buffer size, and reduce xruns.James Courtier-Dutton1-4/+5
EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Improve SPDIF playback via the P16V/CA0151 chip.James Courtier-Dutton3-9/+30
EMU10K1/EMU10K2 driver Although we can set 44100 as the output rate, the SPDIF can do it, but the Analog output cannot. The SPDIF has the bug, whereby the Left channel arrives one sample late, so although we don't do any resampling, it is not good for AC3 non-audio output. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Display SPDIF in status in proc fs 'spdif-in' file.James Courtier-Dutton1-23/+38
EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] choose multi-channel jacks automaticallyTakashi Iwai1-3/+230
HDA Codec driver Patch by C.L. Tien <cltien@cmedia.com.tw>: The patch makes cm9880 to choose multi-channel jacks automatically. 1. I found the current code has basic_init, which already includes necessary controls for 6-stack initialization, so I don't need another model. 2. I add a new model 'auto' to let the driver find a. if there are option real panel/front panel, b. the jacks to be used for multichannel. Because the jack color are based on MS's channel sequence, so the 'auto' model will pick the same jacks for multichannel MS uses. I did this to hope to minimize users questions. These code can also be applied to other codecs but I don't have any to test. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] virmidi - fix ioctl parameter passing when setting client nameClemens Ladisch1-1/+1
ALSA sequencer The last change to reduce stack usage did not adjust the parameter to SNDRV_SEQ_IOCTL_SET_CLIENT_IOCTL which resulted in passing the address of the pointer instead of the structure. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] MC97 registers resetSasha Khapyorsky1-1/+5
AC97 Codec Separated ac97 registers reset for audio and modem (or both) as recommended in AC97 spec. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix MC97 codec initializationSasha Khapyorsky1-5/+5
AC97 Codec This (especially 12000 -> 8000 sample rate replace) fix popular 'MC97 converters.. not ready' error with modem codecs initializations. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix 'semaphore is not ready' problem with snd-intel8x0mSasha Khapyorsky1-0/+2
Intel8x0-modem driver With some intel based ac97 modems codec access semaphore is not cleared after 0x54 AC97 register (GPIO_STATUS) reads. This may causes problems with newly applied modem mixer (Off-hook switch) and in other cases. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Add CM9780 support, fix CM9761 SPDIFTakashi Iwai3-24/+137
AC97 Codec - Added CM9780 patch - Fix the SPDIF support on CM9761/CM9780 - Allow the generic enum callback to pass any number (not power of 2) as the value mask Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Remove unused variablesTakashi Iwai1-5/+0
AC97 Codec Removed unused variables (the old control definitions). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Check revision for the proper detection of audigy 2Takashi Iwai1-4/+14
EMU10K1/EMU10K2 driver Check ther revision to detect non-listed audigy 2 boards. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] usb-audio - BOSS GS-10 PCM supportClemens Ladisch1-5/+23
USB generic driver This patch adds quirks to support 24-bit PCM I/O in the 'Advanced Driver' mode of the BOSS GS-10. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] virmidi - fix ioctl parameter passing when creating seq portClemens Ladisch1-1/+1
ALSA sequencer The last change to reduce stack usage did not adjust the parameter to SNDRV_SEQ_IOCTL_CREATE_PORT which resulted in passing the address of the pointer instead of the structure. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] timer - added tread semaphoreJaroslav Kysela1-20/+37
Timer Midlevel Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Add mixer map for Sound Blaster MP3+Takashi Iwai1-0/+28
USB generic driver Added the mixer mapping for Sound Blaster MP3+ by Pavel Mihaylov <bin@bash.info> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Audigy SB0090 identificationPeter Zubaj1-4/+14
EMU10K1/EMU10K2 driver This add identification of Audigy 1 model SB0090 and fixes problems with ac97 codec (mic not working). Signed-off-by: Peter Zubaj <pzad@pobox.sk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] usb-audio - allow USB MIDI quirks to specify endpoints explicitlyClemens Ladisch1-0/+3
USB generic driver This patch reintroduces the check for endpoint numbers that are specified explicitly in the quirk structure. This check was accidentally dropped in the last rewrite of snd_usbmidi_detect_endpoints(). Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] Fix the default id of multiple cardsTakashi Iwai1-1/+15
EMU10K1/EMU10K2 driver Fixed the default id string in case identical multiple cards exist. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Use old default id strings for compatibilityTakashi Iwai1-0/+18
EMU10K1/EMU10K2 driver Use expliciitly the old default id strings for backward compatibility. This will make 'alsactl restore' working again. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] clean up card featuresLee Revell4-49/+48
EMU10K1/EMU10K2 driver This patch converts the emu10k1 driver to use the card capabilities structure for some more things. Not extensively tested but seems to work. Signed-off-by: Lee Revell <rlrevell@joe-job.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix memory leakTakashi Iwai1-0/+2
ALSA sequencer Fixed memory leak by the last change of stack reduction. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix the detection of resolution of ac97 controlsTakashi Iwai1-2/+2
AC97 Codec Fixed the detection of bit resolution of ac97 mixer controls. This will fix the problem with TI ac97 codecs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Added identification for the Audigy ES.James Courtier-Dutton1-0/+5
EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Add's identification of the SB Live! Platinum [CT4760P]James Courtier-Dutton1-0/+4
EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] Adds Capture to P16V chip.James Courtier-Dutton2-32/+271
EMU10K1/EMU10K2 driver One can select which capture source, but one cannot yet set volumes. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-05-29[ALSA] fix multi-channel for model==fullChenLi Tien1-0/+6
HDA Codec driver The patch_cm9880.c can't play side/C/B channels from front panel jacks. I fixed it by adding select pin. Signed-off-by: ChenLi Tien <cltien@cmedia.com.tw> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Skip ac97 SPDIF controlsTakashi Iwai2-5/+1
CA0106 driver Skip building ac97 SPDIF controls via AC97_SCAP_NO_SPDIF. Clean up the code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Show currectly selected widget in proc_read for hda driverChenLi Tien1-2/+8
HDA generic driver During debugging for cm9880 multi-channel playback, I added the * after the currently selected widget, mixer widget doesn't need this but other 3 widget types need it. Signed-off-by: ChenLi Tien <cltien@cmedia.com.tw> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] kill dead codeAdrian Bunk1-4/+1
ALSA<-OSS emulation The Coverity checker found this obviously dead code. I'm not sure which of the if (plugin == NULL) is correct - this patch removes the one that couldn't be true. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-28[PATCH] ppc32: Fix Alsa PowerMac driver on old machinesBenjamin Herrenschmidt1-11/+19
The g5 support code broke some earlier models unfortunately as those bail out early from the detect function, before the point where I added the code to locate the PCI device for use with DMA allocations. This patch fixes it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-28Input:Adrian Bunk1-6/+6
This patch adds dummy gameport_register_port, gameport_unregister_port and gameport_set_phys functions to gameport.h for the case when a driver can't use gameport. This fixes the compilation of some OSS drivers with GAMEPORT=n without the need to #if inside every single driver. This patch also removes the non-working and now obsolete SOUND_GAMEPORT. This patch is also an alternative solution for ALSA drivers with similar problems (but #if's inside the drivers might have the advantage of saving some more bytes of gameport is not available). The only user-visible change is that for GAMEPORT=m the affected OSS drivers are now allowed to be built statically (but they won't have gameport support). Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-05-06[PATCH] fix alsa via82xx resumeJens Axboe1-1/+1
Trying software suspend on my workstation makes it crash on resume. The problem is that via82xx marks the chip_init function as _devinit, but calls it on resume as well. Cc: <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-05[PATCH] Add CXT48 to modem black list in ac97Herbert Xu1-0/+1
The following patch works around the misdetection of the CXT48 codec as a modem by the OSS ac97 driver. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-05[PATCH] interwave needs isa pnpAndrew Morton1-0/+1
Fix bug #4509 Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-05[PATCH] intel8x0: fix for Intel AC'97 audio driverJason Gaston1-3/+3
This patch fixes a typo in the Intel AC'97 audio driver intel8x0.c for Intel ESB2. Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com> Cc: <tiwai@suse.de> Cc: <perex@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01[PATCH] ppc32: More fixlet for pmac soundBenjamin Herrenschmidt1-1/+1
As Al Viro noticed, my previous fix missed one instance of "device" in the driver local debug code. Harmless unless you tweak the #define's in there but still work fixing. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01[PATCH] ppc32: Small build fix for alsa powermacBenjamin Herrenschmidt1-2/+1
My newer iMac mini driver doesn't build with verbose debug enabled. This fixes it, and removes an erroneous error printk (since it's normal on some machine to not find some gpios on the "first try"). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01[PATCH] sound/oss/sonicvibes.c: fix an array overflowAdrian Bunk1-1/+1
This patch fixes an array overflow found by the Coverity checker. 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-05-01[PATCH] hda_intel: Intel ESB2 supportJason Gaston1-1/+3
This adds the Intel ESB2 HD Audio DID to the hda_intel.c audio driver. Signed-off-by:  Jason Gaston <Jason.d.gaston@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01[PATCH] pmac: save master volume on sleepColin Leroy1-0/+5
Ben's patch that shutdowns master switch and restores it after resume ("pmac: Improve sleep code of tumbler driver") isn't enough here on an iBook (snapper chip). The master switch is correctly saved and restored, but somehow tumbler_put_master_volume() gets called just after tumbler_set_master_volume() and sets mix->master_vol[*] to 0. So, on resuming, the master switch is reenabled, but the volume is set to 0. Here's a patch that also saves and restores master_vol. Signed-off-by: Colin Leroy <colin@colino.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01[PATCH] ppc32: add sound support for Mac MiniBenjamin Herrenschmidt5-3/+398
This patch applies on top of my previous g5 related sound patches and adds support for the Mac Mini to the PowerMac Alsa driver. However, I haven't found any kind of HW support for volume control on this machine. If it exist, it's well hidden. That means that you probably want to make sure you use software with the ability to do soft volume control, or use Alsa 0.9 pre-release with the softvol plugin. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01[PATCH] ppc64: improve g5 sound headphone muteBenjamin Herrenschmidt1-6/+17
This patch fixes a couple more issues with the management of the GPIOs dealing with headphone and line out mute on the G5. It should fix the remaining problems of people not getting any sound out of the headphone jack. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-26[PATCH] fix SND_POWERMAC dependenciesAl Viro1-1/+1
This beast is pmac-only; moreover, it won't build on other subarchitectures. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-24[PATCH] msnd_pinnacle GFP fixAl Viro1-1/+1
Dumb typo - __get_free_page() takes gfp mask (in this case - GFP_KERNEL), not the page size... Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-16[PATCH] let SOUND_AD1889 depend on PCIAdrian Bunk1-1/+1
Compiling SOUND_AD1889 with PCI=n results in the following compile error: sound/built-in.o(.text+0x24f0c): In function `ad1889_remove': : undefined reference to `pci_release_region' This patch adds the missing dependency on PCI. 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-04-16[PATCH] opl3sa2: MODULE_PARM_DESCMagnus Damm1-1/+1
opl3sa2: Fix "irq"-parameter name typo for parameter description. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>