]> pilppa.com Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years ago[ALSA] hda-codec - Fix Dell laptops support with STAC codecs
Takashi Iwai [Thu, 23 Aug 2007 17:04:28 +0000 (19:04 +0200)]
[ALSA] hda-codec - Fix Dell laptops support with STAC codecs

Fixed Dell laptops support with STAC92xx codecs.
Many pin-config models are introduced.  See ALSA-Configuration.txt
for details.
The patch taken from ALSA bug#3319, originally by Jorg Prante:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3319

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix ALC268 unsol event
Takashi Iwai [Thu, 23 Aug 2007 16:56:52 +0000 (18:56 +0200)]
[ALSA] hda-codec - Fix ALC268 unsol event

The unsol event of ALC268 is in the standard bit 26.
Also, fixed the Acer master controls, and added Extensa 5210
to the quirk list.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix mater mixer switch of ALC262 sony-amd model
Takashi Iwai [Wed, 22 Aug 2007 22:31:43 +0000 (00:31 +0200)]
[ALSA] hda-codec - Fix mater mixer switch of ALC262 sony-amd model

Fixed the master mixer switch of ALC272 sony-amd model.
It used a simple bind-control, but it resulted in unexpected
unmute of speaker output.  Now the control checks the HP jack
state apropriately, just like fujitsu model.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Fix compile with gcc-3.x
Takashi Iwai [Wed, 22 Aug 2007 22:01:09 +0000 (00:01 +0200)]
[ALSA] hda-intel - Fix compile with gcc-3.x

gcc-3.x doesn't like forward inlining:
  CC [M]  sound/pci/hda/hda_codec.o
sound/pci/hda/hda_codec.c: In function 'snd_hda_codec_free':
sound/pci/hda/hda_codec.c:517: sorry, unimplemented: inlining failed in call to 'free_hda_cache': function body not available
sound/pci/hda/hda_codec.c:534: sorry, unimplemented: called from here
sound/pci/hda/hda_codec.c:517: sorry, unimplemented: inlining failed in call to 'free_hda_cache': function body not available
sound/pci/hda/hda_codec.c:535: sorry, unimplemented: called from here

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] bt87x - Add known PCI ID entries
Takashi Iwai [Wed, 22 Aug 2007 12:19:45 +0000 (14:19 +0200)]
[ALSA] bt87x - Add known PCI ID entries

Added the PCI ID entries for known working devices
- Prolink PixelView PV-M4900
- Pinnacle  Studio PCTV rave

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: fix handling of FM/MIDI port addresses
Clemens Ladisch [Wed, 22 Aug 2007 07:45:03 +0000 (09:45 +0200)]
[ALSA] cmipci: fix handling of FM/MIDI port addresses

Make sure that the MPU-401 MIDI and OPL-3 FM devices are used only on
those chips where they are supported, and that the correct port
addresses are used.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] wavefront - Use standard firmware loader
Takashi Iwai [Tue, 21 Aug 2007 13:20:26 +0000 (15:20 +0200)]
[ALSA] wavefront - Use standard firmware loader

Use the standard firmware loader for loading ICS2115 OS firmware file.
This is the last old bad guy that is still using sys_open() and sys_read()
calls, and now all should be gone.
The patch also adds the missing description of module options related
with wavefront_synth.c.
Due to this rewrite, user will have to copy or make symlink the firmware
file appropriately to the standard firmware path such as /lib/firmware.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add missing capture boost for ALC268
Takashi Iwai [Tue, 21 Aug 2007 09:51:42 +0000 (11:51 +0200)]
[ALSA] hda-codec - Add missing capture boost for ALC268

Added missing capture boost controls for ALC268 codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: fix MIDI device name
Clemens Ladisch [Tue, 21 Aug 2007 06:58:35 +0000 (08:58 +0200)]
[ALSA] cmipci: fix MIDI device name

Initialize card->shortname early enough so that the MIDI device can pick
it up and does not need to have a generic name.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] usb-audio: add workaround for ESI MIDI Mate/RomIO II
Clemens Ladisch [Tue, 21 Aug 2007 06:57:34 +0000 (08:57 +0200)]
[ALSA] usb-audio: add workaround for ESI MIDI Mate/RomIO II

Force low speed USB MIDI devices like the ESI MIDI Mate and RomIO II to
use interrupt transfers because the USB core would not be happy about
low speed bulk transfers.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] usb-audio: allow low speed MIDI devices
Clemens Ladisch [Tue, 21 Aug 2007 06:56:54 +0000 (08:56 +0200)]
[ALSA] usb-audio: allow low speed MIDI devices

Allow low speed MIDI devices because newer devices from ESI do not
support full speed.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] usb-audio: allow output interrupt transfers for MIDI
Clemens Ladisch [Tue, 21 Aug 2007 06:56:08 +0000 (08:56 +0200)]
[ALSA] usb-audio: allow output interrupt transfers for MIDI

