firefly-linux-kernel-4.4.55.git
18 years ago[ALSA] Add dB scale information to opl3sa2 driver
Takashi Iwai [Tue, 22 Aug 2006 11:16:39 +0000 (13:16 +0200)]
[ALSA] Add dB scale information to opl3sa2 driver

Added the dB scale information to opl3sa2 driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to ad1848 driver
Takashi Iwai [Tue, 22 Aug 2006 11:16:25 +0000 (13:16 +0200)]
[ALSA] Add dB scale information to ad1848 driver

Added the dB scale information to ad1848 driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to ad1816a driver
Takashi Iwai [Tue, 22 Aug 2006 11:16:01 +0000 (13:16 +0200)]
[ALSA] Add dB scale information to ad1816a driver

Added the dB scale information to ad1816a driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to dummy driver
Takashi Iwai [Wed, 23 Aug 2006 11:07:19 +0000 (13:07 +0200)]
[ALSA] Add dB scale information to dummy driver

Added the dB scale information to dummy driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to trident driver
Takashi Iwai [Wed, 23 Aug 2006 11:01:37 +0000 (13:01 +0200)]
[ALSA] Add dB scale information to trident driver

Added the dB scale information to trident driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to fm801 driver
Takashi Iwai [Wed, 23 Aug 2006 10:32:06 +0000 (12:32 +0200)]
[ALSA] Add dB scale information to fm801 driver

Added the dB scale information to fm801 driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to cs4281 driver
Takashi Iwai [Wed, 23 Aug 2006 10:14:25 +0000 (12:14 +0200)]
[ALSA] Add dB scale information to cs4281 driver

Added the dB scale information to cs4281 driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add dB scale information to ak4531 codec
Takashi Iwai [Wed, 23 Aug 2006 10:04:34 +0000 (12:04 +0200)]
[ALSA] Add dB scale information to ak4531 codec

Added the dB scale information to ak4531 codec driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Added TLV support to VIA82xx driver
Takashi Iwai [Mon, 21 Aug 2006 16:44:54 +0000 (18:44 +0200)]
[ALSA] Added TLV support to VIA82xx driver

Added the TLV support to VIA82xx driver for addition of
dB range information.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add TLV support to AC97 codec driver
Takashi Iwai [Mon, 21 Aug 2006 16:44:31 +0000 (18:44 +0200)]
[ALSA] Add TLV support to AC97 codec driver

Added the TLV support to AC97 codec driver for addition of
dB range information.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] intel_hda: MSI support
Stephen Hemminger [Mon, 21 Aug 2006 17:17:46 +0000 (19:17 +0200)]
[ALSA] intel_hda: MSI support

Simple patch to enable Message Signalled Interrupts for the HDA Intel
audio controller.  Tested with:
 Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
MSI is better because it means audio doesn't end up sharing IRQ with USB.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] make sound/pci/emu10k1/emu10k1.c:snd_emu10k1_resume() static
Adrian Bunk [Mon, 21 Aug 2006 17:22:45 +0000 (19:22 +0200)]
[ALSA] make sound/pci/emu10k1/emu10k1.c:snd_emu10k1_resume() static

This patch makes the needlessly global snd_emu10k1_resume() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: hardware constrains added
Krzysztof Helt [Wed, 23 Aug 2006 09:37:36 +0000 (11:37 +0200)]
[ALSA] sparc dbri: hardware constrains added

This patch adds ALSA hardware constrains so stereo is possible
only with 16-bit format. It contains small cleanups to ring
buffered code as well.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: ring buffered version
Krzysztof Helt [Mon, 21 Aug 2006 17:30:57 +0000 (19:30 +0200)]
[ALSA] sparc dbri: ring buffered version

It is a complete rework of low level layer to work on ring
buffers for comands and data descriptors. This removes annoying
noise due to delay in data buffer switching.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: simplifed linking time slot function
Krzysztof Helt [Mon, 21 Aug 2006 17:29:59 +0000 (19:29 +0200)]
[ALSA] sparc dbri: simplifed linking time slot function

A simplified routines to link and unlink time slots.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: fixed setting of burst size after reset
Krzysztof Helt [Mon, 21 Aug 2006 17:29:18 +0000 (19:29 +0200)]
[ALSA] sparc dbri: fixed setting of burst size after reset

