]> err.no Git - linux-2.6/log
linux-2.6
16 years ago[ALSA] sound: Use time_before, time_before_eq, etc.
Julia Lawall [Mon, 7 Jan 2008 12:33:45 +0000 (13:33 +0100)]
[ALSA] sound: Use time_before, time_before_eq, etc.

The functions time_before, time_before_eq, time_after, and time_after_eq
are more robust for comparing jiffies against other values.
A simplified version of the semantic patch making this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@ change_compare_np @
expression E;
@@
(
- jiffies <= E
+ time_before_eq(jiffies,E)
|
- jiffies >= E
+ time_after_eq(jiffies,E)
|
- jiffies < E
+ time_before(jiffies,E)
|
- jiffies > E
+ time_after(jiffies,E)
)
@ include depends on change_compare_np @
@@
#include <linux/jiffies.h>
@ no_include depends on !include && change_compare_np @
@@
  #include <linux/...>
+ #include <linux/jiffies.h>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] es18xx: Enable wavetable input from ESS chips
Krzysztof Helt [Mon, 7 Jan 2008 11:24:45 +0000 (12:24 +0100)]
[ALSA] es18xx: Enable wavetable input from ESS chips

This patch enables wavetable chips ES689/ES69X connected to
ESS ES18xx chips. The wavetable chip uses FM DAC if the clock signal
from the wavetable is active.
It has no effect if there is no ESS wavetable chip present.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add IEC958 digital out support for Lenovo Thinkpads T61/X61
Jerone Young [Mon, 7 Jan 2008 11:22:18 +0000 (12:22 +0100)]
[ALSA] hda-codec - Add IEC958 digital out support for Lenovo Thinkpads T61/X61

This patch adds IEC958 digital out support for the AD1984 sound card.
This card can be found in Lenovo Thinkapds T61/X61. The digital out is
not located on the Thinkpad, but optional docking station (it's coxial
digital out). I've add this support as it is done the exact same way
for the AD1983 & AD1884.
I have tested this patch with my Lenovo Thinkpad T61 hooked up to a
docking station (that has the digital coxial) and then run to my home
theater reciever. Works like a charm :-)

Signed-off-by: Jerone Young <jerone@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda: STAC927x VREF fix
Matthew Ranostay [Mon, 7 Jan 2008 11:18:28 +0000 (12:18 +0100)]
[ALSA] hda: STAC927x VREF fix

Some laptops incorrectly assume the front input jack as a line in
instead of a microphone in. Which in turn disables the voltage
reference, in which non-amplified input is not possible.  This patch
enables VREF80 for the input jack.

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 ago[ALSA] oxygen: use uintptr_t in pointer casts
Clemens Ladisch [Fri, 4 Jan 2008 08:22:20 +0000 (09:22 +0100)]
[ALSA] oxygen: use uintptr_t in pointer casts

When we store the DMA channel number in the substream's private_data
pointer, use uintptr_t as an intermediate step when casting from/to
unsigned int to prevent the compiler from whining when the pointer size
is different.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/usb/usbaudio.c: fix build with CONFIG_PM=n
Andrew Morton [Mon, 24 Dec 2007 13:40:56 +0000 (14:40 +0100)]
[ALSA] sound/usb/usbaudio.c: fix build with CONFIG_PM=n

sound/usb/usbaudio.c: In function 'usb_audio_suspend':
sound/usb/usbaudio.c:3674: error: implicit declaration of function 'snd_pcm_sus\pend_all'

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Sort ad1986a cfg table
Takashi Iwai [Mon, 24 Dec 2007 13:36:09 +0000 (14:36 +0100)]
[ALSA] hda-codec - Sort ad1986a cfg table

Sort the ad1986a config table by PCI SSID (the last toshiba entry was
added wrongly).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] add Asus Xonar driver
Clemens Ladisch [Sun, 23 Dec 2007 18:52:08 +0000 (19:52 +0100)]
[ALSA] add Asus Xonar driver

Add the snd-virtuoso driver for the Asus Virtuoso 200 chip used on the
PCI and PCI-E models of the Xonar sound card.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] add CMI8788 driver
Clemens Ladisch [Sun, 23 Dec 2007 18:50:57 +0000 (19:50 +0100)]
[ALSA] add CMI8788 driver

Add the snd-oxygen driver for the C-Media CMI8788 (Oxygen) chip, used on
the Asound A-8788, AuzenTech X-Meridian, Bgears b-Enspirer,
Club3D Theatron DTS, HT-Omega Claro, Razer Barracuda AC-1,
Sondigo Inferno, and TempoTec HIFIER sound cards.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - alc268 input_mux should be a selector instead of mixer
Jiang Zhe [Thu, 20 Dec 2007 12:13:13 +0000 (13:13 +0100)]
[ALSA] hda-codec - alc268 input_mux should be a selector instead of mixer

