platform/adaptation/renesas_rcar/renesas_kernel.git
16 years agoALSA: hda - Fix FSC V5505 model
Takashi Iwai [Sat, 12 Jul 2008 10:05:25 +0000 (12:05 +0200)]
ALSA: hda - Fix FSC V5505 model

model=laptop-hpmicsense matches better to FSC V5505 laptop.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Fix missing init for unsol events on micsense model
Takashi Iwai [Sat, 12 Jul 2008 10:04:05 +0000 (12:04 +0200)]
ALSA: hda - Fix missing init for unsol events on micsense model

Fixed the missing initialization for unsolicited events on
Cx5045 micsense model.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Fix internal mic vref pin setup
Takashi Iwai [Sat, 12 Jul 2008 10:02:45 +0000 (12:02 +0200)]
ALSA: hda - Fix internal mic vref pin setup

Set the vref80 to the internal mic pin 0x12 for Cx5045.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda: 92hd71bxx PC Beep
Matthew Ranostay [Thu, 10 Jul 2008 15:49:11 +0000 (17:49 +0200)]
ALSA: hda: 92hd71bxx PC Beep

Added volume controls for the analog PC Beep on 92hd71bxx codecs.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: HDA - HP dc7600 with pci sub IDs 0x103c/0x3011 belongs to hp-3013 model
Jaroslav Kysela [Thu, 10 Jul 2008 12:49:19 +0000 (14:49 +0200)]
ALSA: HDA - HP dc7600 with pci sub IDs 0x103c/0x3011 belongs to hp-3013 model

As reported and tested by an RedHat customer, HP dc7600 with pci sub IDs
0x103c/0x3011 works with the hp-3013 model and not with the hp only model.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: usb-audio: add some Yamaha USB MIDI quirks
Clemens Ladisch [Thu, 10 Jul 2008 09:05:42 +0000 (11:05 +0200)]
ALSA: usb-audio: add some Yamaha USB MIDI quirks

Add quirk entries for four Yamaha USB MIDI devices.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
16 years agoALSA: usb-audio: fix Yamaha KX quirk
Clemens Ladisch [Thu, 10 Jul 2008 09:01:06 +0000 (11:01 +0200)]
ALSA: usb-audio: fix Yamaha KX quirk

We have to restrict the quirk to interface 0 because the second
interface is not MIDI but HID. Additionally, this product ID is used
by all four KX models, so it is better to read the product name from
the device.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
16 years agoALSA: ASoC: Au12x0/Au1550 PSC Audio support
Manuel Lauss [Wed, 9 Jul 2008 14:27:56 +0000 (16:27 +0200)]
ALSA: ASoC: Au12x0/Au1550 PSC Audio support

Audio for Au12x0/Au1550 PSCs in AC97 and I2S mode, for ASoC v1 framework.

- DBDMA, AC97 and I2S drivers
- sample AC97 machine code (Db1200)

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Add Yamaha KX49 (USB MIDI controller) to usbquirks.h
Richard Chan [Wed, 9 Jul 2008 17:39:07 +0000 (19:39 +0200)]
ALSA: Add Yamaha KX49 (USB MIDI controller) to usbquirks.h

This patch is for the Yamaha USB MIDI controller KX49.
http://www.yamahasynth.com/products/kx/index.html
It has a 3-port MIDI interface and an HID interface (it has a tiny
keyboard subset).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: pxa2xx-ac97: fix warning due to missing argument in fuction declaration
Dmitry Baryshkov [Tue, 8 Jul 2008 15:45:42 +0000 (19:45 +0400)]
ALSA: ASoC: pxa2xx-ac97: fix warning due to missing argument in fuction declaration

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: tosa: fix compilation with new DAPM API
Dmitry Baryshkov [Tue, 8 Jul 2008 15:45:20 +0000 (19:45 +0400)]
ALSA: tosa: fix compilation with new DAPM API

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: wavefront - add const
Takashi Iwai [Wed, 9 Jul 2008 17:13:30 +0000 (19:13 +0200)]
ALSA: wavefront - add const

Fix const to non-const pointer cast warning in wavefront_synth.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: remove CONFIG_KMOD from sound
Johannes Berg [Wed, 9 Jul 2008 08:28:41 +0000 (10:28 +0200)]
ALSA: remove CONFIG_KMOD from sound