Allow output interrupt transfers for some MIDI devices that require
them.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add SPDIF support on ALC880 fujitsu model
Takashi Iwai [Mon, 20 Aug 2007 13:20:02 +0000 (15:20 +0200)]
[ALSA] hda-codec - Add SPDIF support on ALC880 fujitsu model

Some Fujitsu laptops have SPDIF output jack (ALSA bug#3009).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] dbri: driver cleanup
Krzysztof Helt [Mon, 20 Aug 2007 10:30:54 +0000 (12:30 +0200)]
[ALSA] dbri: driver cleanup

This patch fixes white spaces, spelling and formatting
to conform closer to the coding standard of the kernel.
It contains few fixes pointed out by the checkpatch.pl script.

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>
17 years ago[ALSA] hda-codec - Add support for Haier W66
Kailang Yang [Mon, 20 Aug 2007 09:31:23 +0000 (11:31 +0200)]
[ALSA] hda-codec - Add support for Haier W66

1. Support  Lenovo 420A (PCI SSID: 0x17aa 0x3bfc)
2. Support  Haier W66 (PCI SSID: 0x1991 0x5625)

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Add probe_mask blacklist
Takashi Iwai [Fri, 17 Aug 2007 07:17:36 +0000 (09:17 +0200)]
[ALSA] hda-intel - Add probe_mask blacklist

Added the black-list of probe_mask option to set the default value for
known non-working devices.  Currently, Thinkpad *60 and *61 series are set.
I'm afraid more will be added to the list in near future...

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix ALC268 acer model
Takashi Iwai [Fri, 17 Aug 2007 07:02:12 +0000 (09:02 +0200)]
[ALSA] hda-codec - Fix ALC268 acer model

ALC268 has different NIDs from ALC262.  Acer model should use NID 0x02 and
0x03 instead of 0x0c and 0x0d for the master volume.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] emu10k1 - Fix memory corruption
Takashi Iwai [Thu, 16 Aug 2007 17:32:16 +0000 (19:32 +0200)]
[ALSA] emu10k1 - Fix memory corruption