According to the [0003659], the node 0x23,0x24 is a selector.
I checked the alc268 spec on the REALTEK website and it showed that they
were selectors indeed.
However, current code implement the alc268 input_mux in a mixer way.

Signed-off-by: Jiang Zhe <zhe.jiang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Device ID for Toshiba laptop which uses AD1986A
Jiang Zhe [Thu, 20 Dec 2007 12:01:28 +0000 (13:01 +0100)]
[ALSA] hda-codec - Device ID for Toshiba laptop which uses AD1986A

The model laptop-eapd get rid of the high-pitched noise.
(ALSA bug#3662)

Signed-off-by: Jiang Zhe <zhe.jiang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Fix capture mixers of ALC662 models
Herton Ronaldo Krzesinski [Wed, 19 Dec 2007 16:49:02 +0000 (17:49 +0100)]
[ALSA] hda-codec - Fix capture mixers of ALC662 models

The commit that added support for ASUS P701 eeepc also changed the
mixers of other ALC662 models, duplicating entries for the Capture
items, making them to not work anymore. This fixes it by removing
duplicated entries using where possible the common alc662_capture_mixer.
Also alc662_capture_mixer should use alc662* functions and not alc882
(I checked /proc/asound/card0/codec* on an eepc model and it's ok).

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] neo1973: ASoC include pathname fix
Harald Welte [Wed, 19 Dec 2007 14:37:49 +0000 (15:37 +0100)]
[ALSA] neo1973: ASoC include pathname fix

Fix s3c24xx include file path changes in asoc driver

Signed-off-by: Harald Welte <laforge@openmoko.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] usb-audio: add UR-80 PCM quirk
Clemens Ladisch [Wed, 19 Dec 2007 13:25:24 +0000 (14:25 +0100)]
[ALSA] usb-audio: add UR-80 PCM quirk

Add a quirk entry to handle Edirol UR-80 audio I/O.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add missing #defines (and 1 rename) in hda_codec.h
Andrew Paprocki [Wed, 19 Dec 2007 11:13:44 +0000 (12:13 +0100)]
[ALSA] hda-codec - Add missing #defines (and 1 rename) in hda_codec.h

Added AC_VERB_GET_DIGI_CONVERT_2 and renamed AC_VERB_GET_DIGI_CONVERT to
AC_VERB_GET_DIGI_CONVERT_1 to stay consistent with the SET variants. Added
AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK, AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK,
and AC_PINCAP_LR_SWAP. The missing fields were listed in the ALC883 datasheet
rev 1.3.

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Fix invalid access to non-existing dmux on STAC
Takashi Iwai [Tue, 18 Dec 2007 17:05:52 +0000 (18:05 +0100)]
[ALSA] hda-codec - Fix invalid access to non-existing dmux on STAC

The digital mux on STAC codecs doesn't always exist although the
driver builds dmux enum mixer elements unconditionally.
Now the driver creates 'digital input source' mixer elements only
when dmux is available.
Also, the patch adds the missing dmux definition for STAC925x.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] cs4270: wrong sample rate when CONFIG_SND_SOC_CS4270_VD33_ERRATA is set
Timur Tabi [Tue, 18 Dec 2007 14:42:53 +0000 (15:42 +0100)]
[ALSA] cs4270: wrong sample rate when CONFIG_SND_SOC_CS4270_VD33_ERRATA is set

When CONFIG_SND_SOC_CS4270_VD33_ERRATA is set, there was a mismatch between
the mclk_ratios[] and cs4270_mode_ratios[] arrays.  The two arrays have been
merged and code has been shuffled.  One side effect is that the
cs4270_set_dai_sysclk() and cs4270_set_dai_fmt() functions are available only
if I2C has been enabled.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] include/sound/: Spelling fixes
Joe Perches [Tue, 18 Dec 2007 12:14:21 +0000 (13:14 +0100)]
[ALSA] include/sound/: Spelling fixes

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/: Spelling fixes
Joe Perches [Tue, 18 Dec 2007 12:13:47 +0000 (13:13 +0100)]
[ALSA] sound/: Spelling fixes

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] at73c213: replace spinlock in mixer functions with a mutex
Hans-Christian Egtvedt [Mon, 17 Dec 2007 16:30:06 +0000 (17:30 +0100)]
[ALSA] at73c213: replace spinlock in mixer functions with a mutex

This patch fixes the locking bug in the at73c213 SPI sound driver. This bug was
triggered because spinlocks were wrapped around the spi_sync call which might
sleep. The fix was to add a mutex to the sound driver and replace the spinlocks
in the mixer functions with mutex lock/unlock.
Tested on STK1000/STK1002.

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - sort pci quirk list
Takashi Iwai [Mon, 17 Dec 2007 16:14:18 +0000 (17:14 +0100)]
[ALSA] hda-codec - sort pci quirk list

