platform/kernel/linux-rpi.git
17 years ago[ALSA] fix bootup crash in snd_gus_interrupt()
Ingo Molnar [Tue, 16 Oct 2007 12:42:30 +0000 (14:42 +0200)]
[ALSA] fix bootup crash in snd_gus_interrupt()

when simulating a storm of fake GUS interrupts (without actually owning
this venerable piece of ISA hardware) the driver falls over (crashes) in
two ways:
1) spinlocks being initialized too late:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
 [<401058ca>] show_trace_log_lvl+0x1a/0x30
 [<401064b2>] show_trace+0x12/0x20
 [<401064d6>] dump_stack+0x16/0x20
 [<4014a72b>] __lock_acquire+0xcfb/0x1030
 [<4014aac0>] lock_acquire+0x60/0x80
 [<40721a68>] _spin_lock_irqsave+0x38/0x50
 [<4058fc12>] snd_gf1_i_look8+0x22/0x60
 [<405906fe>] snd_gus_interrupt+0x13e/0x270
 [<401548e8>] handle_IRQ_event+0x28/0x60
 [<40155cc1>] handle_fasteoi_irq+0x71/0xe0
 [<40107238>] do_IRQ+0x48/0xa0
 [<401051fe>] common_interrupt+0x2e/0x40
 [<40156822>] register_handler_proc+0x92/0xf0
 [<401550c2>] setup_irq+0xe2/0x190
 [<40155224>] request_irq+0xb4/0xd0
 [<4058f524>] snd_gus_create+0x124/0x3c0
 [<40aa4087>] snd_gusclassic_probe+0x2a7/0x4b0
 [<403f5eff>] isa_bus_probe+0x1f/0x30
 [<403f1944>] driver_probe_device+0x84/0x190
 [<403f1a58>] __device_attach+0x8/0x10
 [<403f0e63>] bus_for_each_drv+0x53/0x80
 [<403f1b1b>] device_attach+0x8b/0x90
 [<403f0dd8>] bus_attach_device+0x48/0x80
 [<403efdbd>] device_add+0x45d/0x5a0
 [<403eff12>] device_register+0x12/0x20
 [<403f60c3>] isa_register_driver+0xb3/0x140
 [<40aa3dd2>] alsa_card_gusclassic_init+0x12/0x20
 [<40a665c3>] kernel_init+0x133/0x310
 [<401054a7>] kernel_thread_helper+0x7/0x10
 =======================
2) callback functions not being filled in yet:
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
00000000
*pde = 00000000
Oops: 0000 [#1]
SMP DEBUG_PAGEALLOC
CPU:    0
EIP:    0060:[<00000000>]    Not tainted VLI
EFLAGS: 00010002   (2.6.23 #37)
EIP is at 0x0
eax: 7fe94000   ebx: 7fe94000   ecx: 00000000   edx: 00000226
esi: 00000000   edi: 00000005   ebp: 7ff87c28   esp: 7ff87bf4
ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068
Process swapper (pid: 1, ti=7ff86000 task=7ff84000 task.ti=7ff86000)
Stack: 40590683 408424a9 408db87c 00000029 40787406 00000064 00000046 ff000000
       000000ff 00000001 7faefaf0 00000000 00000005 7ff87c40 401548e8 00000000
       40a52000 7faefaf0 00000005 7ff87c58 40155cc1 40a52030 00000005 00000000
Call Trace:
 [<401058ca>] show_trace_log_lvl+0x1a/0x30
 [<4010598b>] show_stack_log_lvl+0xab/0xd0
 [<40105b7c>] show_registers+0x1cc/0x2d0
 [<40105d96>] die+0x116/0x240
 [<4011d7bb>] do_page_fault+0x18b/0x670
 [<40721d22>] error_code+0x72/0x80
 [<401548e8>] handle_IRQ_event+0x28/0x60
 [<40155cc1>] handle_fasteoi_irq+0x71/0xe0
 [<40107238>] do_IRQ+0x48/0xa0
 [<401051fe>] common_interrupt+0x2e/0x40
 [<401a344e>] proc_create+0x3e/0x120
 [<401a3733>] proc_mkdir_mode+0x23/0x50
 [<401a376f>] proc_mkdir+0xf/0x20
 [<40156864>] register_handler_proc+0xd4/0xf0
 [<401550c2>] setup_irq+0xe2/0x190
 [<40155224>] request_irq+0xb4/0xd0
 [<4058f524>] snd_gus_create+0x124/0x3c0
 [<40aa4087>] snd_gusclassic_probe+0x2a7/0x4b0
 [<403f5eff>] isa_bus_probe+0x1f/0x30
 [<403f1944>] driver_probe_device+0x84/0x190
 [<403f1a58>] __device_attach+0x8/0x10
 [<403f0e63>] bus_for_each_drv+0x53/0x80
 [<403f1b1b>] device_attach+0x8b/0x90
 [<403f0dd8>] bus_attach_device+0x48/0x80
 [<403efdbd>] device_add+0x45d/0x5a0
 [<403eff12>] device_register+0x12/0x20
 [<403f60c3>] isa_register_driver+0xb3/0x140
 [<40aa3dd2>] alsa_card_gusclassic_init+0x12/0x20
 [<40a665c3>] kernel_init+0x133/0x310
 [<401054a7>] kernel_thread_helper+0x7/0x10
 =======================
Code:  Bad EIP value.
EIP: [<00000000>] 0x0 SS:ESP 0068:7ff87bf4
Kernel panic - not syncing: Fatal exception in interrupt
with these things fixed, i get the expected 'no such hardware' result
from the driver initialization:
 Calling initcall 0x40aa3dc0: alsa_card_gusclassic_init+0x0/0x20()
 ALSA sound/isa/gus/gusclassic.c:136: [0x220] check 1 failed - 0xff
 initcall 0x40aa3dc0: alsa_card_gusclassic_init+0x0/0x20() returned 0.
 initcall 0x40aa3dc0 ran for 133 msecs:
 alsa_card_gusclassic_init+0x0/0x20()

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] hda-codec - Fix SKU ID function for realtek codecs
Kailang Yang [Tue, 16 Oct 2007 12:30:01 +0000 (14:30 +0200)]
[ALSA] hda-codec - Fix SKU ID function for realtek codecs

Fixed SKU ID function for realtek codecs.  It's used by the automatic
BIOS configuration mode.  Now it supports the correct jack-detection
mechanism, too.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] Support ASUS P701 eeepc [0x1043 0x82a1] support
Kailang Yang [Tue, 16 Oct 2007 12:28:03 +0000 (14:28 +0200)]
[ALSA] Support  ASUS P701 eeepc [0x1043 0x82a1] support

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] hda-codec - Add array terminator for dmic in STAC codec
Takashi Iwai [Tue, 16 Oct 2007 12:27:04 +0000 (14:27 +0200)]
[ALSA] hda-codec - Add array terminator for dmic in STAC codec