A proper way to set DBRI's burst size. The size must be set after
each chip reset.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: more driver cleanup
Krzysztof Helt [Mon, 21 Aug 2006 17:28:16 +0000 (19:28 +0200)]
[ALSA] sparc dbri: more driver cleanup

A general clean up and redudant code removal.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: removal of dri_desc struct
Krzysztof Helt [Mon, 21 Aug 2006 17:27:35 +0000 (19:27 +0200)]
[ALSA] sparc dbri: removal of dri_desc struct

The structure is in big part redudant.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda-intel - Switch to polling mode for CORB/RIRB communication
Takashi Iwai [Mon, 21 Aug 2006 15:57:44 +0000 (17:57 +0200)]
[ALSA] hda-intel - Switch to polling mode for CORB/RIRB communication

Automatically switch to polling mode for CORB/RIRB communication
if the irq-driven mode seems not working well.  If the polling
mode still doesn't work, switch to single_cmd mode as fallback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda-codec - Add support for new Intel boards with Stac9227 codec
Tobin Davis [Tue, 22 Aug 2006 17:44:45 +0000 (19:44 +0200)]
[ALSA] hda-codec - Add support for new Intel boards with Stac9227 codec

This patch adds full 5.1 audio support for Intel boards
with the SigmaTel 9227 codec chip (946, 963, 965 series).

Signed-off-by: Tobin Davis <tobinx.b.davis@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda-codec - add missing device ids for Intel 945 boards
Tobin Davis [Tue, 22 Aug 2006 17:43:46 +0000 (19:43 +0200)]
[ALSA] hda-codec - add missing device ids for Intel 945 boards

This patch adds missing device ids for Intel 945 motherboards.

Signed-off-by: Tobin Davis <tobinx.b.davis@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix missing selection of CONFIG_VIDEO_DEV from SND_FM801_TEA575X
Takashi Iwai [Tue, 22 Aug 2006 14:35:19 +0000 (16:35 +0200)]
[ALSA] Fix missing selection of CONFIG_VIDEO_DEV from SND_FM801_TEA575X

Fixed the missing selection of CONFIG_VIDEO_DEV from SND_FM801_TEA575X.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda-codec - Fix headphone output for some Intel 945 systems
Tobin Davis [Mon, 21 Aug 2006 17:02:10 +0000 (19:02 +0200)]
[ALSA] hda-codec - Fix headphone output for some Intel 945 systems

This patch enables headphone output at initialization for Intel
945 based systems that don't have proper detection circuitry.

Signed-off-by: Tobin Davis <tobinx.b.davis@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda-codec - add missing device ids
Tobin Davis [Mon, 21 Aug 2006 17:01:12 +0000 (19:01 +0200)]
[ALSA] hda-codec - add missing device ids

This patch adds missing device ids for Intel 915 and D102GGC
motherboards.

Signed-off-by: Tobin Davis <tobinx.b.davis@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] riptide: fix compile errors with older gcc
Clemens Ladisch [Fri, 18 Aug 2006 07:03:45 +0000 (09:03 +0200)]
[ALSA] riptide: fix compile errors with older gcc

Change the syntax of a union initialization that is not understood by
gcc 2.x.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add missing TLV callbacks for HD-audio codecs
Takashi Iwai [Thu, 17 Aug 2006 16:21:36 +0000 (18:21 +0200)]
[ALSA] Add missing TLV callbacks for HD-audio codecs

Added missing TLV callbacks for HD-audio codec supports.
Also cleaned up the tlv callback for ad1986a (no mutex is needed there).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix some typos in snd-dummy driver
Takashi Iwai [Thu, 17 Aug 2006 15:12:19 +0000 (17:12 +0200)]
[ALSA] Fix some typos in snd-dummy driver

Fixed some typos in snd-dummy driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: removal of redudant volatile keywords
Krzysztof Helt [Thu, 17 Aug 2006 14:59:28 +0000 (16:59 +0200)]
[ALSA] sparc dbri: removal of redudant volatile keywords

It removes redudant volatile keywords.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri: removal of unused struct members
Krzysztof Helt [Thu, 17 Aug 2006 14:58:45 +0000 (16:58 +0200)]
[ALSA] sparc dbri: removal of unused struct members