A bunch of things in alsa depend on CONFIG_KMOD,
use CONFIG_MODULES instead where the dependency
is needed at all.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Fix a const to non-const assignment in the Digigram VXpocket sound driver
David Howells [Tue, 8 Jul 2008 16:52:10 +0000 (17:52 +0100)]
ALSA: Fix a const to non-const assignment in the Digigram VXpocket sound driver

Fix a const to non-const pointer assignment warning in the Digigram VXpocket
sound driver.

This may be due to patch 0aa4937648b91e9e6d3879b2cbeaa5f0c9863ac0.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Fix a const pointer usage warning in the Digigram VX soundcard driver
David Howells [Tue, 8 Jul 2008 16:30:30 +0000 (17:30 +0100)]
ALSA: Fix a const pointer usage warning in the Digigram VX soundcard driver

Fix a const pointer usage warning in the Digigram VX soundcard driver.  A
const pointer is being passed to copy_from_user() to load the firmware into.
This is okay in this case because the function has allocated the firmware
struct itself, but the const qualifier is part of the firmware struct - so the
patch casts the const away.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: at32 - DAI struct merge and enable_pin() change.
Liam Girdwood [Tue, 8 Jul 2008 12:21:52 +0000 (13:21 +0100)]
ALSA: asoc: at32 - DAI struct merge and enable_pin() change.

This adds support for the recent DAI struct merge and new DAPM pin API.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: n810 - fix build error.
Liam Girdwood [Tue, 8 Jul 2008 12:20:39 +0000 (13:20 +0100)]
ALSA: asoc: n810 - fix build error.

This patch adds a missing " that was recently introduced (removed)
in the DAI struct merge patch series.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: machines - add Digital Audio Interface (DAI) control functions.
Liam Girdwood [Tue, 8 Jul 2008 12:19:18 +0000 (13:19 +0100)]
ALSA: asoc: machines - add Digital Audio Interface (DAI) control functions.

This patch adds several functions for DAI control and config
and replaces the current method of calling function pointers within
the DAI struct within the machine drivers.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: core - add Digital Audio Interface (DAI) control functions.
Liam Girdwood [Tue, 8 Jul 2008 12:19:13 +0000 (13:19 +0100)]
ALSA: asoc: core - add Digital Audio Interface (DAI) control functions.

This patch adds several functions for DAI control and config
and replaces the current method of calling function pointers within
the DAI struct.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - removed redundant gpio_mask
Matthew Ranostay [Tue, 8 Jul 2008 09:50:09 +0000 (11:50 +0200)]
ALSA: hda - removed redundant gpio_mask

An gpio_mask value was defined twice needlessly.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Dump DAPM state for non-stream changes
Mark Brown [Mon, 7 Jul 2008 18:26:04 +0000 (19:26 +0100)]
ALSA: ASoC: Dump DAPM state for non-stream changes

Explicit DAPM syncs are likely to cause DAPM state updates, as are mixer
and mux configuration changes, so display the DAPM status after them too.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Switch DAPM to use of standard DEBUG macro
Mark Brown [Mon, 7 Jul 2008 18:26:03 +0000 (19:26 +0100)]
ALSA: ASoC: Switch DAPM to use of standard DEBUG macro

DAPM contains debug output controlled by a DAPM_DEBUG macro. Change this
to be controlled by the standard DEBUG, dropping the custom dbg() macro
as we go.

Also fix the error printed when configuring an unknown pin to be an
unconditionally displayed error rather than debug output.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: sh - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:08:29 +0000 (16:08 +0100)]
ALSA: asoc: sh - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the SuperH platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: s3c24xx - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:08:24 +0000 (16:08 +0100)]
ALSA: asoc: s3c24xx - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the S3C24xx platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: pxa - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:08:11 +0000 (16:08 +0100)]
ALSA: asoc: pxa - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the PXA platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: omap - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:08:07 +0000 (16:08 +0100)]
ALSA: asoc: omap - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the Omap platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: fsl - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:08:00 +0000 (16:08 +0100)]
ALSA: asoc: fsl - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the Freescale PPC platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:07:52 +0000 (16:07 +0100)]
ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the codec drivers.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: davinci - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:07:42 +0000 (16:07 +0100)]
ALSA: asoc: davinci - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the DaVinci platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: at91 - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:07:37 +0000 (16:07 +0100)]
ALSA: asoc: at91 - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the AT91 platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: at32 - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:07:29 +0000 (16:07 +0100)]
ALSA: asoc: at32 - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch series merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for AT32 platform.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: core - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
Liam Girdwood [Mon, 7 Jul 2008 15:07:17 +0000 (16:07 +0100)]
ALSA: asoc: core - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.