Reported by Jan-Marek Glogowski.
The dmic array is passed to snd_hda_parse_pin_def_config() and
should be zero-terminated.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] hdsp - Fix zero division
Takashi Iwai [Tue, 16 Oct 2007 12:26:32 +0000 (14:26 +0200)]
[ALSA] hdsp - Fix zero division

Fix zero-division bug in the calculation dds offset.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] usb-audio - Fix double comment
Takashi Iwai [Tue, 16 Oct 2007 12:26:09 +0000 (14:26 +0200)]
[ALSA] usb-audio - Fix double comment

Remove superfluous comment line (maybe a merge failure).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] hda-codec - Fix STAC922x volume knob control
Takashi Iwai [Tue, 16 Oct 2007 12:25:16 +0000 (14:25 +0200)]
[ALSA] hda-codec - Fix STAC922x volume knob control

Reported by zhejiang <zhe.jiang@intel.com>
'I found that STAC_VOLKNOB hardwired the KNOB nid to 0x24.
It is okay for stac9205 and stac927x.
But the VolumeKnob nid of stac9220-9221 is 0x16.'

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz
Jaroslav Kysela [Mon, 15 Oct 2007 07:50:19 +0000 (09:50 +0200)]
[ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ALSA] hda-codec - Fix for Fujitsu Lifebook C1410
Takashi Iwai [Fri, 12 Oct 2007 13:03:48 +0000 (15:03 +0200)]
[ALSA] hda-codec - Fix for Fujitsu Lifebook C1410

Fixed ALC262 fujitsu model to support Fujitsu Lifebook C1410 properly.
It requires EAPD and has separate int/ext mic inputs (which was missing
in the current driver).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] mpu-401: remove MPU401_INFO_UART_ONLY flag
Clemens Ladisch [Thu, 11 Oct 2007 12:42:23 +0000 (14:42 +0200)]
[ALSA] mpu-401: remove MPU401_INFO_UART_ONLY flag

Since the last patch made the ENTER_UART command optional, the
enter_uart option and its corresponding flag have become superfluous.
The uart_enter option remains for backward compatibility but just prints
a warning when used.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] mpu-401: do not require an ACK byte for the ENTER_UART command
Clemens Ladisch [Thu, 11 Oct 2007 12:15:06 +0000 (14:15 +0200)]
[ALSA] mpu-401: do not require an ACK byte for the ENTER_UART command

The original MPU-401 does not send an ACK byte after processing the
ENTER_UART command, so we better do not try to wait for it.
Many clones get this wrong and do send an ACK, but when interpreting it
as MIDI, it is just a harmless Active Sensing message, and it is likely
to be read and discarded by the interrupt handler before the MIDI input
device is triggered.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] via82xx - Add DXS quirk for Shuttle AK31v2
Takashi Iwai [Thu, 11 Oct 2007 12:35:00 +0000 (14:35 +0200)]
[ALSA] via82xx - Add DXS quirk for Shuttle AK31v2

Shuttle AK31v2 works well with dxs_support=5 (ALSA bug#2926).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix input_mux numbers for vaio stac92xx
Takashi Iwai [Thu, 11 Oct 2007 09:21:21 +0000 (11:21 +0200)]
[ALSA] hda-codec - Fix input_mux numbers for vaio stac92xx

My bad, I forgot to update the num_items field when added a new item
to vaio_mux items table, so the last item 'PCM' disappeared.
Now it has the right number 3.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Re-add quirk support for Dell XPS 1330 and Inspiron 1420
Tim Gardner [Wed, 10 Oct 2007 08:42:00 +0000 (10:42 +0200)]
[ALSA] hda-codec - Re-add quirk support for Dell XPS 1330 and Inspiron 1420

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] pcxhr - Fix dB level information
Takashi Iwai [Wed, 10 Oct 2007 08:06:46 +0000 (10:06 +0200)]
[ALSA] pcxhr - Fix dB level information