Sort pci quirk list in the order of PCI SSID.
This makes easier to find out the buggy duplicated entries.
Thanks to Andy Shevchenko for providing the sort script.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Add missing device link
Takashi Iwai [Mon, 17 Dec 2007 15:24:04 +0000 (16:24 +0100)]
[ALSA] Add missing device link

Added the missing link to struct device from the card instance.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Avoid overload of PCM volume on Cx5045 codec
Takashi Iwai [Mon, 17 Dec 2007 13:32:49 +0000 (14:32 +0100)]
[ALSA] hda-codec - Avoid overload of PCM volume on Cx5045 codec

The PCM volume of Cx5045 codec has overload that isn't useful but
rather harmful.  Add a hack to override the amp info to set the max
level 0 dB.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda: STAC927x DMIC Cleanup
Matthew Ranostay [Mon, 17 Dec 2007 10:58:13 +0000 (11:58 +0100)]
[ALSA] hda: STAC927x DMIC Cleanup

Cleaned up STAC927x and added several subsystem id's for more laptops.

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 ago[ALSA] hda-codec - Fix definition of AC_KNBCAP_DELTA to match spec
Andrew Paprocki [Mon, 17 Dec 2007 10:49:44 +0000 (11:49 +0100)]
[ALSA] hda-codec - Fix definition of AC_KNBCAP_DELTA to match spec

AC_KNBCAP_DELTA is incorrectly defined as (1<<8). According to the Intel
HDA spec, this is bit 7 after AC_KNBCAP_NUM_STEPS which is a 0x7f mask.

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Add SNDRV_PCM_IOCTL_TSTAMP back to compat ioctl
Takashi Iwai [Mon, 17 Dec 2007 10:44:25 +0000 (11:44 +0100)]
[ALSA] Add SNDRV_PCM_IOCTL_TSTAMP back to compat ioctl

The replaced one should be re-added for older alsa-lib.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] PCM - added back TSTAMP ioctl for PCM (for old alsa-lib binaries)
Jaroslav Kysela [Mon, 17 Dec 2007 08:02:22 +0000 (09:02 +0100)]
[ALSA] PCM - added back TSTAMP ioctl for PCM (for old alsa-lib binaries)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] usb audio suspend support
Oliver Neukum [Fri, 14 Dec 2007 13:42:41 +0000 (14:42 +0100)]
[ALSA] usb audio suspend support

This patch implements suspend/resume support for USB audio devices.
It works with the microphone in my camera.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sis7019: support the SiS 7019 Audio Accelerator
David Dillow [Fri, 14 Dec 2007 13:40:23 +0000 (14:40 +0100)]
[ALSA] sis7019: support the SiS 7019 Audio Accelerator

Basic audio support for the SiS 7019 Audio Accelerator as found in the
SiS 55x SoC. There is currently no synth support at the moment, but
audio playback and capture with two periods per buffer has seen
extensive use. Arbitrary period and buffer sizes (with multiple periods
per buffer) have seen light testing, but are believed to be production
ready.

Signed-off-by: David Dillow <dave@thedillows.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/core/seq: move declarations of globally visible variables to proper...
Marcin Ślusarz [Fri, 14 Dec 2007 11:59:50 +0000 (12:59 +0100)]
[ALSA] sound/core/seq: move declarations of globally visible variables to proper headers

sound/core/seq: move declarations of globally visible variables to proper headers

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] info_oss: move prototype of snd_card_info_read_oss to info.h
Marcin Ślusarz [Fri, 14 Dec 2007 11:58:45 +0000 (12:58 +0100)]
[ALSA] info_oss: move prototype of snd_card_info_read_oss to info.h

info_oss: move prototype of snd_card_info_read_oss to info.h

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] pcm_lib: fix sparse warning about different signedness
Marcin Ślusarz [Fri, 14 Dec 2007 11:53:21 +0000 (12:53 +0100)]
[ALSA] pcm_lib: fix sparse warning about different signedness

pcm_lib: fix sparse warning about different signedness

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] pcm_lib: fix sparse warning about shadowing 'n' symbol
Marcin Ślusarz [Fri, 14 Dec 2007 11:52:53 +0000 (12:52 +0100)]
[ALSA] pcm_lib: fix sparse warning about shadowing 'n' symbol

pcm_lib: fix sparse warning about shadowing 'n' symbol

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] via82xx: minor optimization in snd_via82xx_free
Marcin Ślusarz [Fri, 14 Dec 2007 11:51:24 +0000 (12:51 +0100)]
[ALSA] via82xx: minor optimization in snd_via82xx_free

via82xx: minor optimization in snd_via82xx_free
don't check X, when we just checked !X before goto

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] pcm_native: fix sparse warning about shadowing 'state' symbol
Marcin Ślusarz [Fri, 14 Dec 2007 11:50:16 +0000 (12:50 +0100)]
[ALSA] pcm_native: fix sparse warning about shadowing 'state' symbol