This patch series merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai in preparation for further
ASoC v2 patches.

This merger removes duplication in both DAI structures and simplifies
the API for other users.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: asoc: core - refactored DAPM pin control API.
Liam Girdwood [Mon, 7 Jul 2008 12:35:17 +0000 (13:35 +0100)]
ALSA: asoc: core - refactored DAPM pin control API.

Refactored snd_soc_dapm_set_endpoint() to snd_soc_dapm_enable_pin() and
snd_soc_dapm_disable_pin().

Renamed snd_soc_dapm_sync_endpoints() to snd_soc_dapm_sync().
Renamed snd_soc_dapm_get_endpoint_status() to
snd_soc_dapm_get_pin_status().

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Add support for Lenovo 3000 N200
Takashi Iwai [Mon, 7 Jul 2008 14:04:04 +0000 (16:04 +0200)]
ALSA: hda - Add support for Lenovo 3000 N200

Added the model entry (model=lenovo) for Lenovo N3000 N200 laptop
with ALC861-VD.  Reference below:
https://bugzilla.novell.com/show_bug.cgi?id=406425

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Fix warning from strict_strtoul()
Mark Brown [Fri, 4 Jul 2008 15:01:14 +0000 (16:01 +0100)]
ALSA: ASoC: Fix warning from strict_strtoul()

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: AC97 codec PM
Manuel Lauss [Thu, 3 Jul 2008 07:33:10 +0000 (09:33 +0200)]
ALSA: ASoC: AC97 codec PM

Simple suspend/resume for AC97 ASoC codec.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Acked-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Make pop/click debug wait times dynamically configurable
Mark Brown [Wed, 2 Jul 2008 10:51:20 +0000 (11:51 +0100)]
ALSA: ASoC: Make pop/click debug wait times dynamically configurable

DAPM supports adding a compile time configurable delay to the widget power
sequences, aiding diagnosis of problems with pops and clicks being
generated during them. This patch converts this to be configurable at run
time via a sysfs file.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Advertise 16000Hz rate for WM9713 PCM interface
Mark Brown [Wed, 2 Jul 2008 10:51:19 +0000 (11:51 +0100)]
ALSA: ASoC: Advertise 16000Hz rate for WM9713 PCM interface

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ac97 - fix patch_ucb1400 for proper resume
Mike Rapoport [Wed, 2 Jul 2008 10:19:23 +0000 (13:19 +0300)]
ALSA: ac97 - fix patch_ucb1400 for proper resume

Replace 'snd_ac97_write' with snd_ac97_write_cache' in pacth_ucb1400 to allow
proper codec wakeup.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ALSA: hda - Fix speaker output on Toshiba P105
Takashi Iwai [Tue, 1 Jul 2008 12:52:05 +0000 (14:52 +0200)]
ALSA: ALSA: hda - Fix speaker output on Toshiba P105

Toshiba Satellite P105 with cx5045 has no HP pin but only a
speaker pin and does the speaker-muting on hardware.
Thus the matching model is laptop-micsense.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Add missing Thinkpad Z60m support
Takashi Iwai [Mon, 30 Jun 2008 14:40:10 +0000 (16:40 +0200)]
ALSA: hda - Add missing Thinkpad Z60m support

Added the missing SSID of Thinkpad Z60m for model=thinkpad with
AD1981HD.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ALSA: hda - Fix ALC883 medion model
Takashi Iwai [Fri, 27 Jun 2008 14:30:57 +0000 (16:30 +0200)]
ALSA: ALSA: hda - Fix ALC883 medion model

ALC883 medion model doesn't unmute the proper amps so no output can be heard.
Replaced the mute switches to behave just like other models.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: TLV320AIC3X: Add mixer control for ADC highpass filter
Jarkko Nikula [Fri, 27 Jun 2008 11:07:57 +0000 (14:07 +0300)]
ALSA: ASoC: TLV320AIC3X: Add mixer control for ADC highpass filter

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Fix AC97 power down
Takashi Iwai [Fri, 27 Jun 2008 09:55:20 +0000 (11:55 +0200)]
ALSA: Fix AC97 power down