Some dB level information is wrong in pcxhr driver according to the
datasheet.  Fixed now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix Gateway laptops with STAC9200
Takashi Iwai [Wed, 10 Oct 2007 08:04:26 +0000 (10:04 +0200)]
[ALSA] hda-codec - Fix Gateway laptops with STAC9200

Fix the output of Gateway laptops with STAC9200 codec chip.
They require the EAPD control for some pins.  These pins shouldn't be
powered down.
To enable EAPD control, a new model 'gateway' was added to STAC9200.
The known PCI SSIDs are included in the quirk list.
The fix was originally suggested by Brian Hinz, in ALSA bug#2948.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add zero checks in input-mux helper functions
Takashi Iwai [Tue, 9 Oct 2007 09:58:41 +0000 (11:58 +0200)]
[ALSA] hda-codec - Add zero checks in input-mux helper functions

Added zero checks in input-mux helper functions to avoid Oops.
Some devices may have no input pins while the driver registers
control elements calling these functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sound: snd_register_device_for_dev fix
Mariusz Kozlowski [Tue, 9 Oct 2007 08:34:06 +0000 (10:34 +0200)]
[ALSA] sound: snd_register_device_for_dev fix

snd_register_device_for_dev() can oops when device_create() returns
ERR_PTR(err).
Scenario:
preg->dev = device_create(...); /* fails */
if (preg->dev) /* contains ERR_PTR(err) */
dev_set_drvdata(preg->dev, private_data);
and dev_set_drvdata() looks like this:
static inline void
dev_set_drvdata (struct device *dev, void *data)
{
dev->driver_data = data; <--- boom
}
This patch should prevent that.

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] snd-usb-audio: Add basic support for E-Mu USB devices.
James Courtier-Dutton [Mon, 8 Oct 2007 17:49:43 +0000 (18:49 +0100)]
[ALSA] snd-usb-audio: Add basic support for E-Mu USB devices.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] git-alsa kconfig fix
Andrew Morton [Fri, 21 Sep 2007 21:25:00 +0000 (23:25 +0200)]
[ALSA] git-alsa kconfig fix

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] sound/hda: fix help text
Randy Dunlap [Fri, 21 Sep 2007 16:25:40 +0000 (18:25 +0200)]
[ALSA] sound/hda: fix help text

Fix hda help text typo.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
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] alsa: Add the MCP79 support to hda_intel driver
Peer Chen [Fri, 21 Sep 2007 16:20:25 +0000 (18:20 +0200)]
[ALSA] alsa: Add the MCP79 support to hda_intel driver

Add the MCP79 support to hda driver.
The patch base on kernel 2.6.23-rc7

Signed-off-by: Peer Chen <peerchen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Workaround for invalid signature read of CS8427
Takashi Iwai [Thu, 20 Sep 2007 15:34:57 +0000 (17:34 +0200)]
[ALSA] Workaround for invalid signature read of CS8427

Reading the signature of CS8427 over SPI/I2C fails on some devices
by mysterious reason.  In most cases, however, it succeeds at the
sequential read.  So, let's give a second chance to check the signature
again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Missing support ASUS A7J
Kailang Yang [Thu, 20 Sep 2007 10:51:39 +0000 (12:51 +0200)]
[ALSA] hda-codec - Missing support ASUS A7J

Added the missing support for ASUS A7J [0x1043 0x1243]

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 - Fix ALC662 codec support
Kailang Yang [Thu, 20 Sep 2007 10:50:29 +0000 (12:50 +0200)]
[ALSA] hda-codec - Fix ALC662 codec support

* Fixed ALC662 init verbs (wrong NIDs)
* Fixed ALC662 auto model issue (wrong DAC index)

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] ad1848: simplify MCE down code
Trent Piepho [Wed, 19 Sep 2007 19:20:17 +0000 (21:20 +0200)]
[ALSA] ad1848: simplify MCE down code

The polling loop to check for ACI to go down was more convoluted than it
needed to be.  New loop should be more efficient and it is a lot simpler.  The
old loop checked for a timeout before checking for ACI down, which could
result in an erroneous timeout.  It's only a failure if the timeout expires
_and_ ACI is still high.  There is nothing wrong with the timeout expiring
while the task is sleeping if ACI went low.
A polling loop to check for the device to leaving INIT mode is removed.  The
device must have already left init for the previous ACI loop to have finished.
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ad1848: Fix msleep while atomic
Trent Piepho [Wed, 19 Sep 2007 19:19:57 +0000 (21:19 +0200)]
[ALSA] ad1848: Fix msleep while atomic

Simplest fix.
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ac97: YMF743 missing controls support (2/2)
Keita Maehara [Wed, 19 Sep 2007 12:29:37 +0000 (14:29 +0200)]
[ALSA] ac97: YMF743 missing controls support (2/2)

These patches enable a few YMF743 controls (Tone/3D/IEC958) that won't
be detected with the current version of ALSA.
The second one contains following changes:
- A chip-specific SPDIF support for YMF743 (It doesn't have AC97
 standard SPDIF registers seen on YMF753).
- The implementation for 'IEC958 Playback Source' and 'IEC958 Mute'
 are identical to the ones for YMF753. But there is no 'IEC958 Output
 Pin' for YMF743.