The number of mixer elements for SPDIF control don't match with the
actual array size (3).  This may result in a memory corruption that
overwrites the i2c_capture_source field (ALSA bug#3095).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add support for Toshiba Satellite P205
Takashi Iwai [Thu, 16 Aug 2007 16:57:30 +0000 (18:57 +0200)]
[ALSA] hda-codec - Add support for Toshiba Satellite P205

Add model=lenovo for Toshiba Satellite P205 with ALC861VD codec chip.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add support for Macbook Pro rev3
Takashi Iwai [Thu, 16 Aug 2007 16:19:38 +0000 (18:19 +0200)]
[ALSA] hda-codec - Add support for Macbook Pro rev3

Added the support for Macbook Pro rev3 with ALC885 codec chip.
The patch taken from ALSA bug#3242.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix Toshiba A135 model selection
Takashi Iwai [Thu, 16 Aug 2007 15:52:43 +0000 (17:52 +0200)]
[ALSA] hda-codec - Fix Toshiba A135 model selection

Fixed the double entries in the model presets.
Toshib A135 prefers model=lenovo rather than dallas.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add auto-mute function to Sony VAIO with STAC9872
Takashi Iwai [Thu, 16 Aug 2007 15:33:55 +0000 (17:33 +0200)]
[ALSA] hda-codec - Add auto-mute function to Sony VAIO with STAC9872

Added auto-mute function with HP jack to Sony VAIO laptop with STAC9872
codec.  The patch taken from ALSA bug#3275.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add model for MSI m673x
Takashi Iwai [Thu, 16 Aug 2007 15:23:32 +0000 (17:23 +0200)]
[ALSA] hda-codec - Add model for MSI m673x

Added model=targa-dig for MSI m673x with ALC883 codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Avoid unnecessary work scheduling
Takashi Iwai [Thu, 16 Aug 2007 14:35:33 +0000 (16:35 +0200)]
[ALSA] hda-intel - Avoid unnecessary work scheduling

Avoid unnecessary work scheduling for power-off.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add unsol_event to ALC883 Acer Aspire
Takashi Iwai [Thu, 16 Aug 2007 13:23:35 +0000 (15:23 +0200)]
[ALSA] hda-codec - Add unsol_event to ALC883 Acer Aspire

Added unsol_event handling to ALC883 Acer Aspire codes.
Also, removed unneeded channel-mode mixer control from 2-ch only presets.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Remove superfluous code
Takashi Iwai [Thu, 16 Aug 2007 13:02:16 +0000 (15:02 +0200)]
[ALSA] hda-codec - Remove superfluous code

Remove the superfluous code that's actually not used at all.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix PM on ALC885 Intel Macs
Takashi Iwai [Thu, 16 Aug 2007 13:01:03 +0000 (15:01 +0200)]
[ALSA] hda-codec - Fix PM on ALC885 Intel Macs

Fix power-management on ALC885 Intel Macs.
It fixes the problem with power-saving mode, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add ALC268 acer model
Takashi Iwai [Thu, 16 Aug 2007 12:59:45 +0000 (14:59 +0200)]
[ALSA] hda-codec - Add ALC268 acer model

Added model=acer for ALC268 codec support.
The configuration is: headphone = 0x14, speaker = 0x15
needs hp-jack auto-detection.  The same routine as alc262-fujitsu model
is used.
Also, added the auto-muting routine for ALC268 model=toshiba.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Add position_fix quirk for Dell Precision 390
Takashi Iwai [Thu, 16 Aug 2007 10:32:45 +0000 (12:32 +0200)]
[ALSA] hda-intel - Add position_fix quirk for Dell Precision 390

Dell Precision 390 needs position_fix=1 as default (ALSA bug#3295).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] usb-audio: fix parsing of SysEx messages from CME keyboards
Clemens Ladisch [Thu, 16 Aug 2007 06:44:51 +0000 (08:44 +0200)]
[ALSA] usb-audio: fix parsing of SysEx messages from CME keyboards

When CME keyboards send a SysEx message (e.g. master volume), the USB
packet uses a format different from the standard format.  Parsing this
packet according to the specification corrupts the SysEx message itself
and can cause the following MIDI messages to be misinterpreted, too.
This patch adds a workaround for this case.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix Master volume with AD1986A laptop model
Takashi Iwai [Wed, 15 Aug 2007 20:20:45 +0000 (22:20 +0200)]
[ALSA] hda-codec - Fix Master volume with AD1986A laptop model

Use the bind-control for NID 0x1a and 0x1b as Master volume control
on AD1986 model=laptop as well as model=laptop-eapd.  This will fix
the missing output on some devices.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Add flush_scheduled_work() in snd_hda_codec_free()
Takashi Iwai [Wed, 15 Aug 2007 20:18:22 +0000 (22:18 +0200)]
[ALSA] hda-intel - Add flush_scheduled_work() in snd_hda_codec_free()

Added flush_scheduled_work() in snd_hda_codec_free() to make sure that
the all work is gone.  Also, optimized the condition to schedule the
delayed work in snd_hda_power_down().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add option texts and descriptions for new Realtek models
Takashi Iwai [Wed, 15 Aug 2007 14:44:04 +0000 (16:44 +0200)]
[ALSA] hda-codec - Add option texts and descriptions for new Realtek models

Added the missing text entries and descriptions for the newly added
model values for Realtek codec chips.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add support for Biostar NF61S SE mobo
Takashi Iwai [Wed, 15 Aug 2007 14:24:17 +0000 (16:24 +0200)]
[ALSA] hda-codec - Add support for Biostar NF61S SE mobo

Added the support for Biostar NF61S SE mobo with ALC861VD codec,
model=6stack-digout (ALSA bug#3190).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Update realtek codec support
Kailang Yang [Wed, 15 Aug 2007 14:21:59 +0000 (16:21 +0200)]
[ALSA] hda-codec - Update realtek codec support

1. Support  Acer Aspire 9810
2. Support  TOSHIBA A205
3. Support  HP TX1000

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Remove conflicting capture mixers for ALC861VD
Takashi Iwai [Wed, 15 Aug 2007 13:43:06 +0000 (15:43 +0200)]
[ALSA] hda-codec - Remove conflicting capture mixers for ALC861VD

Removed conflicting capture mixers for ALC861VD model=dallas.
It fixes the ALSA bug#3236.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Don't do suspend if already powered down
Takashi Iwai [Tue, 14 Aug 2007 13:18:26 +0000 (15:18 +0200)]
[ALSA] hda-intel - Don't do suspend if already powered down

In the power-saving mode, the suspend is done dynamically at power-down.
So we don't have to call suspend stuff explicitly if it's already
powered down.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Fix NULL dereference in resume
Takashi Iwai [Tue, 14 Aug 2007 13:15:52 +0000 (15:15 +0200)]
[ALSA] hda-intel - Fix NULL dereference in resume

codec->patch_ops.init can be NULL.  Check before calling it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] pcm: add snd_pcm_rate_to_rate_bit() helper
Clemens Ladisch [Mon, 13 Aug 2007 15:40:54 +0000 (17:40 +0200)]
[ALSA] pcm: add snd_pcm_rate_to_rate_bit() helper

Add a snd_pcm_rate_to_rate_bit() function to factor out common code used
by several drivers.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] pcm: merge rates[] from pcm_misc.c and pcm_native.c
Clemens Ladisch [Mon, 13 Aug 2007 15:38:54 +0000 (17:38 +0200)]
[ALSA] pcm: merge rates[] from pcm_misc.c and pcm_native.c

Merge the rates[] arrays from pcm_misc.c and pcm_native.c because they
are both the same.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] remove incorrect usage of SNDRV_PCM_INFO_SYNC_START and snd_pcm_set_sync()
Clemens Ladisch [Mon, 13 Aug 2007 15:37:55 +0000 (17:37 +0200)]
[ALSA] remove incorrect usage of SNDRV_PCM_INFO_SYNC_START and snd_pcm_set_sync()