It removes unused or rarely used members of defined structures.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix compile errors with older gcc
Takashi Iwai [Thu, 17 Aug 2006 14:23:07 +0000 (16:23 +0200)]
[ALSA] Fix compile errors with older gcc

Fixed compile errors with older gcc for initialization of a union.
sound/pci/ca0106/ca0106_mixer.c: At top level:
sound/pci/ca0106/ca0106_mixer.c:499: unknown field 'p' specified in initializer
sound/pci/ca0106/ca0106_mixer.c:499: warning: missing braces around initializer
sound/pci/ca0106/ca0106_mixer.c:499: warning: (near initialization for 'snd_ca0106_volume_ctls[0].tlv')

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add support for Sony Vaio AR 11B
Guillaume Munch [Wed, 16 Aug 2006 17:35:12 +0000 (19:35 +0200)]
[ALSA] Add support for Sony Vaio AR 11B

This patch adds automatic detection for Sigmatel ID 7664,
the sound chip in Sony Vaio AR 11B (european name).
- patch_stac7661 becomes patch_stac766x
- .id = 0x83847664 is added

Signed-off-by: Guillaume Munch <diabo@free.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix for LG K1 Express Laptop
Magnus Sandin [Wed, 16 Aug 2006 13:25:23 +0000 (15:25 +0200)]
[ALSA] Fix for LG K1 Express Laptop

Attached is the patch for the LG K1 Express (K1-2333V) laptop that
enables sound output.

Signed-off-by: Magnus Sandin <magnus@sandin.cx>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] emu10k1x: simplify around pci_register_driver()
Alexey Dobriyan [Wed, 16 Aug 2006 10:56:53 +0000 (12:56 +0200)]
[ALSA] emu10k1x: simplify around pci_register_driver()

Report errors to modprobe as side effect.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sound/pci/fm801: Use ARRAY_SIZE macro
Tobias Klauser [Wed, 16 Aug 2006 10:56:16 +0000 (12:56 +0200)]
[ALSA] sound/pci/fm801: Use ARRAY_SIZE macro

Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0])

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] sparc dbri removal of DBRI_NO_INTS
Krzysztof Helt [Wed, 16 Aug 2006 10:54:29 +0000 (12:54 +0200)]
[ALSA] sparc dbri removal of DBRI_NO_INTS

This patch removes define DBR_NO_INTS and all code related to
handling more than one dbri irq statuses block.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] dbri driver cleanup
Krzysztof Helt [Wed, 16 Aug 2006 10:53:34 +0000 (12:53 +0200)]
[ALSA] dbri driver cleanup

This is a small clean up of the dbri driver for sparc machines.
It contains also a fix to DBRI interrupt queue initialization.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] ice1712 - fix 1600->16000Hz value typo
Jaroslav Kysela [Tue, 15 Aug 2006 12:39:07 +0000 (14:39 +0200)]
[ALSA] ice1712 - fix 1600->16000Hz value typo

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Added model for Uniwill laptop with ALC861
Takashi Iwai [Wed, 9 Aug 2006 14:57:28 +0000 (16:57 +0200)]
[ALSA] Added model for Uniwill laptop with ALC861

Added a new model 'uniwill-m31' for Uniwill laptops with ALC861
codec chip.  The patch is taken from ALSA bug#2035, and modifeid.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Select I2C and I2C_POWERMAC in aoa/codecs/Kconfig
Takashi Iwai [Wed, 9 Aug 2006 12:51:14 +0000 (14:51 +0200)]
[ALSA] Select I2C and I2C_POWERMAC in aoa/codecs/Kconfig

Added the missing selection of I2C and I2C_POWERMAC
for Onyx and TAS codecs in aoa/codecs/Kconfig.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix compile warnings in ak4xxx-adda.c
Takashi Iwai [Wed, 9 Aug 2006 12:33:27 +0000 (14:33 +0200)]
[ALSA] Fix compile warnings in ak4xxx-adda.c

Fixed compile warnings in ak4xxx-adda.c reagarding missing
enum cases in switch.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Revolution 5.1 - complete the AK5365 support
Jochen Voss [Wed, 9 Aug 2006 12:26:26 +0000 (14:26 +0200)]
[ALSA] Revolution 5.1 - complete the AK5365 support

Complete the AK5365 support.
This adds a boolean control to toggle the soft mute feature of the
AK5365 chip.