Signed-off-by: Keita Maehara <maehara@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ac97: YMF743 missing controls support (1/2)
Keita Maehara [Wed, 19 Sep 2007 12:27:38 +0000 (14:27 +0200)]
[ALSA] ac97: YMF743 missing controls support (1/2)

These patches enable some YMF743 controls (Tone/3D/IEC958) that won't
be detected with the current version of ALSA.
The first one contains only cosmetic changes to share a few
YMF753-specific symbols with YMF743.

Signed-off-by: Keita Maehara <maehara@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] schedule_timeout() fix for core/seq/seq_instr.c
Rene Herman [Tue, 18 Sep 2007 16:33:15 +0000 (18:33 +0200)]
[ALSA] schedule_timeout() fix for core/seq/seq_instr.c

Replace schedule_timeout() with schedule_timeout_uninterruptible()
to avoid signals in loop.

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] alsa-kernel: schedule_timeout() fixes
Rene Herman [Tue, 18 Sep 2007 16:10:49 +0000 (18:10 +0200)]
[ALSA] alsa-kernel: schedule_timeout() fixes

Fix schedule_timeout() use in alsa-kernel. Mostly just
schedule_timeout(1) --> schedule_timeout_uninterruptible(1)
The wavefront_synth one fixes the surrounding loop as well. In ymfpci_main,
delete a superfluous set_current_state() and in soc/soc-dapm.c replace an
_interruptible with _uninterruptible in some debug code; it's not waiting
for signals.

Signed-off-by: Rene Herman <rene.herman>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda: More subsystem id BIOS changes
Matthew Ranostay [Mon, 17 Sep 2007 22:52:38 +0000 (00:52 +0200)]
[ALSA] hda: More subsystem id BIOS changes

More laptop BIOS changes the subsystem id for STAC9205 cards if the
microphone is toggled on/off in the settings.
The patch removes the old STAC_9205_M43xx and use STAC_9205_DELL_M43.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Add description about power-saving mode
Takashi Iwai [Mon, 17 Sep 2007 17:08:32 +0000 (19:08 +0200)]
[ALSA] Add description about power-saving mode

Added the description about power-saving mode on AC97 and HD-audio drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Add default values for power-saving as Kconfig options
Takashi Iwai [Mon, 17 Sep 2007 17:07:46 +0000 (19:07 +0200)]
[ALSA] Add default values for power-saving as Kconfig options

Added CONFIG_SND_AC97_POWER_SAVE_DEFAULT and CONFIG_SND_HDA_POWER_SAVE_DEFAULT
Kconfig options as the default values for power-saving mode of AC97 and
HD-audio drivers, respectively.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sscape: support for audio part of VIVO cards
Krzysztof Helt [Mon, 17 Sep 2007 15:57:37 +0000 (17:57 +0200)]
[ALSA] sscape: support for audio part of VIVO cards

This patch adds support for audio part of the Ensoniq
SoundScape VIVO cards. The MIDI part is not supported.

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] opti9xx: adjust OPL3 FM resource value
Takashi Iwai [Mon, 17 Sep 2007 14:44:06 +0000 (16:44 +0200)]
[ALSA] opti9xx: adjust OPL3 FM resource value

The OPTi ISA-PnP chips advertise their OPL4 base at 0x380 (to 0x3f0) through
pnp and put their on-chip OPL3 at +8. The driver assumes the provided
value is the ALBase (OPL3 address) though and checks for an OPL4 at -8,
which means that simply adding 8 to the pnp provides value works to fix
detection of both OPL3 and OPL4.
Problem spotted on 931 and 933 by Krzysztof Helt and confirmed on 924 and
925 (together all OPTi ISA-PnP chips) by me.
Signed-off-by; Rene Herman <rene.herman@gmail.com>
Acked-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] Add descriptions for new module options of snd-sscape driver
Takashi Iwai [Mon, 17 Sep 2007 14:26:16 +0000 (16:26 +0200)]
[ALSA] Add descriptions for new module options of snd-sscape driver

Add descriptions for new module options of snd-sscape driver,
wss_port and dma2.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sscape: driver extension to 2nd DMA and WSS port
Krzysztof Helt [Mon, 17 Sep 2007 14:23:13 +0000 (16:23 +0200)]
[ALSA] sscape: driver extension to 2nd DMA and WSS port

This patch adds second DMA channel and WSS port settings
to the sscape driver. Also, it adds internal card type setting.
The Ensoniq SoundScape VIVO PnP id is added but not handled
yet.

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] caiaq - support for Native Instrument's RigKontrol3
Daniel Mack [Mon, 17 Sep 2007 12:45:14 +0000 (14:45 +0200)]
[ALSA] caiaq - support for Native Instrument's RigKontrol3

This patch adds support for Native Instrument's upcoming
RigKontrol3 sound interface.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sc6000: 2 minor fixes
Krzysztof Helt [Mon, 17 Sep 2007 12:43:14 +0000 (14:43 +0200)]
[ALSA] sc6000: 2 minor fixes

This patch zeroes buffer for the card name and
fixes incorrect jump in the probe function.

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] sc6000: documentation fix
Krzysztof Helt [Mon, 17 Sep 2007 12:42:49 +0000 (14:42 +0200)]
[ALSA] sc6000: documentation fix