Set the SNDRV_PCM_INFO_SYNC_START flag and the substream's sync ID
(only) if the substream actually can be linked to another one.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] mixart - Check ioremap error
Takashi Iwai [Mon, 13 Aug 2007 14:16:53 +0000 (16:16 +0200)]
[ALSA] mixart - Check ioremap error

Check ioremap error and handle properly at initialization.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Add power_save_controller module option
Takashi Iwai [Mon, 13 Aug 2007 14:10:30 +0000 (16:10 +0200)]
[ALSA] hda-intel - Add power_save_controller module option

Add power_save_controller module option instead of define flag.
Also, added descriptions of new module options in ALSA-Configuration.txt.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] This patch adds more support for Dell systems with Stac9205 codecs.
Tobin Davis [Mon, 13 Aug 2007 13:50:29 +0000 (15:50 +0200)]
[ALSA] This patch adds more support for Dell systems with Stac9205 codecs.

Tested against a couple of different systems (with different pin
configs), but the others should also work.  Also cleaned up some of the
9205 patch code.

Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Fix resume with power save
Takashi Iwai [Mon, 13 Aug 2007 13:29:04 +0000 (15:29 +0200)]
[ALSA] hda-intel - Fix resume with power save

The controller power wasn't turned on properly at resume due to the
power-saving patch.  Now fixed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] This patch removes memset() from snd_emu10k1_fx8010_info() which apparently
Mariusz Kozlowski [Sat, 11 Aug 2007 09:06:09 +0000 (11:06 +0200)]
[ALSA] This patch removes memset() from snd_emu10k1_fx8010_info() which apparently

isn't needed there.  Upatched code uses:
memset(info, 0, sizeof(info));
where 'info' is a pointer and therefore only first 4 bytes of 'info' gets
cleared on a 32bit machine.  Anyway looking at the code zeoring this memory
region isn't needed at all because the snd_emu10k1_fx8010_info() function
initializes all the 'info' fields on its own.  So that's why this code works
at all in its original form.
This patch removes this redundant code.  Also snd_emu10k1_fx8010_info() can't
fail so lets save some bytes and change its return type to void.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - update of documentation
Takashi Iwai [Fri, 10 Aug 2007 15:22:34 +0000 (17:22 +0200)]
[ALSA] hda-codec - update of documentation

Update the documentation to reflect the last changes regarding the
power-saving mode and register caches.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Add POWER_SAVE option
Takashi Iwai [Fri, 10 Aug 2007 15:21:45 +0000 (17:21 +0200)]
[ALSA] hda-intel - Add POWER_SAVE option

Added CONFIG_SND_HDA_POWER_SAVE kconfig.  It's an experimental option
to achieve an aggressive power-saving.  With this option, the driver
will turn on/off the power of each codec and controller chip dynamically
on demand.
The patch introduces a new module option 'power_save'.  It specifies
the second of time-out for automatic power-down.  As default, it's
10 seconds.  Setting 0 means to suppress the power-saving feature.
The codec may have analog-input loopbacks, which are usually represented
by mixer elements such as 'Mic Playback Switch' or 'CD Playback Switch'.
When these are on, we cannot turn off the mixer and the codec chip has
to be kept on.  For bookkeeping these states, a new codec-callback is
introduced.
For the bus-controller side, a new callback pm_notify is introduced,
which can be used to turn on/off the contoller appropriately.
Note that this power-saving might cause slight click-noise at
power-on/off.  Also, it might take some time to wake up the codec, and
might even drop some tones at the very beginning.  This seems to be the
side-effect of turning off the controller chip.
This turn-off of the controller can be disabled by undefining
HDA_POWER_SAVE_RESET_CONTOLLER in hda_intel.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Clean up bind-controls
Takashi Iwai [Fri, 10 Aug 2007 15:12:15 +0000 (17:12 +0200)]
[ALSA] hda-codec - Clean up bind-controls