Signed-off-by: Jochen Voss <voss@seehuhn.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Revolution 5.1 - register the AK5365 ADC with ALSA
Jochen Voss [Tue, 8 Aug 2006 19:13:42 +0000 (21:13 +0200)]
[ALSA] Revolution 5.1 - register the AK5365 ADC with ALSA

Enable capture support for the M-Audio Revolution 5.1 card,
by registering the ADC with ALSA.

Signed-off-by: Jochen Voss <voss@seehuhn.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Revolution 5.1 - add AK5365 ADC support
Jochen Voss [Tue, 8 Aug 2006 19:12:44 +0000 (21:12 +0200)]
[ALSA] Revolution 5.1 - add AK5365 ADC support

Add support for the AK5365 ADC.

Signed-off-by: Jochen Voss <voss@seehuhn.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] [snd-hda-intel] fix sound on some Asus W6A chips
Danny Tholen [Tue, 8 Aug 2006 16:59:07 +0000 (18:59 +0200)]
[ALSA] [snd-hda-intel] fix sound on some Asus W6A chips

This patch adds support in ALSA snd-hda-intel driver for Asus W6A
motherboard as reported in MDV Bugzilla #19962
(see http://qa.mandriva.com/show_bug.cgi?id=19962)

Signed-off-by: Danny Tholen <danny@mailmij.org>
Signed-off-by: Thomas Backlund <tmb@mandriva.org>
Signed-off-by: Thierry Vignaud <tvignaud@mandriva.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix the preselected model for HP machine
Takashi Iwai [Tue, 8 Aug 2006 11:01:14 +0000 (13:01 +0200)]
[ALSA] Fix the preselected model for HP machine

Fixed the preselected model for a HP machine with SSID 103c:3010
to use hp-3013 (ALSA bug#2157).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] usb-audio - Fix a typo of CONFIG_PROC_FS
Takashi Iwai [Fri, 4 Aug 2006 17:08:03 +0000 (19:08 +0200)]
[ALSA] usb-audio - Fix a typo of CONFIG_PROC_FS

Fixed a typo of CONFIG_PROC_FS in usbaudio.c.
The stream proc file appears again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix substream selection in PCM and rawmidi
Takashi Iwai [Fri, 4 Aug 2006 10:57:19 +0000 (12:57 +0200)]
[ALSA] Fix substream selection in PCM and rawmidi

The PCM and rawmidi substreams can be selected explicitly by opening
control handle and set via *_PREFER_SUBDEVICE ioctl.  But, when
multiple controls are opened, the driver gets confused.
The patch fixes the initialization of prefer_*_subdevice and the
check of multiple controls.  The first set subdevice is picked up
as the valid one.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] ppc-beep - handle errors from input_register_device()
Dmitry Torokhov [Thu, 3 Aug 2006 13:06:14 +0000 (15:06 +0200)]
[ALSA] ppc-beep - handle errors from input_register_device()

ppc-beep: handle errors from input_register_device()
(Also fixed the wrong memory release in the error path.)

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix control/status mmap with shared PCM substream
Takashi Iwai [Mon, 31 Jul 2006 14:51:51 +0000 (16:51 +0200)]
[ALSA] Fix control/status mmap with shared PCM substream

The flag to avoid 32bit-incompatible mmap for control/status records
should be outside the pcm substream instance since a substream can be
shared among multiple opens.  Now it's flagged in pcm_file list that
is directly assigned to file->private_data.
Also, removed snd_pcm_add_file() and remove_file() functions and
substream.files field that are not really used in the code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] es18xx - Add PnP BIOS support
Ondrej Zary [Mon, 31 Jul 2006 10:51:57 +0000 (12:51 +0200)]
[ALSA] es18xx - Add PnP BIOS support