This patch fixes MPU-401 irq values list in documentation.

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] Routines for effect processor FX8010: Use list_for_each_entry
Matthias Kaehlcke [Mon, 17 Sep 2007 12:41:16 +0000 (14:41 +0200)]
[ALSA] Routines for effect processor FX8010: Use list_for_each_entry

Routines for effect processor FX8010: Use list_for_each_entry instead
of list_for_each

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Intel HD Audio: Use list_for_each_entry(_safe)
Matthias Kaehlcke [Mon, 17 Sep 2007 12:40:04 +0000 (14:40 +0200)]
[ALSA] Intel HD Audio: Use list_for_each_entry(_safe)

Intel HD Audio: Use list_for_each_entry(_safe) instead of
list_for_each(_safe)

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry
Matthias Kaehlcke [Mon, 17 Sep 2007 12:39:05 +0000 (14:39 +0200)]
[ALSA] ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry

ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry instead of
list_for_each

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ad1848_lib: waiting loops done after cs4231_lib
Krzysztof Helt [Mon, 17 Sep 2007 10:52:43 +0000 (12:52 +0200)]
[ALSA] ad1848_lib: waiting loops done after cs4231_lib

This patch fixes ad1848_lib waiting loops to be the same as in the cs4231_lib.
Acked-by: Rene Herman <rene.herman@gmail.com>
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] sc6000 build fix
Andrew Morton [Mon, 17 Sep 2007 10:50:38 +0000 (12:50 +0200)]
[ALSA] sc6000 build fix

sound/isa/sc6000.c: In function 'sc6000_dsp_reset':
sound/isa/sc6000.c:270: error: implicit declaration of function 'udelay'        sound/isa/sc6000.c: In function 'sc6000_init_mss':
sound/isa/sc6000.c:327: error: implicit declaration of function 'msleep'
{standard input}: Assembler messages:

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] echoaudio - Add barrier() to prevent compiler optimization
Giuliano Pochini [Mon, 17 Sep 2007 10:49:40 +0000 (12:49 +0200)]
[ALSA] echoaudio - Add barrier() to prevent compiler optimization

This patch adds a barrier() to prevent the compiler from
moving the read outside of the loop. It also fixes a comment.

Signed-off-by: Giuliano Pochini <pochini@shiny.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec: Add two new systems to ALC883
Tobin Davis [Mon, 17 Sep 2007 10:46:12 +0000 (12:46 +0200)]
[ALSA] hda-codec: Add two new systems to ALC883

This patch adds support for the Asus M2A-VM HDMI and Abit IP35-PRO
motherboards.

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 4 channel support for Realtek ALC883
Tobin Davis [Mon, 17 Sep 2007 10:45:11 +0000 (12:45 +0200)]
[ALSA] hda-codec: Add 4 channel support for Realtek ALC883

I had a request for a 4 channel mode.  This should implement front
and surround outputs, leaving the 3rd plug for mic input.

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] cmipci: fix distortion on rear channels
Clemens Ladisch [Mon, 17 Sep 2007 07:41:36 +0000 (09:41 +0200)]
[ALSA] cmipci: fix distortion on rear channels

When playing multichannel data, the rear channels can get distorted if
the last sample of the last played stereo stream was not zero.  To avoid
this, add a hack to play a few silence samples after the stream is
stopped.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: clean up struct cmipci_pcm
Clemens Ladisch [Mon, 17 Sep 2007 07:40:57 +0000 (09:40 +0200)]
[ALSA] cmipci: clean up struct cmipci_pcm

Remove some unused field from the struct cmipci_pcm, and change the type
of some others to save some space.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: fix lookup of double rates
Clemens Ladisch [Mon, 17 Sep 2007 07:40:24 +0000 (09:40 +0200)]
[ALSA] cmipci: fix lookup of double rates

When using one of the double sampling rates, use half the sample rate to
look up in the rates[] table, otherwise we stumble over the BUG().

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: reorganize set_dac_channels()
Clemens Ladisch [Mon, 17 Sep 2007 07:39:51 +0000 (09:39 +0200)]
[ALSA] cmipci: reorganize set_dac_channels()

By reorganizing the code that sets the CHB3DxC bits we can not only
simplify this code but also fix the bug where the CHB3D8C bit was not
reset when playing a stereo stream after a 7.1 stream.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: remove 5.0 format
Clemens Ladisch [Mon, 17 Sep 2007 07:39:10 +0000 (09:39 +0200)]
[ALSA] cmipci: remove 5.0 format

Disallow playback of five channels because the hardware does not support
it (or nobody knows how to do it).

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: allow 96 kHz playback on non-multichannel rear
Clemens Ladisch [Mon, 17 Sep 2007 07:37:47 +0000 (09:37 +0200)]
[ALSA] cmipci: allow 96 kHz playback on non-multichannel rear

Move the code that enables 96 kHz out of the if() that checks for
availability of both DMA channels so that it is enabled even when
another stream is playing on the front channels.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: initialize 0x90 registers
Clemens Ladisch [Mon, 17 Sep 2007 07:37:19 +0000 (09:37 +0200)]
[ALSA] cmipci: initialize 0x90 registers

Initialize the registers at 0x90 and 0x91 with some undocumented values.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: reset the chip when initializing
Clemens Ladisch [Mon, 17 Sep 2007 07:36:49 +0000 (09:36 +0200)]
[ALSA] cmipci: reset the chip when initializing