Some laptops don't like PR3 powerdown.  Do PR3 powerdown only
for the real power-saving.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: via82xx - Add VIA audio device #1841 to ac97_quirk list
Walter Sheets [Fri, 27 Jun 2008 09:53:31 +0000 (11:53 +0200)]
ALSA: via82xx - Add VIA audio device #1841 to ac97_quirk list

Signed-off-by: Walter Sheets <w41ter@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Release v1.0.17rc3
Jaroslav Kysela [Fri, 27 Jun 2008 08:11:58 +0000 (10:11 +0200)]
ALSA: Release v1.0.17rc3

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - disable amp override on non-HP machines
Takashi Iwai [Thu, 26 Jun 2008 12:49:58 +0000 (14:49 +0200)]
ALSA: hda - disable amp override on non-HP machines

Some machines with Cx5045 seem to have no problem with the volume
over 0dB on NID 0x17.  Disable amp overrides for other devices but HP.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ymfpci - fix initial volume for 44.1kHz output
Takashi Iwai [Wed, 25 Jun 2008 15:17:00 +0000 (17:17 +0200)]
ALSA: ymfpci - fix initial volume for 44.1kHz output

YDSXGR_BUF441OUTVOL register isn't initialized properly.  This may lead to
a silent output at full volume of unchanged "Wave Playback Volume".
http://bugzilla.kernel.org/show_bug.cgi?id=10963

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Add MacBook 3.1 support
Takashi Iwai [Thu, 26 Jun 2008 12:42:51 +0000 (14:42 +0200)]
ALSA: hda - Add MacBook 3.1 support

MacBook 3.1 is compatible with model=mbp3.
Added the codec SSID 10b6:3600.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add digital mic configuration to N810 machine driver
Jarkko Nikula [Wed, 25 Jun 2008 11:58:47 +0000 (14:58 +0300)]
ALSA: ASoC: Add digital mic configuration to N810 machine driver

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: TLV320AIC3X: Add support for digital microphone input
Jarkko Nikula [Wed, 25 Jun 2008 11:58:46 +0000 (14:58 +0300)]
ALSA: ASoC: TLV320AIC3X: Add support for digital microphone input

AIC33 and AIC34 codecs in TLV320AIC3x family support digital microphone
input. When enabled, the codec ADC takes bitstream input to low-pass
filter from GPIO2 instead of its own delta-sigma modulator while providing
oversampling clock through GPIO1.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: TLV320AIC3X: Modify only interface related bits in aic3x_set_dai_fmt
Jarkko Nikula [Wed, 25 Jun 2008 11:58:45 +0000 (14:58 +0300)]
ALSA: ASoC: TLV320AIC3X: Modify only interface related bits in aic3x_set_dai_fmt

Those two serial data interface control register bits have also other
functions and they can be set before aic3x_set_dai_fmt is called.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: TLV320AIC3X: Use register modifier widget for mic bias
Jarkko Nikula [Wed, 25 Jun 2008 11:42:08 +0000 (14:42 +0300)]
ALSA: ASoC: TLV320AIC3X: Use register modifier widget for mic bias

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add support for generic DAPM register modifier widget
Jarkko Nikula [Wed, 25 Jun 2008 11:42:07 +0000 (14:42 +0300)]
ALSA: ASoC: Add support for generic DAPM register modifier widget

This generic register modifier widget is for updating multiple codec
register bits at once when the widget changes its power state.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Replace custom debug macros with pr_ equivalents
Mark Brown [Mon, 23 Jun 2008 13:51:29 +0000 (14:51 +0100)]
ALSA: ASoC: Replace custom debug macros with pr_ equivalents

Several ASoC codec drivers use custom macros equivalent to the standard
pr_ macros, most of which are not actually used. Replace these custom
macros with the standard ones.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add AK4535 driver
Richard Purdie [Mon, 23 Jun 2008 13:51:28 +0000 (14:51 +0100)]
ALSA: ASoC: Add AK4535 driver

The AK4535 codec is included in some HP iPAQ systems.

This driver was originally written by Richard Purdie and with some bug
fixes from Milan Plzik.  While out of tree it has also had some
mechanical updates for new APIs and current best practices from Liam
Girdwood, Graeme Gregory and Mark Brown.