This patch adds PnP BIOS support to es18xx driver. It allows ESS ES18xx sound
chips integrated in some notebooks (such as DTK FortisPro TOP-5A) that don't
appear as ISA cards (they aren't recognized by ISA PnP, only by PnP BIOS)
to 'just work' automatically.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda: sigmatel 9205 family support
Matt Porter [Mon, 31 Jul 2006 10:49:34 +0000 (12:49 +0200)]
[ALSA] hda: sigmatel 9205 family support

Adds support for the '9205 family' which includes some other
part numbers but 9205 is the first one. These are 4 channel
codecs, some have digital mic capability. Support for the digital
mic feature will come later.

Signed-off-by: Matt Porter <mporter@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] snd-emu10k1: Add a comment explaining the conversion function for dB gain.
James Courtier-Dutton [Fri, 28 Jul 2006 21:27:56 +0000 (22:27 +0100)]
[ALSA] snd-emu10k1: Add a comment explaining the conversion function for dB gain.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix noisy output with shared channel mode with hd-audio
Takashi Iwai [Fri, 28 Jul 2006 12:47:34 +0000 (14:47 +0200)]
[ALSA] Fix noisy output with shared channel mode with hd-audio

- Fix the wrong initialization of num_dacs when changing the channel
  mode between 2 and multi-channel modes.  It must be evaluated
  after calling snd_hda_ch_mode_put()
- Added the similar check of num_dacs fix in Realtek code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Don't set up the same PID twice in snd_hda_multi_out_analog_prepare
Takashi Iwai [Fri, 28 Jul 2006 12:44:31 +0000 (14:44 +0200)]
[ALSA] Don't set up the same PID twice in snd_hda_multi_out_analog_prepare

Check the hp_nid whether it's identical with front pin to avoid
the setup of the same widget node twice.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Misc fixes for Realtek HD-audio codecs
Takashi Iwai [Fri, 28 Jul 2006 12:42:36 +0000 (14:42 +0200)]
[ALSA] Misc fixes for Realtek HD-audio codecs

- Added model=arima for Arima W820Di1 with ALC882 codec chip
- Added EAPD-control verbs to TCL S700 init verbs
- Added missing model strings for Realtek codecs (to be specified
  via module option explicitly for testing/debugging)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add snd-mts64 driver for ESI Miditerminal 4140
Matthias Koenig [Thu, 27 Jul 2006 14:59:23 +0000 (16:59 +0200)]
[ALSA] Add snd-mts64 driver for ESI Miditerminal 4140

Added snd-mts64 driver for Ego Systems (ESI) Miditerminal 4140
by Matthias Koenig <mk@phasorlab.de>.
The driver requires parport (CONFIG_PARPORT).

Signed-off-by: Matthias Koenig <mk@phasorlab.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix Makefile of cs5535audio
Takashi Iwai [Thu, 27 Jul 2006 13:50:14 +0000 (15:50 +0200)]
[ALSA] Fix Makefile of cs5535audio

Use ifeq instead of ifdef in Makefile to make the maintenance of
out-of-kernel tree easier.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] HDA driver - do not set mute flag for dB scale (follow HDA specification)
Jaroslav Kysela [Thu, 27 Jul 2006 08:44:30 +0000 (10:44 +0200)]
[ALSA] HDA driver - do not set mute flag for dB scale (follow HDA specification)

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] via82xx - Add dxs_support entry for a FSC machine
Takashi Iwai [Tue, 25 Jul 2006 13:29:37 +0000 (15:29 +0200)]
[ALSA] via82xx - Add dxs_support entry for a FSC machine

Added dxs_support=5 entry for a FSC machine.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Added model for ASUS M2NPV-VM mobo
Takashi Iwai [Tue, 25 Jul 2006 12:51:16 +0000 (14:51 +0200)]
[ALSA] Added model for ASUS M2NPV-VM mobo

Added the proper model (3stack) for ASUS M2NPV-VM mobo with AD1986A
codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add support of Benq laptop with ALC262
Takashi Iwai [Tue, 25 Jul 2006 12:51:16 +0000 (14:51 +0200)]
[ALSA] Add support of Benq laptop with ALC262

Added the support of Benq laptop with ALC262 codec.
A model string 'benq' is added, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add hp-bpc model type for HP laptops
Takashi Iwai [Tue, 25 Jul 2006 12:51:15 +0000 (14:51 +0200)]
[ALSA] Add hp-bpc model type for HP laptops

Added 'hp-bpc' model type for HP xw4400-compatible laptops.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add model entry for Clevo m665n laptop
Takashi Iwai [Tue, 25 Jul 2006 12:51:15 +0000 (14:51 +0200)]
[ALSA] Add model entry for Clevo m665n laptop

Added the proper model entry for Clevo m665n laptop with ALC880 codec.
Also, added a model string 'clevo' to enable the clevo-type model option.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add model entry for Samsung X10 laptop
Takashi Iwai [Tue, 25 Jul 2006 12:51:14 +0000 (14:51 +0200)]
[ALSA] Add model entry for Samsung X10 laptop