When the chip is initialized, reset it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: show more registers in proc file
Clemens Ladisch [Mon, 17 Sep 2007 07:36:16 +0000 (09:36 +0200)]
[ALSA] cmipci: show more registers in proc file

Show a dump of all registers in the 0x00-0x27 and 0x90-0x93 ranges in
the 'cmipci' proc file.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: update register definitions
Clemens Ladisch [Mon, 17 Sep 2007 07:35:46 +0000 (09:35 +0200)]
[ALSA] cmipci: update register definitions

Update comments for many register symbols, add some new register
symbols, and rename a few ones.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: fix version 37 detection
Clemens Ladisch [Mon, 17 Sep 2007 07:34:59 +0000 (09:34 +0200)]
[ALSA] cmipci: fix version 37 detection

Use the proper value for the bit that identifies chip version 37.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] bt87x: fix detection of generic boards
Clemens Ladisch [Mon, 17 Sep 2007 07:33:37 +0000 (09:33 +0200)]
[ALSA] bt87x: fix detection of generic boards

Add an 'unknown' board type so that it is possible to differentiate
between unknown and generic boards.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] usb-audio: add Ozone Academic support
Clemens Ladisch [Mon, 17 Sep 2007 07:33:17 +0000 (09:33 +0200)]
[ALSA] usb-audio: add Ozone Academic support

Add a quirk to detect the MIDI port on the M-Audio Ozone Academic.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] SC6000 driver - add HAS_IOPORT dependency
Jaroslav Kysela [Wed, 12 Sep 2007 11:29:51 +0000 (13:29 +0200)]
[ALSA] SC6000 driver - add HAS_IOPORT dependency

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] echoaudio - Remove superfluous volatile prefix
Takashi Iwai [Tue, 11 Sep 2007 20:11:08 +0000 (22:11 +0200)]
[ALSA] echoaudio - Remove superfluous volatile prefix

Remove superfluous volatile prefix in the communication struct definition.
This eventually fixes the compile warnings with the recent gcc, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Add description of sc6000 driver
Takashi Iwai [Tue, 11 Sep 2007 20:10:14 +0000 (22:10 +0200)]
[ALSA] Add description of sc6000 driver

Added the description of the new sc6000 driver to ALSA-Configuration.txt.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Gallant SC-6000 driver
Krzysztof Helt [Tue, 11 Sep 2007 19:53:05 +0000 (21:53 +0200)]
[ALSA] Gallant SC-6000 driver

This is port of the Gallant SC-6000 driver from the OSS aedsp16 driver.
This card was also sold as AudioExcel DSP 16 and Zoltrix AV302 (Audio
Plus True 16).

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-intel - Improve HD-audio codec probing robustness
Danny Tholen [Tue, 11 Sep 2007 19:41:56 +0000 (21:41 +0200)]
[ALSA] hda-intel - Improve HD-audio codec probing robustness

When modem is disabled in the BIOS, detection of the number of codecs
always fails after booting if STATESTS is not cleared first.
This patch fixes this problem and also adds an error check in a place
where a read error would lead to a very large number of pointless loops.

Signed-off-by: Danny Tholen <obiwan@mailmij.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] pcxhr - Fix trigger start with non-linked streams
Takashi Iwai [Tue, 11 Sep 2007 19:28:50 +0000 (21:28 +0200)]
[ALSA] pcxhr - Fix trigger start with non-linked streams

The non-linked streams couldn't be started properly due to missing
setting of stream->status.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Fix CS4270 volume control and optimize I2C operations
Timur Tabi [Mon, 10 Sep 2007 22:45:50 +0000 (00:45 +0200)]
[ALSA] Fix CS4270 volume control and optimize I2C operations

The volume control for the CS4270 ASoC driver was inverted - raising the
volume level with alsamixer would decrease the actual volume.
This patch also improves the performance of the I2C code (used to change
register settings) by only performing an I2C write if the new value is
different from the value that's in the register cache.

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] cs4231-lib: improved waiting after mce_down
Krzysztof Helt [Mon, 10 Sep 2007 22:40:42 +0000 (00:40 +0200)]
[ALSA] cs4231-lib: improved waiting after mce_down

This patch replaces long msleeps in waiting loops
with schedule_timeout() calls.

Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Kill useless volatile in pcm.h
Takashi Iwai [Mon, 10 Sep 2007 22:35:06 +0000 (00:35 +0200)]
[ALSA] Kill useless volatile in pcm.h

The volatile prefix is just useless there.  Let's kill them, and then
gcc will be happier, too.
   sound/acore/pcm.c:867: warning: passing argument 1 of ‘__constant_c_and_count_memset’ discards qualifiers from pointer target type

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Fix 'discards qualifiers' compile warnings in pcm.h
Takashi Iwai [Mon, 10 Sep 2007 22:33:48 +0000 (00:33 +0200)]
[ALSA] Fix 'discards qualifiers' compile warnings in pcm.h

Fixed cast messes in pcm.h.
    include/sound/pcm.h: In function ‘hw_param_interval_c’:
    include/sound/pcm.h:800: warning: passing argument 1 of ‘hw_param_interval’ discards qualifiers from pointer target type