We have already a generic bind-control helper, so let's clean up the codes
using it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - add snd_hda_codec_stereo() function
Takashi Iwai [Fri, 10 Aug 2007 15:11:07 +0000 (17:11 +0200)]
[ALSA] hda-codec - add snd_hda_codec_stereo() function

Added snd_hda_codec_amp_stereo() function that changes both of stereo
channels with the same mask and value bits.  It simplifies most of
amp-handling codes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - optimize resume using caches
Takashi Iwai [Fri, 10 Aug 2007 15:09:26 +0000 (17:09 +0200)]
[ALSA] hda-codec - optimize resume using caches

So far, the driver looked the table of snd_kcontrol_new used for creating
mixer elements and forces to call each of its put callbacks in PM resume
code.  This is too ugly and hackish.
Now, the resume is simplified using the codec amp and command register
caches.  The driver simply restores the values that have been written
in the cache table.  With this simplification, most codec support codes
don't require any special resume callback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - introduce command register cache
Takashi Iwai [Fri, 10 Aug 2007 15:03:40 +0000 (17:03 +0200)]
[ALSA] hda-codec - introduce command register cache

This patch adds the cache for codec command registers.
snd_hda_codec_write_cache() and snd_hda_sequence_write_cache() do
the write operations with caching, which values can be resumed via
snd_hda_codec_resume_cache().
The patch introduces only the framework, and no codec code is using
this cache yet.  It'll be implemented in the following patch.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - rewrite amp cache more generic
Takashi Iwai [Fri, 10 Aug 2007 14:59:39 +0000 (16:59 +0200)]
[ALSA] hda-codec - rewrite amp cache more generic

Rewrite the code to handle amp cache and hash tables to be more
generic.  This routine will be used by the register caches in the
next patch.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Use msecs_to_jiffies() in ac97_codec.c
Takashi Iwai [Fri, 10 Aug 2007 14:50:37 +0000 (16:50 +0200)]
[ALSA] Use msecs_to_jiffies() in ac97_codec.c

Replace the direct calculation of jiffies with msecs_to_jiffies().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] usb-audio - Add advanced mode support for Edirol UA-1EX
Takashi Iwai [Fri, 10 Aug 2007 13:07:06 +0000 (15:07 +0200)]
[ALSA] usb-audio - Add advanced mode support for Edirol UA-1EX

Add the quirk to support Advanced mode of Edirol UA-1EX.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] isa libs Makefiles cleanup
Krzysztof Helt [Fri, 10 Aug 2007 10:04:42 +0000 (12:04 +0200)]
[ALSA] isa libs Makefiles cleanup

This patch uses the Kconfig parameters SND_AD1848_LIB and
SND_CS4231_LIB instead of mentioning each driver that requires
the ad1848-lib or cs4231-lib separately in the Makefiles.

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>
17 years ago[ALSA] seq_midi_event: fix parsing of F9/FD bytes
Clemens Ladisch [Fri, 10 Aug 2007 07:41:07 +0000 (09:41 +0200)]
[ALSA] seq_midi_event: fix parsing of F9/FD bytes

Check for a valid event type when encoding a system real-time message to
prevent the bytes F9 or FD resulting in an empty sequencer message.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] seq_midi_event: fix parsing of missing data bytes
Clemens Ladisch [Fri, 10 Aug 2007 07:40:09 +0000 (09:40 +0200)]
[ALSA] seq_midi_event: fix parsing of missing data bytes

Reorganize the encoder logic to prevent status bytes that appear where
data bytes are expected from being interpreted as data bytes.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] seq_midi_event: prevent running status after system messages
Clemens Ladisch [Fri, 10 Aug 2007 07:39:14 +0000 (09:39 +0200)]
[ALSA] seq_midi_event: prevent running status after system messages

Reset the event type after encoding a system message to prevent any
following data bytes from being interpreted as data for a running status
system message, which is not allowed in MIDI.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] seq_midi_event: fix encoding of data bytes after end of sysex
Clemens Ladisch [Fri, 10 Aug 2007 07:38:36 +0000 (09:38 +0200)]
[ALSA] seq_midi_event: fix encoding of data bytes after end of sysex

Create a new state ST_INVALID for the encoder to prevent data bytes at
the beginning of a stream or after a sysex message being interpreted as
note-off parameters.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] This patch is a USB quirk to ensure the Stanton Scratchamp v1 is detected
Mark Hills [Fri, 10 Aug 2007 06:01:54 +0000 (08:01 +0200)]
[ALSA] This patch is a USB quirk to ensure the Stanton Scratchamp v1 is detected

