pandora-kernel.git
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 years ago[ALSA] sun-cs4231: code improvements
Krzysztof Helt [Tue, 4 Sep 2007 11:08:24 +0000 (13:08 +0200)]
[ALSA] sun-cs4231: code improvements

This patch does some code improvements to make
driver (both code and binary) shorter.
It also make use of card->private_data pointer to
store chip information.

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>
16 years ago[ALSA] cs5535audio: drop unused bus master stuff
Andres Salomon [Mon, 3 Sep 2007 13:43:43 +0000 (15:43 +0200)]
[ALSA] cs5535audio: drop unused bus master stuff

We really only care about the first two bus masters (playback and capture).
There's no need to have unused BM code lying around, so let's get rid of it.
If for some reason we trigger an IRQ for some BM that we're not using.. well,
that warrants spitting out an error message (imo).

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cs5535audio: fix ACC_BM[x]_CMD register handling
Andres Salomon [Mon, 3 Sep 2007 13:43:18 +0000 (15:43 +0200)]
[ALSA] cs5535audio: fix ACC_BM[x]_CMD register handling

According to 6.3.2.7 of the cs5535/cs5536 data sheets, the ACC_BM[x]_CMD
registers are only 8 bits wide.  This driver treats them as 32 bits wide,
and also has bits in the wrong place.  Simple fix to the definitions.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cs5535audio: update PCI device handling in suspend/resume
Andres Salomon [Mon, 3 Sep 2007 13:42:52 +0000 (15:42 +0200)]
[ALSA] cs5535audio: update PCI device handling in suspend/resume

Save the PCI state before disabling the device, and add some error checking.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cs5535audio: fix PRD register save/restore power management race
Andres Salomon [Mon, 3 Sep 2007 13:42:16 +0000 (15:42 +0200)]
[ALSA] cs5535audio: fix PRD register save/restore power management race

In the suspend path, we currently save the PRD registers and then disable DMA.
This is racy; the sound hardware might update the PRD register as it finishes
processing some DMA pages between when we've saved the PRD registers and
when DMA actually gets disabled.  Furthermore, we actively check whether or
not DMA is enabled before saving PRD registers; there's no reason to do that,
as the PRD registers should not update when we twiddle the ACC_BM[x]_CMD
register(s).  Worst case, we save the PRD registers twice; even powering
down the ACC shouldn't mess with the PRD registers (according to the 5536
data sheet, section 5.3.7.4, power-down procedure).  This patch reworks
all that to first disable DMA, and then save PRD registers.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cs5535audio: correctly set dma->substream
Andres Salomon [Mon, 3 Sep 2007 13:41:47 +0000 (15:41 +0200)]
[ALSA] cs5535audio: correctly set dma->substream

We're never actually setting dma->substream to the current substream; that
means the dma->substream checks that we do in the suspend/resume path
are never satisfied, and the PRD registers are never correctly managed.  This
changes it so that we set the substream when constructing the specific
bus master DMA, and unsetting it when we tear down the BM's DMA.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - Fix support for sigmatel codecs that have 2 or more ADCs
Maxim Levitsky [Mon, 3 Sep 2007 13:31:02 +0000 (15:31 +0200)]
[ALSA] hda-codec - Fix support for sigmatel codecs that have 2 or more ADCs

1) Create seperate mixer controls for each ADC
2) Make number of substreams of capture PCM device be equal to
   number of ADCs

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - make volume knob, the master volume for sigmatel codecs
Maxim Levitsky [Mon, 3 Sep 2007 13:30:26 +0000 (15:30 +0200)]
[ALSA] hda-codec - make volume knob, the master volume for sigmatel codecs

VolumeKnob is present on most sigmatel codecs, it allows to decrease
volume of all DACs at once, it is a kind of post-procesing volume.
Note that all output amps of sigmatel only decrease volume, and all
input amps only increase volume.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - add support for analog loopback to STAC9204/9205/922x/927x
Maxim Levitsky [Mon, 3 Sep 2007 13:29:37 +0000 (15:29 +0200)]
[ALSA] hda-codec - add support for analog loopback to STAC9204/9205/922x/927x

The analog loopback routes the sound just before it enters ADC0
to output of DAC0.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - add support for swapping center/LFE channels to STAC codecs
Maxim Levitsky [Mon, 3 Sep 2007 13:29:04 +0000 (15:29 +0200)]
[ALSA] hda-codec - add support for swapping center/LFE channels to STAC codecs

Center/LFE channels are located on same jack, so it can be usefull
to swap them.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-intel - Fix resume logic, when dynamic power managment is on
Maxim Levitsky [Mon, 3 Sep 2007 13:28:04 +0000 (15:28 +0200)]
[ALSA] hda-intel - Fix resume logic, when dynamic power managment is on