pcm_native: fix sparse warning about shadowing 'state' symbol

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sb16 - Suppress compile warning
Takashi Iwai [Fri, 14 Dec 2007 11:18:52 +0000 (12:18 +0100)]
[ALSA] sb16 - Suppress compile warning

sound/isa/sb/sb16_csp.c: In function ‘snd_sb_csp_new’:
sound/isa/sb/sb16_csp.c:121: warning: ‘version’ may be used uninitialized in this function

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] copy_ctl_value_from_user() warning fix
Andrew Morton [Fri, 14 Dec 2007 11:13:12 +0000 (12:13 +0100)]
[ALSA] copy_ctl_value_from_user() warning fix

sound/core/control_compat.c: In function 'copy_ctl_value_from_user':
sound/core/control_compat.c:222: warning: 'count' may be used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Fix old tstamp ioctl for compat_ioctl
Takashi Iwai [Fri, 14 Dec 2007 11:10:26 +0000 (12:10 +0100)]
[ALSA] Fix old tstamp ioctl for compat_ioctl

Replaced the old SNDRV_PCM_IOCTL_TSTAMP with the new one in
PCM compat_ioctl.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda: Added more 92HD71 codecs
Matthew Ranostay [Fri, 14 Dec 2007 11:08:04 +0000 (12:08 +0100)]
[ALSA] hda: Added more 92HD71 codecs

Added more codecs to the 92HD71 family, as well as support for several
that don't have an analog mixer.

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 ago[ALSA] hda: 92HD73 DMIC Amps
Matthew Ranostay [Fri, 14 Dec 2007 11:07:31 +0000 (12:07 +0100)]
[ALSA] hda: 92HD73 DMIC Amps

Changed hardware gain mixers for the digital mic's from HDA_OUTPUT to
HDA_INPUT.

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 ago[ALSA] hda-intel: Enable Analog CD Input from internal ATAPI connector on Asus M2N-SLI
Johannes Stezenbach [Thu, 13 Dec 2007 16:51:00 +0000 (17:51 +0100)]
[ALSA] hda-intel: Enable Analog CD Input from internal ATAPI connector on Asus M2N-SLI

Enable Analog CD Input from internal ATAPI connector on Asus M2N-SLI.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda: Added STAC92HD73 support
Matthew Ranostay [Thu, 13 Dec 2007 16:47:21 +0000 (17:47 +0100)]
[ALSA] hda: Added STAC92HD73 support

Added support for new STAC92HD73 family of codecs. Additionally added
features for multiple analog loopbacks, and multiple dmux mixers.
Regression testing for the analog loopback changes for STAC9205 and
STAC9274D completed with any issues, as well for the dmux changes.

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 ago[ALSA] hda-codec - Initial support of the Mitac 8252D (based on ALC883)
Andy Shevchenko [Thu, 13 Dec 2007 16:32:26 +0000 (17:32 +0100)]
[ALSA] hda-codec - Initial support of the Mitac 8252D (based on ALC883)

The attached patch adds initial support of the Mitac 8252D
(http://www.mitac-mtc.com.tw/English/products/8252Dspec.htm).
Working:
 - Front speakers (volume + mute)
 - Center/LFE speakers (volume + mute)
 - HP out (with Front Volume)
 - HP individual mute switch
 - HP Jack sense
 - Front Mic and its volume
Not tested:
 - external mic and its volume
Not working while now:
 - Mic Jack sense
Questionable:
 - is Mic have Jack sense?
 - one or two Mic volume controls?
 - CD/Line-in: presense in the mixer

Signed-off-by: Andy Shevchenko <andy@smile.org.ua>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add ALC889/ALC267/ALC269 support
Kailang Yang [Thu, 13 Dec 2007 15:52:54 +0000 (16:52 +0100)]
[ALSA] hda-codec - Add ALC889/ALC267/ALC269 support

Added the support of new Realtek codecs:
1. New ALC889 Support
2. New ALC267 Support
3. New ALC269 Support

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add support for VIA VT1708B HD audio codec
Josepch Chan [Thu, 13 Dec 2007 15:40:40 +0000 (16:40 +0100)]
[ALSA] hda-codec - Add  support for VIA VT1708B HD audio codec

This patch adds support for VIA new HD audio codec, VT1708B.

Signed-off-by: Josepch Chan <josephchan@via.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Update descriptions of isapnp-specific module options
Rene Herman [Thu, 13 Dec 2007 15:29:33 +0000 (16:29 +0100)]
[ALSA] Update descriptions of isapnp-specific module options

Signed-off-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 ago[ALSA] alsa: usx2y nopage
Nick Piggin [Thu, 13 Dec 2007 15:16:40 +0000 (16:16 +0100)]
[ALSA] alsa: usx2y nopage

Convert alsa usx2y driver from nopage to fault.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] alsa: nopage
Nick Piggin [Thu, 13 Dec 2007 15:15:00 +0000 (16:15 +0100)]
[ALSA] alsa: nopage