Signed-off-by: Richard Purdie <richard@openedhand.com>
Signed-off-by: Milan Plzik <milan.plzik@gmail.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Graeme Gregory <gg@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: PCI168 snd-azt3328: some more fixups
Andreas Mohr [Mon, 23 Jun 2008 09:50:47 +0000 (11:50 +0200)]
ALSA: PCI168 snd-azt3328: some more fixups

- fix problem with codec register 0x6a being write-only
  by adding a software shadow register
  (caused annoying noise after module loading due to _toggling_
  between gameport and audio bits instead of configuring them properly)
- rename several "Wave" mixer controls to "PCM", since this is
  what Wine and several other apps are looking for (IOW, _requiring_)
  and this is what AC97 specs use as naming, too,
  thus I'd guess it's what these controls are
- cleanup, small optimizations

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: trident - pause s/pdif output
Pierre Ossman [Mon, 23 Jun 2008 09:45:47 +0000 (11:45 +0200)]
ALSA: trident - pause s/pdif output

Stop the S/PDIF DMA engine and output when the device is told to pause.
It will keep on looping the current buffer contents if this isn't done.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Tested-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Added SSID for 'Fujitsu Siemens Amilo M1451G' laptop
Travis Place [Mon, 23 Jun 2008 09:42:30 +0000 (11:42 +0200)]
ALSA: hda - Added SSID for 'Fujitsu Siemens Amilo M1451G' laptop

Add the SSID for the "Fujitsu Siemens Amilo M1451G" laptop to
patch_realtek.c , so that it uses ALC880_FUJITSU by default.

Signed-off-by: Travis Place <wishie@wishie.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Added model selection for iMac 24"
Travis Place [Fri, 20 Jun 2008 14:51:45 +0000 (16:51 +0200)]
ALSA: hda - Added model selection for iMac 24"

Added the SSID of a known iMac 24" to automatically use
ALC885_IMAC24 quirk.

Signed-off-by: Travis Place <wishie@wishie.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Revert "alsa: add annotations to bitwise type snd_pcm_hw_param_t"
Jaroslav Kysela [Thu, 26 Jun 2008 06:51:31 +0000 (08:51 +0200)]
[ALSA] Revert "alsa: add annotations to bitwise type snd_pcm_hw_param_t"

This reverts commit 36b34d2437104f323e09d7c6af6451d3c0b9c0cd.

From: Al Viro <viro@ZenIV.linux.org.uk>

WIW, *all* this stuff is not bitwise at all.  For crying out loud, half
of these types are routinely used as array indices and loop variables...

If anything, we want a different set of allowed operations - subtraction
between elements of type (yielding integer), addition/subtraction of
integer types not bigger than ours (yielding our type), comparisons,
assignments (=, +=, -=, passing to function as argument, return from
function, initializers) and second/third arguments in ?:.  With 0 *not*
being allowed as a constant of such type.

It's not bitwise; we may use the same infrastructure in sparse, but it
should be a separate class of types (__attribute__((affine))).

dma_addr_t is another candidate for the same treatment, but there we'll
need helpers for conversions to hw-acceptable form (dma_to_le32(), etc.)
and gradual conversion of drivers.

ALSA ones and pm mess are absolutely straightforward cases, though.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Fix digital converter proc output
Takashi Iwai [Thu, 19 Jun 2008 13:41:37 +0000 (15:41 +0200)]
ALSA: hda - Fix digital converter proc output

AC_VERB_GET_DIGI_CONVERT_2 isn't actually implemented but reserved.
The whole SIC bits are returned from DIGI_CONVERT_1.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsa: add annotations to bitwise type snd_pcm_hw_param_t
Harvey Harrison [Wed, 18 Jun 2008 20:45:13 +0000 (13:45 -0700)]
alsa: add annotations to bitwise type snd_pcm_hw_param_t

Fully half of all alsa sparse warnings are from snd_pcm_hw_param_t degrading
to integer type, this goes a long way towards eliminating them.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: fix PM=n build
Randy Dunlap [Tue, 17 Jun 2008 18:19:34 +0000 (19:19 +0100)]
ALSA: ASoC: fix PM=n build

Fix sound/soc build failure when CONFIG_PM=n:

linux-next-20080617/sound/soc/soc-core.c:829: error: 'soc_resume_deferred' undeclared (first use in this function)
soc3.out:make[3]: *** [sound/soc/soc-core.o] Error 1

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ca0106 - Add entry for another MSI K8N Diamond MB
Takashi Iwai [Tue, 17 Jun 2008 14:35:22 +0000 (16:35 +0200)]
ALSA: ca0106 - Add entry for another MSI K8N Diamond MB