Comment in hda_intel.c states that 'the explicit resume is needed only
when POWER_SAVE isn't set', but this is not true.
There is no code that will automaticly power up the codec on resume,
but only code that powers it up when user accesses it. So if user
leaves a sound playing, codec will not be powered
To fix that I check if there are any codecs that should be powered
codec->power_count, and if so I power them up together with main
controller.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-intel - fix a race in dynamic power managment
Maxim Levitsky [Mon, 3 Sep 2007 13:26:57 +0000 (15:26 +0200)]
[ALSA] hda-intel - fix a race in dynamic power managment

codec->power_transition is supposed to be true while codec is going
to be shut off if in the mean time somebody calls snd_hda_power_up,
hda_power_work will not shut down the codec, but nether will clear
codec->power_transition, thus it stays on forever. Fix this.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: show real chip name in card name
Clemens Ladisch [Mon, 3 Sep 2007 07:56:45 +0000 (09:56 +0200)]
[ALSA] cmipci: show real chip name in card name

The '-MCx' suffix that is expected by alsa-lib is only needed in the
card driver string, so we can show the actual chip name in the
shortname.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: check that the legacy MIDI port works
Clemens Ladisch [Mon, 3 Sep 2007 07:56:23 +0000 (09:56 +0200)]
[ALSA] cmipci: check that the legacy MIDI port works

Check that the UART_EN bit actually enabled the MPU-401 port.
Apparently, C-Media thinks that it is a good idea to be paranoid here.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: do not check for integrated FM/MIDI ports with chip version 37
Clemens Ladisch [Mon, 3 Sep 2007 07:55:49 +0000 (09:55 +0200)]
[ALSA] cmipci: do not check for integrated FM/MIDI ports with chip version 37

Integrated MPU-401/OPL3 ports are available with chip version 39 and
later, so we do not test for the port with version 37.
Now that the test is known to work, we can again enable the MIDI port by
default.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: add 96 kHz support
Clemens Ladisch [Mon, 3 Sep 2007 07:54:55 +0000 (09:54 +0200)]
[ALSA] cmipci: add 96 kHz support

Add support for 88.2 kHz and 96 kHz analog and digital playback on
CMI8768/CMI8770 chips.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: remove invalid channels constraint
Clemens Ladisch [Mon, 3 Sep 2007 07:54:27 +0000 (09:54 +0200)]
[ALSA] cmipci: remove invalid channels constraint

Remove the constraint that sets the channel limit for the first playback
device to that of the second one; the first device supports only stereo.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - Avoid zero NID in line_out_pins[] of STAC codecs
Takashi Iwai [Mon, 3 Sep 2007 07:43:38 +0000 (09:43 +0200)]
[ALSA] hda-codec - Avoid zero NID in line_out_pins[] of STAC codecs

The STAC codes adds line_out_pins[] for shared mic/line-inputs accordingly.
But, the current code may give a hole with NID=0 in some setting, which
results in an error at probe.  This patch fixes the problem.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - Fix wrong pin-setup at resume of STAC codecs
Takashi Iwai [Mon, 3 Sep 2007 07:36:36 +0000 (09:36 +0200)]
[ALSA] hda-codec - Fix wrong pin-setup at resume of STAC codecs

The resume procedure for STAC codecs overrides the cached values and
results in the wrong (reset) PIN state.  The patch gets rid of the
overriding part and simplifies the resume.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] usb-audio: update quirk for Rane SL 1 (aka. Serato Scratch Live)
Mark Hills [Mon, 3 Sep 2007 06:20:09 +0000 (08:20 +0200)]
[ALSA] usb-audio: update quirk for Rane SL 1 (aka. Serato Scratch Live)

Allow the interface's mixer to be used, and give the interface its
correct name.

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>
16 years ago[ALSA] hda-codec - code cleanups in patch_sigmatel.c
Maxim Levitsky [Fri, 31 Aug 2007 10:52:19 +0000 (12:52 +0200)]
[ALSA] hda-codec - code cleanups in patch_sigmatel.c

Clean up the mixer entries for Input Source using a macro.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - Fix capture on ALC262 HP machines
zhejiang [Fri, 31 Aug 2007 10:36:05 +0000 (12:36 +0200)]
[ALSA] hda-codec - Fix capture on ALC262 HP machines

Fix the index for Front Mic capture source on ALC262 HP machines.
Also, added the new capture source list for HP BPC DC7000 series
to work properly.
From: zhejiang <zhe.jiang@intel.com>

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hdsp - Add support for latset RME9632 revisions
Remy Bruno [Fri, 31 Aug 2007 10:33:54 +0000 (12:33 +0200)]
[ALSA] hdsp - Add support for latset RME9632 revisions