(bugtrack #2932). The interface is two USB devices in the same physical
box. Note that this is the USB ScratchAmp v1 and not the later v2
(firewire) model.

Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Add new AFMT_* formats for OSS emulation
Takashi Iwai [Wed, 8 Aug 2007 15:00:32 +0000 (17:00 +0200)]
[ALSA] Add new AFMT_* formats for OSS emulation

The recent OSS includes the support for 32bit and other formats, which
we already have, too.  Let's define and map them.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Fix OSS documentation about 3bytes format
Takashi Iwai [Wed, 8 Aug 2007 14:58:45 +0000 (16:58 +0200)]
[ALSA] Fix OSS documentation about 3bytes format

Now the OSS emulation supports 3bytes format, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Support 3-bytes 24bit format in PCM OSS emulation
Takashi Iwai [Wed, 8 Aug 2007 14:49:08 +0000 (16:49 +0200)]
[ALSA] Support 3-bytes 24bit format in PCM OSS emulation

Add the support of 3-bytes 24bit formats in PCM OSS emulation.
Also removed snd_pcm_build_linear_format() function.  It's exported
just for OSS emulation, and now the code was changed without calling
this function.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Simplify the format conversion in PCM OSS emulation
Takashi Iwai [Wed, 8 Aug 2007 13:50:58 +0000 (15:50 +0200)]
[ALSA] Simplify the format conversion in PCM OSS emulation

Simplify the format conversion code in PCM OSS emulation.
This patch also adds the support of 3bytes 24bit formats with linear
and mulaw, but they are not enabled in pcm_plugin.c yet.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Remove ifdefs from OSS PCM emulation codes
Takashi Iwai [Wed, 8 Aug 2007 13:20:48 +0000 (15:20 +0200)]
[ALSA] Remove ifdefs from OSS PCM emulation codes

Fix Makefile to compile files conditionally to CONFIG_SND_PCM_OSS_PLUGINS,
and remove unneeded ifdefs in these files.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] doc - Remove IRQF_DISABLED from the example description
Takashi Iwai [Tue, 7 Aug 2007 14:16:07 +0000 (16:16 +0200)]
[ALSA] doc - Remove IRQF_DISABLED from the example description

Remove the bogus IRQF_DISBLAED together with IRQF_SHARED from the
example code in the document.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] seq: resource leak fix and various code cleanups
Eugene Teo [Tue, 7 Aug 2007 12:34:23 +0000 (14:34 +0200)]
[ALSA] seq: resource leak fix and various code cleanups

This patch fixes:
1) a resource leak (CID: 1817)
2) various code cleanups

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add support for Acer Aspire laptops
Tobin Davis [Tue, 7 Aug 2007 09:50:26 +0000 (11:50 +0200)]
[ALSA] hda-codec - Add support for Acer Aspire laptops

This patch adds support for some Acer Aspire systems.

Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add more Dell systems
Tobin Davis [Tue, 7 Aug 2007 09:48:12 +0000 (11:48 +0200)]
[ALSA] hda-codec - Add more Dell systems

This patch adds support for Dell E520 and a couple of other 965 based systems.

Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] fix selector unit bug affecting some USB speakerphones
Russ Cox [Mon, 6 Aug 2007 13:37:58 +0000 (15:37 +0200)]
[ALSA] fix selector unit bug affecting some USB speakerphones

Following the suggestion in this thread:
https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/26683
the correct upper bound on desc[0] is 5 + num_ins not 6 + num_ins,
because the index used later is 5+i, not 6+i.
This change makes my Vosky Chatterbox speakerphone work.
Apparently it also helps with the Minivox MV100.

Signed-off-by: Russ Cox <rsc@swtch.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] au88x0: mem leak fix in snd_vortex_create()
Jesper Juhl [Mon, 6 Aug 2007 12:05:27 +0000 (14:05 +0200)]
[ALSA] au88x0: mem leak fix in snd_vortex_create()

In sound/pci/au88x0/au88x0.c::snd_vortex_create() :
The Coverity checker found that if we allocate storage for 'chip'
but then leave via the  regions_out:  label, then we end up leaking
the storage allocated for 'chip'.
I believe simply freeing 'chip' before the 'return err;' line is
all we need to fix this, but please double-check me :)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Remove invalid __devinit
Takashi Iwai [Thu, 2 Aug 2007 13:51:59 +0000 (15:51 +0200)]
[ALSA] hda-intel - Remove invalid __devinit

Some functions in hda_codec.c are called from patch ops, which are
kept in the codec instance even after initialization.  Thus they
shouldn't be marked as __devinit.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Get rid of dead code in sound/arm/sa11xx-uda1341.c
Michal Piotrowski [Thu, 2 Aug 2007 12:26:43 +0000 (14:26 +0200)]
[ALSA] Get rid of dead code in sound/arm/sa11xx-uda1341.c