Added the proper model entry (laptop-eapd) for Samsung X10-T2300
Culesa laptop with AD1986A codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] snd-emu10k1: Implement dB gain infomation.
James Courtier-Dutton [Sat, 22 Jul 2006 16:02:10 +0000 (17:02 +0100)]
[ALSA] snd-emu10k1: Implement dB gain infomation.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] snd-ca0106: Fix dB gain TLVs.
James Courtier-Dutton [Sat, 22 Jul 2006 14:02:48 +0000 (15:02 +0100)]
[ALSA] snd-ca0106: Fix dB gain TLVs.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] usb-audio: add more Yamaha devices
Clemens Ladisch [Fri, 21 Jul 2006 08:46:18 +0000 (10:46 +0200)]
[ALSA] usb-audio: add more Yamaha devices

Add some quirks for some unknown Yamaha USB MIDI devices.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] system timer: remove unused snd_timer_system_private.timer field
Clemens Ladisch [Fri, 21 Jul 2006 08:45:19 +0000 (10:45 +0200)]
[ALSA] system timer: remove unused snd_timer_system_private.timer field

Remove the snd_timer_system_private structure's timer field that was never used.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] timer: fix timer rescheduling
Clemens Ladisch [Mon, 17 Jul 2006 14:53:57 +0000 (16:53 +0200)]
[ALSA] timer: fix timer rescheduling

When checking whether a hardware timer needs to be rescheduled, we have
to compare against the previously scheduled interval and not against the
actual interval between the last two interrupts.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] system timer: clear correction value when timer stops
Clemens Ladisch [Mon, 17 Jul 2006 14:52:09 +0000 (16:52 +0200)]
[ALSA] system timer: clear correction value when timer stops

Do not retain the old correction value when the timer was stopped.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] system timer: accumulate correction for multiple lost ticks
Clemens Ladisch [Mon, 17 Jul 2006 14:51:37 +0000 (16:51 +0200)]
[ALSA] system timer: accumulate correction for multiple lost ticks

When multiple timer interrupts arrive too late, correct for all delays
instead of ignoring the earlier ones.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] system timer: fix lost ticks correction adjustment
Clemens Ladisch [Mon, 17 Jul 2006 14:50:56 +0000 (16:50 +0200)]
[ALSA] system timer: fix lost ticks correction adjustment

Fix the adjustment of the lost ticks correction variable in the case
when the correction has been fully taken into account in the next timer
expiration value.  Subtracting the scheduled ticks value would result in
an underflow.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add TLV support to snd-usb-audio driver
Takashi Iwai [Fri, 14 Jul 2006 13:18:19 +0000 (15:18 +0200)]
[ALSA] Add TLV support to snd-usb-audio driver

Added TLV-read support to snd-usb-audio driver for passing
the volume dB scale information to user-space.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Remove unused tlv_rw field from struct snd_kcontrol
Takashi Iwai [Fri, 14 Jul 2006 12:39:34 +0000 (14:39 +0200)]
[ALSA] Remove unused tlv_rw field from struct snd_kcontrol

Remove unused tlv_rw field from struct snd_kcontrol.  The callback is
set in tlv.c field, instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] snd-emu10k1: Implement 24bit capture via Philips 1361T ADC for SB0240 card.
James Courtier-Dutton [Sat, 8 Jul 2006 15:39:30 +0000 (16:39 +0100)]
[ALSA] snd-emu10k1: Implement 24bit capture via Philips 1361T ADC for SB0240 card.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] hda: fix sigmatel 9227/8/9 codec support
Matt Porter [Thu, 6 Jul 2006 16:49:10 +0000 (18:49 +0200)]
[ALSA] hda: fix sigmatel 9227/8/9 codec support

SigmaTel 9227/8/9 IDs must use the 927x patch.

Signed-off-by: Matt Porter <mporter@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] HDA codec & CA0106 - add/fix TLV support
Jaroslav Kysela [Wed, 5 Jul 2006 15:39:49 +0000 (17:39 +0200)]
[ALSA] HDA codec & CA0106 - add/fix TLV support

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] HDA codec - little code & comment cleanup
Jaroslav Kysela [Wed, 5 Jul 2006 15:39:14 +0000 (17:39 +0200)]
[ALSA] HDA codec - little code & comment cleanup

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Control API - more robust TLV implementation
Jaroslav Kysela [Wed, 5 Jul 2006 15:34:51 +0000 (17:34 +0200)]
[ALSA] Control API - more robust TLV implementation

