GitHub/exynos8895/android_kernel_samsung_universal8895.git
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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>