Convert ALSA from nopage to fault.
Switch from OOM to SIGBUS if the resource is not available.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Device ID for MSI L745
Takashi Iwai [Thu, 13 Dec 2007 12:13:31 +0000 (13:13 +0100)]
[ALSA] hda-codec - Device ID for MSI L745

Added the model targa-2ch-dig for MSL L745 (ALSA bug#3641).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] PCM - fixed SNDRV_PCM_FORMAT_U24_BE silence constant
Jaroslav Kysela [Thu, 13 Dec 2007 09:36:03 +0000 (10:36 +0100)]
[ALSA] PCM - fixed SNDRV_PCM_FORMAT_U24_BE silence constant

Reported by Timur Tabi <timur@freescale.com> .

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Use posix clock monotonic for PCM and timer timestamps
Jaroslav Kysela [Thu, 13 Dec 2007 09:19:42 +0000 (10:19 +0100)]
[ALSA] Use posix clock monotonic for PCM and timer timestamps

We need an accurate and continuous (monotonic) time sources to do
accurate synchronization among more timing sources. This patch allows
to enable monotonic timestamps for ALSA PCM devices and enables monotonic
timestamps for ALSA timer devices.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] cmipci: document 'Modem' control version check
Clemens Ladisch [Tue, 11 Dec 2007 07:55:16 +0000 (08:55 +0100)]
[ALSA] cmipci: document 'Modem' control version check

Add a comment that explains why the 'Modem' control doesn't work with
newer chips.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] cmipci: disable 'Modem' control on version 39 or newer chips
Clemens Ladisch [Mon, 10 Dec 2007 11:28:52 +0000 (12:28 +0100)]
[ALSA] cmipci: disable 'Modem' control on version 39 or newer chips

On version 39 or newer chips, we better remove the 'Modem' control
because this register bit now mutes the front channels of the
multichannel stream.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] echoaudio - convert from semaphore to mutex
Takashi Iwai [Mon, 3 Dec 2007 16:08:40 +0000 (17:08 +0100)]
[ALSA] echoaudio - convert from semaphore to mutex

Converted from semaphore to mutex.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Fix typo in the ALC883 initial code
Andy Shevchenko [Mon, 3 Dec 2007 15:50:58 +0000 (16:50 +0100)]
[ALSA] hda-codec - Fix typo in the ALC883 initial code

The attached patch should fix typo in auto initialization verbs for ALC883
codec.

Signed-off-by: Andy Shevchenko <andy@smile.org.ua>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] switching rate in STAC9460 codec of Prodigy192
Pavel Hofman [Mon, 3 Dec 2007 11:44:28 +0000 (12:44 +0100)]
[ALSA] switching rate in STAC9460 codec of Prodigy192

* support for switching rate in STAC9460 - using set_rate_val of the akm
infrastructure
* listing all STAC9460 registers in proc
* disabling mpu401 device for Prodigy192 - otherwise the currently
  flawed mpu401 code hangs kernel when opening the midi device
* removing old unused commented-out code

Signed-off-by: Pavel Hofman <dustin@seznam.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] I2C fix for ice1724
Pavel Hofman [Mon, 3 Dec 2007 11:37:17 +0000 (12:37 +0100)]
[ALSA] I2C fix for ice1724

adding i2c busy wait before sending device address to prevent reading
bogus data.

Signed-off-by: Pavel Hofman <dustin@seznam.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/isa: kill pnp_resource_change
Rene Herman [Fri, 30 Nov 2007 16:59:25 +0000 (17:59 +0100)]
[ALSA] sound/isa: kill pnp_resource_change

This removes the pnp_resource_change use from the ALSA ISAPnP drivers. In
2.4 these were useful in providing an easy path to setting the resources,
but in 2.6 they retain function as a layering violation only.
This makes for a nice cleanup (-550 lines) of ALSA but moreover, ALSA is the
only remaining user of pnp_init_resource_table(), pnp_resource_change() and
pnp_manual_config_dev() (and, in fact, of 'struct pnp_resource_table') in
the tree outide of drivers/pnp itself meaning it makes for more cleanup
potential inside the PnP layer.
Thomas Renninger acked their removal from that side, you did from the ALSA
side (CC list just copied from that thread).
Against current alsa-kernel HG. Many more potential cleanups in there, but
this _only_ removes the pnp_resource_change code. Compile tested against
current alsa-kernel HG and compile- and use-tested against 2.6.23.x (few
offsets).
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-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 ago[ALSA] sound/core/memalloc.c: Add missing pci_dev_put
Julia Lawall [Wed, 28 Nov 2007 10:58:56 +0000 (11:58 +0100)]
[ALSA] sound/core/memalloc.c: Add missing pci_dev_put