Added an entry for another MSI K8N Diamond mobo with SSID 1102:1009.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Fix wrong volumes in AD1988 auto-probe mode
Takashi Iwai [Mon, 16 Jun 2008 13:47:26 +0000 (15:47 +0200)]
ALSA: hda - Fix wrong volumes in AD1988 auto-probe mode

Don't create mixer volume elements for Headphone and Speaker if they
use the same DAC as normal line-outs on AD1988.  Otherwise the amp
value gets screwed up, e.g.
https://bugzilla.novell.com/show_bug.cgi?id=398255

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Fix register programming in Freescale MPC8610 HPCD sound driver
Timur Tabi [Fri, 13 Jun 2008 19:02:31 +0000 (14:02 -0500)]
ALSA: Fix register programming in Freescale MPC8610 HPCD sound driver

Fix the Freescale MPC8610 HPCD sound driver so that it programs the DMACR
and PMUXCR registers in the global utilities correctly.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: emu10k1 - simplify the last fix
Takashi Iwai [Tue, 17 Jun 2008 14:30:27 +0000 (16:30 +0200)]
ALSA: emu10k1 - simplify the last fix

Clean up the previous commit for fixing memory leaks.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoALSA: emu10k1 - fix possible memory leak in memory allocation routines
Jaroslav Kysela [Tue, 17 Jun 2008 14:20:13 +0000 (16:20 +0200)]
ALSA: emu10k1 - fix possible memory leak in memory allocation routines

The leak was introduced in "[ALSA] emu10k1 - simplify page allocation
for synth" commit.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Remove duplicate MODULE_AUTHOR/DESCRIPTION/LICENCE from snd-ens1370.ko
Jaroslav Kysela [Mon, 16 Jun 2008 08:39:34 +0000 (10:39 +0200)]
ALSA: Remove duplicate MODULE_AUTHOR/DESCRIPTION/LICENCE from snd-ens1370.ko

But comment only extra code in ak4531_codec.c for history.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: Release 1.0.17rc2
Jaroslav Kysela [Mon, 16 Jun 2008 07:42:25 +0000 (09:42 +0200)]
ALSA: Release 1.0.17rc2

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - use upper_32_bits()
Takashi Iwai [Fri, 13 Jun 2008 18:53:56 +0000 (20:53 +0200)]
ALSA: hda - use upper_32_bits()

Use the standard upper_32_bits() instead of own macro.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - bdl_pos_adj=32 as default
Takashi Iwai [Fri, 13 Jun 2008 18:50:27 +0000 (20:50 +0200)]
ALSA: hda - bdl_pos_adj=32 as default

Use bdl_pos_adj=32 as default except for Intel hardwares confirmed
to work with bdl_pos_adj=1.  Looks like ATI and NVidia require this
higher value.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Don't block system resume
Andy Green [Fri, 13 Jun 2008 15:24:05 +0000 (16:24 +0100)]
ALSA: ASoC: Don't block system resume

On OpenMoko soc-audio resume is taking 700ms of the whole resume time of
1.3s, dominated by writes to the codec over I2C.  This patch shunts the
resume guts into a workqueue which then is done asynchronously.

The "card" is locked using the ALSA power state APIs as suggested by
Mark Brown.

[Added fix for race with resume to suspend and fixed a couple of nits
from checkpatch -- broonie.]

Signed-off-by: Andy Green <andy@openmoko.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Check for exact register match in wm97xx_reset()
Mark Brown [Fri, 13 Jun 2008 15:24:04 +0000 (16:24 +0100)]
ALSA: ASoC: Check for exact register match in wm97xx_reset()

To provide added robustness in case an AC97 controller reads back all
zeros in error cases check for an exact match when testing to see if
resets have brought the codec back.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda: Add support for 92HD73xxx codecs
Matthew Ranostay [Fri, 13 Jun 2008 16:04:33 +0000 (18:04 +0200)]
ALSA: hda: Add support for 92HD73xxx codecs

Added support for new family of IDT codecs.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: make snd_ctl_elem_read() and snd_ctl_elem_write() static
Takashi Iwai [Thu, 12 Jun 2008 16:17:26 +0000 (18:17 +0200)]
ALSA: make snd_ctl_elem_read() and snd_ctl_elem_write() static