Simply redefine the inline functions again for const pointers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] ad1848/cs4231: replace commented out debug code with snd-printd{,d}
Rene Herman [Mon, 10 Sep 2007 21:22:55 +0000 (23:22 +0200)]
[ALSA] ad1848/cs4231: replace commented out debug code with snd-printd{,d}

While I'm at it another 'while I'm there' -- replace commented out debug
code with snd-printd{,d}.

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] ad1848: replace HZ calculus with msecs_to_jiffies()
Rene Herman [Mon, 10 Sep 2007 21:20:34 +0000 (23:20 +0200)]
[ALSA] ad1848: replace HZ calculus with msecs_to_jiffies()

If I'm not mistaken, any (new) use of HZ these days is considered a bug so
while I'm there...

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] ad1838/cs4231 - fix MCE timeout upon initial load
Rene Herman [Mon, 10 Sep 2007 21:19:55 +0000 (23:19 +0200)]
[ALSA] ad1838/cs4231 - fix MCE timeout upon initial load

When the ad1848/cs2431 is first being initialized, auto-calibration may not
be set causing a timeout waiting for it in snd_ad1848/cs4231_mce_down().
This has no dire consequences other than an alarming printk, but since what
we need to wait for is for the calibration to _finish_, let's just check for
that instead.
The early chips need a slight delay (as commented -- 5 sample periods) to be
sure that _if_ calibration is going to happen, it has started when we check
While the CS4231A datasheet implies it'll happen immediately on downing MCE,
some testing is showing that there's a window there as well, so just do the
delay everywhere.
Thanks to Krysztof Helt for pinpointing this problem.

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] au88x0_synth.c bugfix
Adrian Bunk [Mon, 10 Sep 2007 21:15:50 +0000 (23:15 +0200)]
[ALSA] au88x0_synth.c bugfix

This patch fixes the code in vortex_wt_SetFrequency() to what seems to
have been intended.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
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] ad1848: fix AD1848P macro
Rene Herman [Mon, 10 Sep 2007 21:13:26 +0000 (23:13 +0200)]
[ALSA] ad1848: fix AD1848P macro

Consistent variable naming is a good thing, but let's be a little less
sneaky about enforcing it... ;-/

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] hda: BIOS changing subsystem id
Matthew Ranostay [Mon, 10 Sep 2007 21:09:42 +0000 (23:09 +0200)]
[ALSA] hda: BIOS changing subsystem id

Some laptop BIOS change the subsystem id for STAC9205 cards if the
microphone isn't toggled on/off in the settings.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] unexport snd_ctl_elem_{read,write}
Adrian Bunk [Mon, 10 Sep 2007 21:08:34 +0000 (23:08 +0200)]
[ALSA] unexport snd_ctl_elem_{read,write}

snd_ctl_elem_{read,write} no longer have any modular users

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sun-cs4231: checkpatch fixes
Krzysztof Helt [Mon, 10 Sep 2007 21:06:55 +0000 (23:06 +0200)]
[ALSA] sun-cs4231: checkpatch fixes

This patch fixes white spaces and issues pointed 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] document basic TLV stuff
Clemens Ladisch [Mon, 10 Sep 2007 06:05:19 +0000 (08:05 +0200)]
[ALSA] document basic TLV stuff

Add documentation about how to define dB scale information for mixer
controls.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] snd-bt87x: Power down audio ADC when not in use
Trent Piepho [Fri, 7 Sep 2007 11:18:50 +0000 (13:18 +0200)]
[ALSA] snd-bt87x: Power down audio ADC when not in use

Sets a bit to power down the Bt87x's internal audio ADC when the ALSA device
isn't open, or when it is in 'digital mode' using an external ADC.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cmipci: add msbits constraint for 24-bit format
Clemens Ladisch [Fri, 7 Sep 2007 08:44:13 +0000 (10:44 +0200)]
[ALSA] cmipci: add msbits constraint for 24-bit format

Add a msbits constraint to the SPDIF output device to indicate that
S32_LE samples use only 24 bits for data.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add support for Toshiba A305
Takashi Iwai [Fri, 7 Sep 2007 08:58:58 +0000 (10:58 +0200)]
[ALSA] hda-codec - Add support for Toshiba A305

Added the proper model=toshiba for Toshiba A305 with ALC268 codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add missing Mic Boost for some ALC882 models
Takashi Iwai [Fri, 7 Sep 2007 08:57:44 +0000 (10:57 +0200)]
[ALSA] hda-codec - Add missing Mic Boost for some ALC882 models

Mic Boost mixer volume was missing in some ALC882 models.  Added now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] snd-bt87x: Improve support for different board types
Trent Piepho [Thu, 6 Sep 2007 13:06:44 +0000 (15:06 +0200)]
[ALSA] snd-bt87x: Improve support for different board types

Different cards have different audio configurations, but the driver didn't
support this.  The only setting it had was the digital rate.
This patch adds a board configuration list.  Currently, configurable items are
the digital rate and the digital data format (for cards with an external ADC),
a flag for the absence of an external ADC, and a flag for no connection to the
Bt87x internal ADC.
This allows cards that don't use the internal ADC to omit the ALSA 'Bt87x
analog' device and related controls.  Cards without an external ADC can omit
the 'Bt87x digital' device.
In order to support the CS5331A ADC used on the Osprey 440 and 2x0 cards, the
digital format needs to be different than the default.
Support could be added for defining:
  The connections or lack of them to the Bt87x's internal ADC mux
  Multiple sample rates for an external ADC (e.g. Osprey)
  Control of an external mux for an external ADC (e.g. Osprey)