There should be a pci_dev_put when breaking out of a loop that iterates
over calls to pci_get_device and similar functions.
In this case, the return under the initial if needs a pci_dev_put in the
same way that the return under the subsequent for loop has a pci_dev_put.
This was fixed using the following semantic patch.
// <smpl>
@@
type T;
identifier d;
expression e;
@@
T *d;
...
while ((d = \(pci_get_device\|pci_get_device_reverse\|pci_get_subsys\|pci_get_class\)(..., d)) != NULL)
  {... when != pci_dev_put(d)
       when != e = d
(
    return d;
|
+  pci_dev_put(d);
?  return ...;
)
...}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] ice1712 - Fix word clock status control on Delta 1010LT
Takashi Iwai [Tue, 27 Nov 2007 14:27:17 +0000 (15:27 +0100)]
[ALSA] ice1712 - Fix word clock status control on Delta 1010LT

The 'Word Clock Status' control on Delta 1010LT checks the CS8427
error register too strictly and almost always returns 1 (unlocked).
It should check only the lock status bit.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] usb-caiaq - add support for Kore controller 2
Daniel Mack [Mon, 26 Nov 2007 08:00:56 +0000 (09:00 +0100)]
[ALSA] usb-caiaq - add support for Kore controller 2

Added support for Native Instrument's Kore controller 2. This device has
no audio but MIDI, input devices and ALSA controllers only.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] soc/wm8731: Fix stereo mixer controls
Ville Syrjala [Mon, 26 Nov 2007 07:58:24 +0000 (08:58 +0100)]
[ALSA] soc/wm8731: Fix stereo mixer controls

Disable the simultaneous load feature for the line in and headphone
out volume registers. This allows left and right volume levels to
be controlled separately.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] drivers - Add missing snd_card_set_dev()
Takashi Iwai [Mon, 26 Nov 2007 07:58:48 +0000 (08:58 +0100)]
[ALSA] drivers - Add missing snd_card_set_dev()