snd_ctl_elem_read() and snd_ctl_elem_write() are no longer used by
any other drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Remove unused mutex
Takashi Iwai [Thu, 12 Jun 2008 15:43:36 +0000 (17:43 +0200)]
ALSA: hda - Remove unused mutex

Removed unused mutex from patch_*.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Fix stac9205_cfg_tbl
Takashi Iwai [Thu, 12 Jun 2008 14:27:24 +0000 (16:27 +0200)]
ALSA: hda - Fix stac9205_cfg_tbl

Sort stac9205_cfg_table in the order of id numbers, and removed the
duplicated (obsoleted) entries for 0x01fc and 0x01fd.  This doesn't
change the driver behavior since the old entries are all secondary.

The duplication occured due to commit dfe495d0, and the old entries
were introduced by commit ae0a8ed8.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Cover also Nokia N810 WiMAX Edition in N810 machine driver
Jarkko Nikula [Wed, 11 Jun 2008 12:47:15 +0000 (13:47 +0100)]
ALSA: ASoC: Cover also Nokia N810 WiMAX Edition in N810 machine driver

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add TLV information to the LM4857 controls on the GTA01
Mike Montour [Wed, 11 Jun 2008 12:47:14 +0000 (13:47 +0100)]
ALSA: ASoC: Add TLV information to the LM4857 controls on the GTA01

Signed-off-by: Mike Montour <mail@mmontour.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add SOC_SINGLE_EXT_TLV control type
Mike Montour [Wed, 11 Jun 2008 12:47:13 +0000 (13:47 +0100)]
ALSA: ASoC: Add SOC_SINGLE_EXT_TLV control type

Signed-off-by: Mike Montour <mail@mmontour.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add TLV information to remaining WM8753 controls
Mike Montour [Wed, 11 Jun 2008 12:47:12 +0000 (13:47 +0100)]
ALSA: ASoC: Add TLV information to remaining WM8753 controls

Signed-off-by: Mike Montour <mail@mmontour.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Fix WM9713 voice PCM slave mode configuration
Mark Brown [Wed, 11 Jun 2008 12:47:11 +0000 (13:47 +0100)]
ALSA: ASoC: Fix WM9713 voice PCM slave mode configuration

Reported-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Pass the DAI being configured into CPU DAI probe and remove
Mark Brown [Wed, 11 Jun 2008 12:47:10 +0000 (13:47 +0100)]
ALSA: ASoC: Pass the DAI being configured into CPU DAI probe and remove

This allows per-DAI initialisation to be done by the CPU DAI drivers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Add missing includes
Mark Brown [Wed, 11 Jun 2008 12:47:09 +0000 (13:47 +0100)]
ALSA: ASoC: Add missing includes

Ensure that DAIs are prototyped in the codec drivers that define them.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Tweak tlv320aicx reg_cache_size
Mark Brown [Wed, 11 Jun 2008 12:47:08 +0000 (13:47 +0100)]
ALSA: ASoC: Tweak tlv320aicx reg_cache_size

ASoC codec drivers frequently set the register cache size using sizeof()
rather than ARRAY_SIZE(). For tlv320aicx either is correct since the
registers are 8 bit but update to use ARRAY_SIZE() for clarity.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Fix register cache size for UDA1380
Mark Brown [Wed, 11 Jun 2008 12:47:07 +0000 (13:47 +0100)]
ALSA: ASoC: Fix register cache size for UDA1380

The register cache size is used by the codec_reg sysfs file which works in
terms of the register cache access functions rather than in terms of raw
access to the cache so the size specified needs to be in terms of the
number of elements.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: ASoC: Fix register cache sizes for Wolfson codecs
Mark Brown [Wed, 11 Jun 2008 12:47:06 +0000 (13:47 +0100)]
ALSA: ASoC: Fix register cache sizes for Wolfson codecs

The register cache size is used by the codec_reg sysfs file which works in
terms of the register cache access functions rather than in terms of raw
access to the cache so the size specified needs to be in terms of the
number of elements.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: opti93x: use cs4231 lib
Krzysztof Helt [Wed, 11 Jun 2008 10:26:32 +0000 (12:26 +0200)]
ALSA: opti93x: use cs4231 lib