The card definitions for cards other than the Ospreys are kept equivalent to
their old values.  This is likely inaccurate for most cards, as it is doubtful
that both an external and the internal ADC would be used.  Lacking information
on those cards, the behavior is left unchanged.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] cs4231-lib: replace common delay loop by function
Krzysztof Helt [Thu, 6 Sep 2007 13:03:59 +0000 (15:03 +0200)]
[ALSA] cs4231-lib: replace common delay loop by function

This patch replaces a common delay loop by a function.
It also uses ARRAY_SIZE macro for the rates table.
Acked-by: Rene Herman <rene.herman@gmail.com>
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] ad1848_lib: replace common delay loop by function
Krzysztof Helt [Thu, 6 Sep 2007 13:03:22 +0000 (15:03 +0200)]
[ALSA] ad1848_lib: replace common delay loop by function

This patch replaces a common delay loop by a function.
It also uses ARRAY_SIZE macro for the rates table.
Acked-by: Rene Herman <rene.herman@gmail.com>
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] dbri - Use linux/of.h instead of asm/prom.h
Krzysztof Helt [Thu, 6 Sep 2007 13:02:33 +0000 (15:02 +0200)]
[ALSA] dbri - Use linux/of.h instead of asm/prom.h

The linux/of.h header should be used instead of asm/prom.h.

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 quirk entry for Casper CPR2000
Takashi Iwai [Thu, 6 Sep 2007 13:00:27 +0000 (15:00 +0200)]
[ALSA] hda-codec - Add quirk entry for Casper CPR2000

Added the quirk entry for Casper CPR2000 (model=acer) with ALC268 codec
(ALSA bug#3343).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add missing model names for ALC882 codecs
Takashi Iwai [Thu, 6 Sep 2007 12:54:11 +0000 (14:54 +0200)]
[ALSA] hda-codec - Add missing model names for ALC882 codecs

Added the missing model option strings for ALC882 codecs.
Also added the corresponding description in ALSA-Configuration.txt.

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 ASUS A7M
Takashi Iwai [Thu, 6 Sep 2007 12:52:04 +0000 (14:52 +0200)]
[ALSA] hda-codec - Add support for ASUS A7M

Added the support for ASUS A7M with ALC882 codec.
It's slightly different from ASUS A7J.
The patch taken from ALSA bug#3000
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3000

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Add laptop-automute model for AD1986A
Takashi Iwai [Thu, 6 Sep 2007 12:29:53 +0000 (14:29 +0200)]
[ALSA] hda-codec - Add laptop-automute model for AD1986A

Added a new model laptop-automute for AD1986A, which has the HP jack
detection and auto-muting of the speaker.  Currently, it's used for
Lenovo N100.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] Add missing models for Dell with STAC9200 codec
Takashi Iwai [Wed, 5 Sep 2007 21:48:45 +0000 (23:48 +0200)]
[ALSA] Add missing models for Dell with STAC9200 codec

Added the missing description of models for Dell machines with
STAC9200 HD-audio codec chip.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] hda-codec - Fix wrong pin config order in STAC92xx dell models
Takashi Iwai [Wed, 5 Sep 2007 21:46:03 +0000 (23:46 +0200)]
[ALSA] hda-codec - Fix wrong pin config order in STAC92xx dell models

The last patch to change/add Dell models have wrong pin config orders.
This patch fixes the pin positions.
Taken from ALSA bug#3319,
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 - Add support for Acer Aspire 9303
Takashi Iwai [Wed, 5 Sep 2007 17:14:38 +0000 (19:14 +0200)]
[ALSA] hda-codec - Add support for Acer Aspire 9303

Add the entry for Acer Aspire 9303 (model=acer-aspire) with ALC883 codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
17 years ago[ALSA] sun-cs4231: memory management fix
Krzysztof Helt [Wed, 5 Sep 2007 13:07:57 +0000 (15:07 +0200)]
[ALSA] sun-cs4231: memory management fix

The chip structure is now allocated by snd_card_new()
and it must not be released by separate kfree().

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] dbri: conversion to OpenFirmware framework
Krzysztof Helt [Wed, 5 Sep 2007 13:05:08 +0000 (15:05 +0200)]
[ALSA] dbri: conversion to OpenFirmware framework

This patch converts the dbri driver to use OF framework.

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] cs4231 header split
Krzysztof Helt [Tue, 4 Sep 2007 11:24:14 +0000 (13:24 +0200)]
[ALSA] cs4231 header split

This patch splits the cs4231.h file into two parts:
- cs4231-regs.h which contain register constants and macros
- cs4231.h which includes the above and contain rest of the definitions
This will allow to share register definitions between x86 ISA cs4231
and SPARC cs4231.

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] dbri: more cleanups
Krzysztof Helt [Tue, 4 Sep 2007 11:09:20 +0000 (13:09 +0200)]
[ALSA] dbri: more cleanups

This patch:
- removes redundant constant suffices
- removes redundant parentheses
- removes redundant curly brackets
- removes check if a spinlock is locked inside method which is
  only called with the spinlock locked
- moves few functions to the __init section
- removes line which appears twice after the previous patch
- minor comments improvements

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>