File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 82
Unknown CONFIG option! CONFIG_H3600_HAL
File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 103
Unknown CONFIG option! CONFIG_H3600_HAL
File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 241
Unknown CONFIG option! CONFIG_H3600_HAL
File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 310
Unknown CONFIG option! CONFIG_H3600_HAL
File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 334
Unknown CONFIG option! CONFIG_H3600_HAL
File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 344
Unknown CONFIG option! CONFIG_H3600_HAL
File /home/devel/linux-rdc/sound/arm/sa11xx-uda1341.c line 357
Unknown CONFIG option! CONFIG_H3600_HAL

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Coding style fix sound/pci/ca0106/ca_midi.h
Michal Piotrowski [Thu, 2 Aug 2007 12:15:05 +0000 (14:15 +0200)]
[ALSA] Coding style fix sound/pci/ca0106/ca_midi.h

Coding style fix

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Fix a typo in Kconfig
Takashi Iwai [Wed, 1 Aug 2007 22:01:43 +0000 (00:01 +0200)]
[ALSA] hda-intel - Fix a typo in Kconfig

Fix a typo in Kconfig help text for CONFIG_SND_HDA_HWDEP.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] add the ESS1879 pnpbios ID to the es18xx driver
Rene Herman [Wed, 1 Aug 2007 21:50:21 +0000 (23:50 +0200)]
[ALSA] add the ESS1879 pnpbios ID to the es18xx driver

As reported by Troy Heidner, the 'Gateway Solo 5150' laptop (for one) has an
onboard ESS1879 that identifies itself through PNPBIOS as just that. He also
confirmed that other than not knowing about it, snd-es18xx drives the chip
fine, so this adds the ID to the driver.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sound/soc ioremap/iounmap balancing
Scott Thompson [Wed, 1 Aug 2007 11:38:59 +0000 (13:38 +0200)]
[ALSA] sound/soc ioremap/iounmap balancing

ioremap / iounmap balancing in sound/soc tree

Signed-off-by: Scott Thompson <postfail <at> hushmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] CS4270 driver does not compile with I2C disabled
Timur Tabi [Wed, 1 Aug 2007 10:22:07 +0000 (12:22 +0200)]
[ALSA] CS4270 driver does not compile with I2C disabled

Fix compilation errors with the CS4270 when I2C is not enabled.  Updated
some comments to indicate that that stand-alone mode is not fully implemented,
because there is no mechanism for the CS4270 driver and the machine driver to
communicate the values of various input pins.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ASoC CS4270 codec device driver
Timur Tabi [Tue, 31 Jul 2007 16:18:44 +0000 (18:18 +0200)]
[ALSA] ASoC CS4270 codec device driver

This patch adds ALSA SoC support for the Cirrus Logic CS4270 codec.  The
following features are suppored:
1) Stand-alone and software mode
2) Software mode via I2C only
3) Master mode, not Slave
4) No power management

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix GPIO in resume
Takashi Iwai [Tue, 31 Jul 2007 13:56:24 +0000 (15:56 +0200)]
[ALSA] hda-codec - Fix GPIO in resume

Reinitialize GPIO in resume callback if necessary.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Fix a typo in Makefile
Takashi Iwai [Tue, 31 Jul 2007 09:09:16 +0000 (11:09 +0200)]
[ALSA] hda-intel - Fix a typo in Makefile

Fixed a typo of CONFIG_SND_HDA_GENERIC.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Fix compile warning in snd_hwdep_ioctl_compat()
Takashi Iwai [Tue, 31 Jul 2007 09:08:10 +0000 (11:08 +0200)]
[ALSA] hda-intel - Fix compile warning in snd_hwdep_ioctl_compat()

Fix missing cast:
    sound/pci/hda/hda_hwdep.c:86: warning: passing argument 4 of 'hda_hwdep_ioctl' makes integer from pointer without a cast

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add support for the ASRock K8NF6G-VSTA motherboard
Tobin Davis [Mon, 30 Jul 2007 19:42:10 +0000 (21:42 +0200)]
[ALSA] hda-codec -  Add support for the ASRock K8NF6G-VSTA motherboard

This patch adds ALC861VD support for the ASRock K8NF6G-VSTA motherboard.

Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sound/synth/util_mem.c: remove pointless check
Adrian Bunk [Mon, 30 Jul 2007 13:40:43 +0000 (15:40 +0200)]
[ALSA] sound/synth/util_mem.c: remove pointless check

The Coverity checker spotted that if anyone would call this function
with 'prev == NULL', he would still get an Oops a few lines below.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Add missing static in ac97_codec.c
Takashi Iwai [Mon, 30 Jul 2007 12:52:41 +0000 (14:52 +0200)]
[ALSA] Add missing static in ac97_codec.c

Added missing static to snd_ac97_restore_status() and
snd_ac97_restore_iec958() functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] check for linked substreams of different cards
Clemens Ladisch [Mon, 30 Jul 2007 06:14:31 +0000 (08:14 +0200)]
[ALSA] check for linked substreams of different cards