This patch converts the Opti93x driver to use
the cs4231 library instead of duplicating the code.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Tested-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: opti93x: add support for Opti93x codec in cs4231-lib
Krzysztof Helt [Mon, 9 Jun 2008 21:07:28 +0000 (23:07 +0200)]
ALSA: opti93x: add support for Opti93x codec in cs4231-lib

This patch adds support for WSS compatible Opti93x
codec to the cs4231-lib.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Tested-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Add a warning if pending IRQ is found
Takashi Iwai [Tue, 10 Jun 2008 15:53:35 +0000 (17:53 +0200)]
ALSA: hda - Add a warning if pending IRQ is found

The pending IRQ handling is a very hackish workaround and should be
avoided as much as possible via a larger bdl_pos_adj option value.
Put a warning message if this situation occurs so that the user may have
a chance to notice that something is wrong.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Add description of bdl_pos_adj option
Takashi Iwai [Tue, 10 Jun 2008 15:53:35 +0000 (17:53 +0200)]
ALSA: hda - Add description of bdl_pos_adj option

Added a brief description of the new bdl_pos_adj option to
ALSA-Configuration.txt.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Fix bdl_pos_adj value for ATI SB chipsets
Takashi Iwai [Tue, 10 Jun 2008 15:53:35 +0000 (17:53 +0200)]
ALSA: hda - Fix bdl_pos_adj value for ATI SB chipsets

ATI SB controllers seem to report the DMA ahead in the amount of FIFO.
Thus bdl_pos_adj should be 32 for them as default.

Also, the default value is set to -1, which means to make the driver
to choose the appropriate value.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - bdl_pos_adj option to each instance
Takashi Iwai [Tue, 10 Jun 2008 15:53:34 +0000 (17:53 +0200)]
ALSA: hda - bdl_pos_adj option to each instance

The option bdl_pos_adj should be provided for each card instance instead of
a global one because the value depends rather on each controller-chip.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - remove position_fix=3
Takashi Iwai [Tue, 10 Jun 2008 15:53:34 +0000 (17:53 +0200)]
ALSA: hda - remove position_fix=3

position_fix=3 is the option to correct the DMA position with the
FIFO size.  But, it never worked correctly, and we have now more other
workarounds for the DMA position fixes.  Thus better to remove it.

Also, change POS_FIX_NONE to POS_FIX_LPIB to represent its real role
better.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: hda - Add bdl_pos_adj option
Takashi Iwai [Tue, 10 Jun 2008 15:53:20 +0000 (17:53 +0200)]
ALSA: hda - Add bdl_pos_adj option

Added a new option, bdl_pos_adj, to adjust the delay of IRQ-wakeup
timing.

Most HD-audio hardwares have a problem that a BDL IRQ is issued before
actually the data and the DMA pointer are updated.
We have already a mechanism to force to delay snd_pcm_period_elapsed()
calls via workq, but this costs much CPU, and typically the delay is
within one sample.  Thus, it's more clever to adjust the BDL entries
instead.

The new option adds the size of the delay in frames.  As default,
it's set to 1 -- that is, one sample delay.  Even the hardware is
really correct, one sample delay is relatively harmless in comparison
with reporting wrong positions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agosound: sound/oss/dmasound/: cleanups
Adrian Bunk [Mon, 9 Jun 2008 22:26:28 +0000 (01:26 +0300)]
sound: sound/oss/dmasound/: cleanups

This patch contains the following cleanups:
- make the following needlessly global functions static:
  - dmasound_core.c: get_afmt_string()
  - dmasound_paula.c: dmasound_paula_init()
  - dmasound_q40.c: dmasound_q40_init()
- remove the following unused global variable:
  - dmasound_core.c: software_input_volume

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoALSA: emu10k1 - Fix page allocation with GFP_DMA
Takashi Iwai [Tue, 10 Jun 2008 10:34:45 +0000 (12:34 +0200)]
ALSA: emu10k1 - Fix page allocation with GFP_DMA

Added the missing GFP_ATOMIC to page_alloc when called with GFP_DMA.
GFP_KERNEL often results in stalls for ZONE_DMA, so GFP_ATOMIC is more
prgmatic.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda - Add Toshiba dynabook SS RX1 support
Akio Idehara [Mon, 9 Jun 2008 13:57:40 +0000 (22:57 +0900)]
[ALSA] hda - Add Toshiba dynabook SS RX1 support

I have Toshiba dynabook SS RX1 and this patch adds that support.

Signed-off-by: Akio Idehara <zbe64533@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>