Added the missing call of snd_card_set_dev() in drivers/*

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/isa: Add missing 'space'
Joe Perches [Mon, 26 Nov 2007 07:44:15 +0000 (08:44 +0100)]
[ALSA] sound/isa: Add missing 'space'

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] emu10k1x - Add missing snd_card_set_dev call
Takashi Iwai [Mon, 26 Nov 2007 07:45:43 +0000 (08:45 +0100)]
[ALSA] emu10k1x - Add missing snd_card_set_dev call

Added the missing snd_card_set_dev() call.  This will fix the incomplete
sysfs entry for this card.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] aoa - fix compile warning
Takashi Iwai [Fri, 23 Nov 2007 14:41:44 +0000 (15:41 +0100)]
[ALSA] aoa - fix compile warning

Set a proper error code in the error path of i2sbus_attach_codec().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] add number of periods constraint to snd-aoa
Heikki Lindholm [Fri, 23 Nov 2007 14:37:48 +0000 (15:37 +0100)]
[ALSA] add number of periods constraint to snd-aoa

The aoa driver is not specifying constraints on number of periods, and, it
seems, it might end with a non-integer number, which it cannot deal with.
Fix by adding a proper constraint.

Signed-off-by: Heikki Lindholm <holindho@cs.helsinki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Fix PCM MMAP time-stamp mode
Takashi Iwai [Fri, 23 Nov 2007 12:14:23 +0000 (13:14 +0100)]
[ALSA] Fix PCM MMAP time-stamp mode

When MMAP time-stamp mode is given, it's supposed to update the time-stamp
only at period boundary.  However, it currently updates at each status call
so this is just useless.  The patch fixes this misbehavior.
Also it fixes the wrong check of tstamp_mode (don't use bit-and for enum).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] caiaq - remove ifdef
Takashi Iwai [Thu, 22 Nov 2007 10:51:54 +0000 (11:51 +0100)]
[ALSA] caiaq - remove ifdef

Remove ifdef and fix Makefile for conditional builds.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] caiaq - add control API and more input features
Daniel Mack [Thu, 22 Nov 2007 10:40:04 +0000 (11:40 +0100)]
[ALSA] caiaq - add control API and more input features

 - added support for all input controllers on Native Instrument's 'Kore
   controller'.
 - added ALSA controls to switch LEDs on 'RigKontrol 2', 'RigKontrol3',
   'Audio Kontrol 1' and 'Kore controller'.
 - added ALSA controls to switch input mode, software lock and ground
   lift features on 'Audio 8 DJ'.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] caiaq - input device support must depend on CONFIG_INPUT
Dmitry Torokhov [Wed, 21 Nov 2007 15:47:03 +0000 (16:47 +0100)]
[ALSA] caiaq - input device support must depend on CONFIG_INPUT

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] caiaq - misc input handling fixes
Dmitry Torokhov [Wed, 21 Nov 2007 15:45:23 +0000 (16:45 +0100)]
[ALSA] caiaq - misc input handling fixes

 - link input device with its parent so that it placed in proper spot
   in sysfs hierarchy
 - drivers that allow changing their keymaps should use private copy
   of the keymap so that one instance of a device does not affect
   another instance
 - it is preferred for drivers to properly set up input_dev->phys to
   help userspace locate devices
 - drivers should use usb_to_input_id(), or perform endianess conversion,
   themselves, otherwise ID is not correct on big-endian boxes
 - whitespace and formatting cleanup
Acked-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] caiaq - Fix indent in Kconfig
Takashi Iwai [Tue, 20 Nov 2007 17:32:08 +0000 (18:32 +0100)]
[ALSA] caiaq - Fix indent in Kconfig

Fix indent of caiaq in Kconfig to the same level as others.
Just a tidy up.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] dbri - Fix broken change for value range checks
Takashi Iwai [Tue, 20 Nov 2007 17:31:22 +0000 (18:31 +0100)]
[ALSA] dbri - Fix broken change for value range checks

The last patch for value range checks included a broken merge result.
Now fixed properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] powermac - Fix typos
Kamalesh Babulal [Tue, 20 Nov 2007 14:12:33 +0000 (15:12 +0100)]
[ALSA] powermac - Fix typos

The kernel build fails, with following error
  CC      sound/ppc/tumbler.o
sound/ppc/tumbler.c: In function ‘snapper_get_capture_source’:
sound/ppc/tumbler.c:812: error: ‘union <anonymous>’ has no member named ‘value’
sound/ppc/tumbler.c: In function ‘snapper_put_capture_source’:
sound/ppc/tumbler.c:824: error: ‘union <anonymous>’ has no member named ‘enuemerated’
make[2]: *** [sound/ppc/tumbler.o] Error 1
make[1]: *** [sound/ppc] Error 2
make: *** [sound] Error 2

Signed-off-by: Kamalesh Babulal <kamalesh@linx.vnet.ibm.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Revert volume knob controls in STAC codecs
Takashi Iwai [Mon, 19 Nov 2007 10:56:26 +0000 (11:56 +0100)]
[ALSA] hda-codec - Revert volume knob controls in STAC codecs

Volume knob controls with STAC codecs seem to cause problems with some
devices.  Volumes change very slowly or silent suddenly.  It's likely
due to conflict between the software and the hardware volume knob
setup.
Since we'll have a virtual master control in future, it's safer to
remove this control completely right now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-intel - Show more volume-knob attributes
Takashi Iwai [Fri, 16 Nov 2007 16:52:39 +0000 (17:52 +0100)]
[ALSA] hda-intel - Show more volume-knob attributes

Show more attributs of volume-knob widgets.
Also don't put empty lines when no connection list is found.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] snd hda suspend latency: shorten codec read
Ingo Molnar [Fri, 16 Nov 2007 14:20:28 +0000 (15:20 +0100)]
[ALSA] snd hda suspend latency: shorten codec read

not sleeping for every codec read/write but doing a short udelay and
a conditional reschedule has cut suspend+resume latency by about 1
second on my T60.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] HDA-Intel - Add support for RV6xx HDMI audio
Wolke Liu [Fri, 16 Nov 2007 10:06:30 +0000 (11:06 +0100)]
[ALSA] HDA-Intel - Add support for RV6xx HDMI audio

This patch is to add R6xx HDMI audio support. Meanwhile, the device ID
in the previous patch is changed.
I have checked the patch from Herton Ronaldo Krzesinski, it's right as
our spec said. :)

Signed-off-by: Wolke Liu <Wolke.Liu@amd.com>
Signed-off-by: Andrea Zhang <Andrea.Zhang@amd.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] at73c213 - Use common callback
Takashi Iwai [Thu, 15 Nov 2007 15:18:14 +0000 (16:18 +0100)]
[ALSA] at73c213 - Use common callback

Use snd_ctl_boolean_mono_info callback to simplify.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] Check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 15:17:24 +0000 (16:17 +0100)]
[ALSA] Check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly (in the rest drivers).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] aoa - Check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 15:16:32 +0000 (16:16 +0100)]
[ALSA] aoa - Check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly in aoa drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] ak4xxx - Check value ranges in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 15:15:29 +0000 (16:15 +0100)]
[ALSA] ak4xxx - Check value ranges in ctl callbacks

Check the value ranges in ctl put callbacks properly in ak4xxx-adda driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] powermac - Check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 15:14:12 +0000 (16:14 +0100)]
[ALSA] powermac - Check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly in snd-powermac
driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] vxpocket - Check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 15:13:32 +0000 (16:13 +0100)]
[ALSA] vxpocket - Check value range in ctl callbacks

Check the value ranges in ctl put callbacks in vxpocket driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] ice1724 - Clean up ctl callbacks in se.c
Takashi Iwai [Thu, 15 Nov 2007 15:05:26 +0000 (16:05 +0100)]
[ALSA] ice1724 - Clean up ctl callbacks in se.c

Clean up ctl callbacks of SE-200PCI driver.  Also make sure to check
the value ranges.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] pci - check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 14:58:13 +0000 (15:58 +0100)]
[ALSA] pci - check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly in the rest of
PCI drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] mixart - Check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 14:56:47 +0000 (15:56 +0100)]
[ALSA] mixart - Check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly.
Also fixed some coding style issues around that.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] ice1724 - Check value ranges in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 14:56:07 +0000 (15:56 +0100)]
[ALSA] ice1724 - Check value ranges in ctl callbacks

Check the value ranges in ctl put callbacks properly.
Also fixed the wrong access type to enum elements in aureon.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Check value range in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 14:54:38 +0000 (15:54 +0100)]
[ALSA] hda-codec - Check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly so that
invalid values won't be stored or written to registers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] emu10k1 - Check value ranges in ctl callbacks
Takashi Iwai [Thu, 15 Nov 2007 12:16:02 +0000 (13:16 +0100)]
[ALSA] emu10k1 - Check value ranges in ctl callbacks

Check value ranges in ctl callbacks properly.  This fixes the unexpected
crash due to wrong value assignment.
Also, remove invalid comments in the last patch.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] ASoC TLV320AIC3X codec driver
Vladimir Barinov [Wed, 14 Nov 2007 16:07:17 +0000 (17:07 +0100)]
[ALSA] ASoC TLV320AIC3X codec driver

This patch adds ALSA SoC support for TI TLV320AIC3X audio codecs.
The features that are supported:
     o Capture/Playback/Bypass.
     o 16/20/24/32 bit audio.
     o 8k - 96k sample rates.
     o codec master only mode
     o DAPM.

Signed-off-by: Vladimir Barinov <vbarinov@ru.mvista.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/pci: Drop unnecessary continue
Julia Lawall [Wed, 14 Nov 2007 13:30:43 +0000 (14:30 +0100)]
[ALSA] sound/pci: Drop unnecessary continue

Continue is not needed at the bottom of a loop.
The semantic patch implementing this change is as follows:
@@
@@
for (...;...;...) {
   ...
   if (...) {
     ...
-   continue;
   }
}

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add model=hp-tc-t5735 for ALC262
Takashi Iwai [Wed, 14 Nov 2007 11:26:44 +0000 (12:26 +0100)]
[ALSA] hda-codec - Add model=hp-tc-t5735 for ALC262

Added the missing model string for the new support of HP TC T5735.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add support of HP Thin Client T5735
Kailang Yang [Wed, 14 Nov 2007 11:06:21 +0000 (12:06 +0100)]
[ALSA] hda-codec - Add support of HP Thin Client T5735

Added the support of HP Thin Client T5735 [0x103c 0x302f] with ALC262 codec.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] emu10k1: Add mixer controls parameter checking.
James Courtier-Dutton [Mon, 12 Nov 2007 14:55:19 +0000 (14:55 +0000)]
[ALSA] emu10k1: Add mixer controls parameter checking.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Avoid wrong speaker-auto mute via mic jack
Jiang Zhe [Mon, 12 Nov 2007 12:05:16 +0000 (13:05 +0100)]
[ALSA] hda-codec - Avoid wrong speaker-auto mute via mic jack

When a mic jack is set up as the multiple I/O, it may issue the automute
function wrongly.  This patch fixes the wrong automute detection.

Signed-off-by: Jiang Zhe <zhe.jiang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Add workaround for multiple HPs
Jiang Zhe [Mon, 12 Nov 2007 11:57:03 +0000 (12:57 +0100)]
[ALSA] hda-codec - Add workaround for multiple HPs

Dell laptops have multiple HP jacks that can be used for multi-channel
outputs.  The current auto pincfg handles the speaker as the primary
output and thus cannot handle the multi-channel configuration for such
cases.  This patch adds a workaround to fix this issue by swapping the
HP and speaker during multi-channel setup routines.

Signed-off-by: Jiang Zhe <zhe.jiang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] hda-codec - Update dell-m82 model pin config
Jiang Zhe [Mon, 12 Nov 2007 11:43:37 +0000 (12:43 +0100)]
[ALSA] hda-codec - Update dell-m82 model pin config

Updated dell-m82 model pin config table.  The old config doesn't work
with Dell 1210 and co.

Signed-off-by: Jiang Zhe <zhe.jiang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years ago[ALSA] sound/pci: remove duplicated defines
Nicolas Kaiser [Mon, 12 Nov 2007 11:25:02 +0000 (12:25 +0100)]
[ALSA] sound/pci: remove duplicated defines

Remove duplicated defines.
(From their use it looks like 'midiDataOutx are written to
rather than read from.)

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