It is possible to have linked substreams that belong to different cards
and/or different drivers.  This patch changes some drivers to make sure
that they do not incorrectly try to handle substreams of a different
card.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - kernel config for each codec
Takashi Iwai [Fri, 27 Jul 2007 17:15:54 +0000 (19:15 +0200)]
[ALSA] hda-codec - kernel config for each codec

Create kernel configs to choose the codec support codes to build.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add a generic bind-control helper
Takashi Iwai [Fri, 27 Jul 2007 17:02:40 +0000 (19:02 +0200)]
[ALSA] hda-codec - Add a generic bind-control helper

Added callbacks for a generic bind-control of mixer elements.
This can be used for creating a mixer element controlling multiple
widgets at the same time.  Two macros, HDA_BIND_VOL() and HDA_BIND_SW(),
are introduced for creating bind-volume and bind-switch, respectively.
It taks the mixer element name and struct hda_bind_ctls pointer, which
contains the real control callbacks in ops field and long array for
private_value of each bound widget.
All widgets have to be the same type (i.e. the same amp capability).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Add hwdep interface
Takashi Iwai [Fri, 27 Jul 2007 16:58:06 +0000 (18:58 +0200)]
[ALSA] hda-intel - Add hwdep interface

Added a hwdep interface for each codec (enabled per kconfig).
This interface can be used for reading/writing HD-audio verbs
and other purposes as future extensions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hdspm - Coding style fixes
Takashi Iwai [Fri, 27 Jul 2007 14:52:46 +0000 (16:52 +0200)]
[ALSA] hdspm - Coding style fixes

Fix codes to follow more to the standard kernel coding style.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-intel - Coding style fixes
Takashi Iwai [Fri, 27 Jul 2007 14:52:19 +0000 (16:52 +0200)]
[ALSA] hda-intel - Coding style fixes

Fix codes to follow more to the standard kernel coding style.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Fix bugs in mode change/recalibration for opl3sa2 driver
Paul Vojta [Fri, 27 Jul 2007 10:20:38 +0000 (12:20 +0200)]
[ALSA] Fix bugs in mode change/recalibration for opl3sa2 driver

The mode change / recalibration doesn't work always with opl3sa2 devices,
e.g. the first time it's played back.  The patch fixes the problem.

Signed-off-by: Paul Vojta <vojta@math.berkeley.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] snd_usb_caiaq_input_free() fix
Karsten Wiese [Fri, 27 Jul 2007 10:15:42 +0000 (12:15 +0200)]
[ALSA] snd_usb_caiaq_input_free() fix

input_free_device()'s comment says:
input_free_device() should only be used if input_register_device() was
not called yet or if it failed. Once device was registered
use input_unregister_device() and memory will be freed once last
refrence to the device is dropped.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Clean up Makefile
Takashi Iwai [Thu, 26 Jul 2007 17:10:47 +0000 (19:10 +0200)]
[ALSA] Clean up Makefile

Clean up Makefile using xxx- style instead of
ifeq(CONFIG_XXX,y).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Fix build error without CONFIG_HAS_DMA
Takashi Iwai [Thu, 26 Jul 2007 16:59:36 +0000 (18:59 +0200)]
[ALSA] Fix build error without CONFIG_HAS_DMA

The recent change of include/asm-generic/dma-mapping-broken.h breaks
the build without CONFIG_HAS_DMA.  This patch is an ad hoc fix.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] snd-emu10k1:Unmute the Audio/Micro Dock after firmware load.
James Courtier-Dutton [Thu, 26 Jul 2007 17:44:49 +0000 (18:44 +0100)]
[ALSA] snd-emu10k1:Unmute the Audio/Micro Dock after firmware load.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] snd-emu10k1:Implement SPDIF/ADAT status.
James Courtier-Dutton [Thu, 26 Jul 2007 17:31:39 +0000 (18:31 +0100)]
[ALSA] snd-emu10k1:Implement SPDIF/ADAT status.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Fixes to follow the standard coding style
Takashi Iwai [Thu, 26 Jul 2007 14:50:09 +0000 (16:50 +0200)]
[ALSA] Fixes to follow the standard coding style

Fixed the tutorial to follow the standard kernel coding style.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix the initial mixer state of ALC262 sony-assamd model
Takashi Iwai [Thu, 26 Jul 2007 09:49:22 +0000 (11:49 +0200)]
[ALSA] hda-codec - Fix the initial mixer state of ALC262 sony-assamd model

Many of ALC262 codes don't call the automute function at the beginning,
which may keep the silence until the HP jack is replugged.  Now proper
init_hook is added.
Also, sony-assamd model doesn't handle the widget 0x14 properly, thus
calling automute isn't enough.  Now Front switch handles both widgets.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>