- added callback option
- added READ/WRITE/COMMAND flags to access member
- added WRITE/COMMAND ioctls
- added SNDRV_CTL_EVENT_MASK_TLV for TLV change notifications
- added TLV support to ELEM_ADD ioctl

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] fm801: fixed broken previous patch for the FM tuner only code
Jaroslav Kysela [Tue, 4 Jul 2006 11:39:55 +0000 (13:39 +0200)]
[ALSA] fm801: fixed broken previous patch for the FM tuner only code

- do not allocate and enable interrupt
- do not do the FM tuner mute (it should be handled more cleanly)

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] fm801: Support FM only card
Andy Shevchenko [Tue, 4 Jul 2006 10:05:14 +0000 (12:05 +0200)]
[ALSA] fm801: Support FM only card

Signed-off-by: Andy Shevchenko <andy@smile.org.ua>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] add codec-specific controls for UCB1400
Mike Rapoport [Thu, 29 Jun 2006 15:15:33 +0000 (17:15 +0200)]
[ALSA] add codec-specific controls for UCB1400

This patch adds some codec-specific controls for Philips UCB1400 codec.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Add experimental support of aggressive AC97 power-saving mode
Takashi Iwai [Tue, 27 Jun 2006 16:28:53 +0000 (18:28 +0200)]
[ALSA] Add experimental support of aggressive AC97 power-saving mode

Added CONFIG_SND_AC97_POWER_SAVE kernel config to enable the support
of aggressive AC97 power-saving mode.  In this mode, the AC97
powerdown register bits are dynamically controlled at each open/close
of PCM streams.
The mode is activated via power_save option for snd-ac97-codec
driver.  As default it's off.  It can be turned on/off on the fly
via sysfs, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Deprecate snd_card_free_in_thread()
Takashi Iwai [Fri, 23 Jun 2006 12:38:26 +0000 (14:38 +0200)]
[ALSA] Deprecate snd_card_free_in_thread()

Deprecated snd_card_free_in_thread(), replaced with
snd_card_free_when_closed().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Unregister device files at disconnection
Takashi Iwai [Fri, 23 Jun 2006 12:38:23 +0000 (14:38 +0200)]
[ALSA] Unregister device files at disconnection

Orignally proposed by Sam Revitch <sam.revitch@gmail.com>.
Unregister device files at disconnection to avoid the futher accesses.
Also, the dev_unregister callback is removed and replaced with the
combination of disconnect + free.
A new function snd_card_free_when_closed() is introduced, which is
used in USB disconnect callback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Fix disconnection of proc interface
Takashi Iwai [Fri, 23 Jun 2006 12:37:59 +0000 (14:37 +0200)]
[ALSA] Fix disconnection of proc interface

- Add the linked list to each proc entry to enable a single-shot
  disconnection (unregister)
- Deprecate snd_info_unregister(), use snd_info_free_entry()
- Removed NULL checks of snd_info_free_entry()

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years ago[ALSA] Control API - TLV implementation for additional information like dB scale
Jaroslav Kysela [Thu, 1 Jun 2006 16:34:01 +0000 (18:34 +0200)]
[ALSA] Control API - TLV implementation for additional information like dB scale

This patch implements a TLV mechanism to transfer an additional information
like dB scale to the user space. The types might be extended in future.
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18 years agoNFS: unmark NFS direct I/O as experimental
Chuck Lever [Wed, 20 Sep 2006 18:33:07 +0000 (14:33 -0400)]
NFS: unmark NFS direct I/O as experimental

Remove the EXPERIMENTAL flag from the NFS_DIRECTIO option.

Test plan:
Unset the EXPERIMENTAL kernel build option and check to see that the NFS
direct I/O option is still available.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFS: add comments clarifying the use of nfs_post_op_update()
Chuck Lever [Wed, 20 Sep 2006 18:33:04 +0000 (14:33 -0400)]
NFS: add comments clarifying the use of nfs_post_op_update()

Comments-only change to clarify a detail of the NFS protocol and how it is
implemented in Linux.