added support for the latest revision of the 9632 (and hopefully a few
following ones). The DSP matrix was not working because of wrong
identification of the card in this part of the code.

Signed-off-by: Remy Bruno <remy.bruno@trinnov.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hdspm - Fix autosync bug
Remy Bruno [Fri, 31 Aug 2007 10:21:08 +0000 (12:21 +0200)]
[ALSA] hdspm - Fix autosync bug

* better report of speed mode change failures
* autosync_ref control bugfix (was reporting pref_sync_ref instead)
  (changed HDSPM_AES32_AUTOSYNC_FROM_NONE value to comply with array
  indexing in snd_hdspm_info_autosync_ref())
* added support for master modes up to 192kHz (clock source control
  value was restricted up to 96kHz)

Signed-off-by: Remy Bruno <remy.bruno@trinnov.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] missing error check in usb sound driver
Oliver Neukum [Fri, 31 Aug 2007 10:15:27 +0000 (12:15 +0200)]
[ALSA] missing error check in usb sound driver

usb_set_interface() can fail, even for altsetting 0

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] usb-audio: add quirk for Serato Scratch Live DJ Box
Clemens Ladisch [Wed, 29 Aug 2007 15:38:14 +0000 (17:38 +0200)]
[ALSA] usb-audio: add quirk for Serato Scratch Live DJ Box

Add a quirk to detect the Serato Scratch Live DJ Box.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] ac97 - Suppress the reset of audio-codec from modem-codec at resume
Takashi Iwai [Wed, 29 Aug 2007 13:12:46 +0000 (15:12 +0200)]
[ALSA] ac97 - Suppress the reset of audio-codec from modem-codec at resume

On codec chips with both audio and modem functions (e.g. Conexant one),
performing AC97_RESET resets the whole registers.  When both audio and
modem drivers are resumed at the same time, the modem one often is
resumed after the audio, and it results in the reset of audio registers
(ALSA bug#3333).
This patch fixes such a problem.  Since the modem codec basically
doesn't need AC97_RESET, skip this initialization unless specified
as audio.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] hda-codec - Add Mic Boost control with auto-configuration
Takashi Iwai [Wed, 29 Aug 2007 13:07:11 +0000 (15:07 +0200)]
[ALSA] hda-codec - Add Mic Boost control with auto-configuration

Some codecs need Mic Boost mixer controls for obtaining a proper recording
level, but the auto-configuration doesn't create them.
This patch adds the creation of mic-boost controls on corresponding codecs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] Allow shared IRQ for CS5530 device
Takashi Iwai [Wed, 29 Aug 2007 10:54:25 +0000 (12:54 +0200)]
[ALSA] Allow shared IRQ for CS5530 device

CS5530 is a PCI device and often shares the IRQ although the SB common
routine tries to allocate it exclusively.  This patch allows shared IRQ
for CS5530.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] emu10k1: There's no need to cast vmalloc() return value in snd_emu10k1_create()
Jesper Juhl [Tue, 28 Aug 2007 13:21:33 +0000 (15:21 +0200)]
[ALSA] emu10k1: There's no need to cast vmalloc() return value in snd_emu10k1_create()

vmalloc() returns void *. no need to cast.

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>
16 years ago[ALSA] cmipci: show actual chip name in card longname
Clemens Ladisch [Mon, 27 Aug 2007 07:22:31 +0000 (09:22 +0200)]
[ALSA] cmipci: show actual chip name in card longname

Show the actual name of CMI8762/CMI8768/CMI8769/CMI8770 chips in the
card longname instead of just using 'CMI8738' for all of them.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: remove has_dual_dac
Clemens Ladisch [Mon, 27 Aug 2007 07:21:02 +0000 (09:21 +0200)]
[ALSA] cmipci: remove has_dual_dac

Remove the has_dual_dac variable because it was always set.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: reorganize chip version detection
Clemens Ladisch [Mon, 27 Aug 2007 07:20:31 +0000 (09:20 +0200)]
[ALSA] cmipci: reorganize chip version detection

Add a case for chip version 39 where no bit is set in register 0Ch, and
move the detection of version 39 before that of 8768.  This makes the
logic more compatible with the driver on that other OS.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 years ago[ALSA] cmipci: make the test for integrated MIDI port address more robust
Clemens Ladisch [Fri, 24 Aug 2007 07:18:04 +0000 (09:18 +0200)]
[ALSA] cmipci: make the test for integrated MIDI port address more robust

Unused bytes in the I/O register range are likely to have the value 0x00
instead of 0xff, so test against both values when checking for the
presence of the integrated MIDI port.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>