Test plan:
None.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFSv4: rpc_mkpipe creating socket inodes w/out sk buffers
Steve Dickson [Wed, 6 Sep 2006 15:51:21 +0000 (11:51 -0400)]
NFSv4: rpc_mkpipe creating socket inodes w/out sk buffers

This patch stop rpc_mkpipe from create S_IFSOCK nodes what don't
have associated sk buffers attached (which causes SELinux to oops
during NFSv4 mounts). Instead the S_IFIFO mode bit is set which
probably make more sense and seems to work just fine during
my connectathon and fsx testing...

Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFS: Use SEEK_END instead of hardcoded value
Josef 'Jeff' Sipek [Sun, 17 Sep 2006 01:09:32 +0000 (21:09 -0400)]
NFS: Use SEEK_END instead of hardcoded value

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFSv4: When mounting with a port=0 argument, substitute port=2049
Trond Myklebust [Fri, 15 Sep 2006 20:31:56 +0000 (16:31 -0400)]
NFSv4: When mounting with a port=0 argument, substitute port=2049

RFC3530 states that the registered port 2049 for the NFS protocol should be
the default configuration in order to allow clients not to use the RPC
binding protocols.
If the mount program sends us a port=0, we therefore substitute port=2049.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFSv4: Poll more aggressively when handling NFS4ERR_DELAY
Trond Myklebust [Fri, 15 Sep 2006 12:30:46 +0000 (08:30 -0400)]
NFSv4: Poll more aggressively when handling NFS4ERR_DELAY

Change the initial retry delay from 1s to 0.1s (and then back off
exponentially).

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFSv4: Handle the condition NFS4ERR_FILE_OPEN
Trond Myklebust [Fri, 15 Sep 2006 12:25:04 +0000 (08:25 -0400)]
NFSv4: Handle the condition NFS4ERR_FILE_OPEN

Retry a few times before we give up: the error is usually due to ordering
issues with asynchronous RPC calls.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFSv4: Retry lease recovery if it failed during a synchronous operation.
Trond Myklebust [Thu, 14 Sep 2006 18:03:14 +0000 (14:03 -0400)]
NFSv4: Retry lease recovery if it failed during a synchronous operation.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFS: Don't invalidate the symlink we just stuffed into the cache
Trond Myklebust [Thu, 14 Sep 2006 18:03:14 +0000 (14:03 -0400)]
NFS: Don't invalidate the symlink we just stuffed into the cache

And slight optimisation of nfs_end_data_update(): directories never have
delegations anyway.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFS: Make read() return an ESTALE if the file has been deleted
Trond Myklebust [Thu, 14 Sep 2006 18:03:14 +0000 (14:03 -0400)]
NFS: Make read() return an ESTALE if the file has been deleted

Currently, a read() request will return EIO even if the file has been
deleted on the server, simply because that is what the VM will return
if the call to readpage() fails to update the page.

Ensure that readpage() marks the inode as stale if it receives an ESTALE.
Then return that error to userland.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFSv4: It's perfectly legal for clp to be NULL here....
J. Bruce Fields [Tue, 12 Sep 2006 15:53:23 +0000 (11:53 -0400)]
NFSv4: It's perfectly legal for clp to be NULL here....

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoNFS: nfs_lookup - don't hash dentry when optimising away the lookup
Trond Myklebust [Tue, 5 Sep 2006 16:27:44 +0000 (12:27 -0400)]
NFS: nfs_lookup - don't hash dentry when optimising away the lookup

If the open intents tell us that a given lookup is going to result in a,
exclusive create, we currently optimize away the lookup call itself. The
reason is that the lookup would not be atomic with the create RPC call, so
why do it in the first place?

A problem occurs, however, if the VFS aborts the exclusive create operation
after the lookup, but before the call to create the file/directory: in this
case we will end up with a hashed negative dentry in the dcache that has
never been looked up.
Fix this by only actually hashing the dentry once the create operation has
been successfully completed.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
18 years agoSUNRPC: Fix Oops in pmap_getport_done
Trond Myklebust [Sun, 3 Sep 2006 04:51:55 +0000 (00:51 -0400)]
SUNRPC: Fix Oops in pmap_getport_done

There is no guarantee that the parent task still exists when we exit from
the portmapper. Save the xprt instead.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>