11 years ago[ALSA] Routines for effect processor FX8010: Use list_for_each_entry
Matthias Kaehlcke [Mon, 17 Sep 2007 12:41:16 +0000]
[ALSA] Routines for effect processor FX8010: Use list_for_each_entry

Routines for effect processor FX8010: Use list_for_each_entry instead
of list_for_each

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] Intel HD Audio: Use list_for_each_entry(_safe)
Matthias Kaehlcke [Mon, 17 Sep 2007 12:40:04 +0000]
[ALSA] Intel HD Audio: Use list_for_each_entry(_safe)

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

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry
Matthias Kaehlcke [Mon, 17 Sep 2007 12:39:05 +0000]
[ALSA] ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry

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

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ad1848_lib: waiting loops done after cs4231_lib
Krzysztof Helt [Mon, 17 Sep 2007 10:52:43 +0000]
[ALSA] ad1848_lib: waiting loops done after cs4231_lib

This patch fixes ad1848_lib waiting loops to be the same as in the cs4231_lib.
Acked-by: Rene Herman <rene.herman@gmail.com>

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] sc6000 build fix
Andrew Morton [Mon, 17 Sep 2007 10:50:38 +0000]
[ALSA] sc6000 build fix

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

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] echoaudio - Add barrier() to prevent compiler optimization
Giuliano Pochini [Mon, 17 Sep 2007 10:49:40 +0000]
[ALSA] echoaudio - Add barrier() to prevent compiler optimization

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

Signed-off-by: Giuliano Pochini <pochini@shiny.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec: Add two new systems to ALC883
Tobin Davis [Mon, 17 Sep 2007 10:46:12 +0000]
[ALSA] hda-codec: Add two new systems to ALC883

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

Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec: Add 4 channel support for Realtek ALC883
Tobin Davis [Mon, 17 Sep 2007 10:45:11 +0000]
[ALSA] hda-codec: Add 4 channel support for Realtek ALC883

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

Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: fix distortion on rear channels
Clemens Ladisch [Mon, 17 Sep 2007 07:41:36 +0000]
[ALSA] cmipci: fix distortion on rear channels

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: clean up struct cmipci_pcm
Clemens Ladisch [Mon, 17 Sep 2007 07:40:57 +0000]
[ALSA] cmipci: clean up struct cmipci_pcm

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: fix lookup of double rates
Clemens Ladisch [Mon, 17 Sep 2007 07:40:24 +0000]
[ALSA] cmipci: fix lookup of double rates

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: reorganize set_dac_channels()
Clemens Ladisch [Mon, 17 Sep 2007 07:39:51 +0000]
[ALSA] cmipci: reorganize set_dac_channels()

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: remove 5.0 format
Clemens Ladisch [Mon, 17 Sep 2007 07:39:10 +0000]
[ALSA] cmipci: remove 5.0 format

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: allow 96 kHz playback on non-multichannel rear
Clemens Ladisch [Mon, 17 Sep 2007 07:37:47 +0000]
[ALSA] cmipci: allow 96 kHz playback on non-multichannel rear

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: initialize 0x90 registers
Clemens Ladisch [Mon, 17 Sep 2007 07:37:19 +0000]
[ALSA] cmipci: initialize 0x90 registers

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: reset the chip when initializing
Clemens Ladisch [Mon, 17 Sep 2007 07:36:49 +0000]
[ALSA] cmipci: reset the chip when initializing

When the chip is initialized, reset it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: show more registers in proc file
Clemens Ladisch [Mon, 17 Sep 2007 07:36:16 +0000]
[ALSA] cmipci: show more registers in proc file

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: update register definitions
Clemens Ladisch [Mon, 17 Sep 2007 07:35:46 +0000]
[ALSA] cmipci: update register definitions

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: fix version 37 detection
Clemens Ladisch [Mon, 17 Sep 2007 07:34:59 +0000]
[ALSA] cmipci: fix version 37 detection

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] bt87x: fix detection of generic boards
Clemens Ladisch [Mon, 17 Sep 2007 07:33:37 +0000]
[ALSA] bt87x: fix detection of generic boards

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] usb-audio: add Ozone Academic support
Clemens Ladisch [Mon, 17 Sep 2007 07:33:17 +0000]
[ALSA] usb-audio: add Ozone Academic support

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] SC6000 driver - add HAS_IOPORT dependency
Jaroslav Kysela [Wed, 12 Sep 2007 11:29:51 +0000]
[ALSA] SC6000 driver - add HAS_IOPORT dependency

Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] echoaudio - Remove superfluous volatile prefix
Takashi Iwai [Tue, 11 Sep 2007 20:11:08 +0000]
[ALSA] echoaudio - Remove superfluous volatile prefix

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

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

11 years ago[ALSA] Add description of sc6000 driver
Takashi Iwai [Tue, 11 Sep 2007 20:10:14 +0000]
[ALSA] Add description of sc6000 driver

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

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

11 years ago[ALSA] Gallant SC-6000 driver
Krzysztof Helt [Tue, 11 Sep 2007 19:53:05 +0000]
[ALSA] Gallant SC-6000 driver

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-intel - Improve HD-audio codec probing robustness
Danny Tholen [Tue, 11 Sep 2007 19:41:56 +0000]
[ALSA] hda-intel - Improve HD-audio codec probing robustness

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

Signed-off-by: Danny Tholen <obiwan@mailmij.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] pcxhr - Fix trigger start with non-linked streams
Takashi Iwai [Tue, 11 Sep 2007 19:28:50 +0000]
[ALSA] pcxhr - Fix trigger start with non-linked streams

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

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

11 years ago[ALSA] Fix CS4270 volume control and optimize I2C operations
Timur Tabi [Mon, 10 Sep 2007 22:45:50 +0000]
[ALSA] Fix CS4270 volume control and optimize I2C operations

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

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs4231-lib: improved waiting after mce_down
Krzysztof Helt [Mon, 10 Sep 2007 22:40:42 +0000]
[ALSA] cs4231-lib: improved waiting after mce_down

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

Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] Kill useless volatile in pcm.h
Takashi Iwai [Mon, 10 Sep 2007 22:35:06 +0000]
[ALSA] Kill useless volatile in pcm.h

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

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

11 years ago[ALSA] Fix 'discards qualifiers' compile warnings in pcm.h
Takashi Iwai [Mon, 10 Sep 2007 22:33:48 +0000]
[ALSA] Fix 'discards qualifiers' compile warnings in pcm.h

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

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

11 years ago[ALSA] ad1848/cs4231: replace commented out debug code with snd-printd{,d}
Rene Herman [Mon, 10 Sep 2007 21:22:55 +0000]
[ALSA] ad1848/cs4231: replace commented out debug code with snd-printd{,d}

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

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ad1848: replace HZ calculus with msecs_to_jiffies()
Rene Herman [Mon, 10 Sep 2007 21:20:34 +0000]
[ALSA] ad1848: replace HZ calculus with msecs_to_jiffies()

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

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ad1838/cs4231 - fix MCE timeout upon initial load
Rene Herman [Mon, 10 Sep 2007 21:19:55 +0000]
[ALSA] ad1838/cs4231 - fix MCE timeout upon initial load

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

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] au88x0_synth.c bugfix
Adrian Bunk [Mon, 10 Sep 2007 21:15:50 +0000]
[ALSA] au88x0_synth.c bugfix

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

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ad1848: fix AD1848P macro
Rene Herman [Mon, 10 Sep 2007 21:13:26 +0000]
[ALSA] ad1848: fix AD1848P macro

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

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda: BIOS changing subsystem id
Matthew Ranostay [Mon, 10 Sep 2007 21:09:42 +0000]
[ALSA] hda: BIOS changing subsystem id

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

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] unexport snd_ctl_elem_{read,write}
Adrian Bunk [Mon, 10 Sep 2007 21:08:34 +0000]
[ALSA] unexport snd_ctl_elem_{read,write}

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

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] sun-cs4231: checkpatch fixes
Krzysztof Helt [Mon, 10 Sep 2007 21:06:55 +0000]
[ALSA] sun-cs4231: checkpatch fixes

This patch fixes white spaces and issues pointed by
the checkpatch.pl script.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] document basic TLV stuff
Clemens Ladisch [Mon, 10 Sep 2007 06:05:19 +0000]
[ALSA] document basic TLV stuff

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] snd-bt87x: Power down audio ADC when not in use
Trent Piepho [Fri, 7 Sep 2007 11:18:50 +0000]
[ALSA] snd-bt87x: Power down audio ADC when not in use

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

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: add msbits constraint for 24-bit format
Clemens Ladisch [Fri, 7 Sep 2007 08:44:13 +0000]
[ALSA] cmipci: add msbits constraint for 24-bit format

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - Add support for Toshiba A305
Takashi Iwai [Fri, 7 Sep 2007 08:58:58 +0000]
[ALSA] hda-codec - Add support for Toshiba A305

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

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

11 years ago[ALSA] hda-codec - Add missing Mic Boost for some ALC882 models
Takashi Iwai [Fri, 7 Sep 2007 08:57:44 +0000]
[ALSA] hda-codec - Add missing Mic Boost for some ALC882 models

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

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

11 years ago[ALSA] snd-bt87x: Improve support for different board types
Trent Piepho [Thu, 6 Sep 2007 13:06:44 +0000]
[ALSA] snd-bt87x: Improve support for different board types

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

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs4231-lib: replace common delay loop by function
Krzysztof Helt [Thu, 6 Sep 2007 13:03:59 +0000]
[ALSA] cs4231-lib: replace common delay loop by function

This patch replaces a common delay loop by a function.
It also uses ARRAY_SIZE macro for the rates table.
Acked-by: Rene Herman <rene.herman@gmail.com>

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ad1848_lib: replace common delay loop by function
Krzysztof Helt [Thu, 6 Sep 2007 13:03:22 +0000]
[ALSA] ad1848_lib: replace common delay loop by function

This patch replaces a common delay loop by a function.
It also uses ARRAY_SIZE macro for the rates table.
Acked-by: Rene Herman <rene.herman@gmail.com>

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] dbri - Use linux/of.h instead of asm/prom.h
Krzysztof Helt [Thu, 6 Sep 2007 13:02:33 +0000]
[ALSA] dbri - Use linux/of.h instead of asm/prom.h

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - Add quirk entry for Casper CPR2000
Takashi Iwai [Thu, 6 Sep 2007 13:00:27 +0000]
[ALSA] hda-codec - Add quirk entry for Casper CPR2000

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

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

11 years ago[ALSA] hda-codec - Add missing model names for ALC882 codecs
Takashi Iwai [Thu, 6 Sep 2007 12:54:11 +0000]
[ALSA] hda-codec - Add missing model names for ALC882 codecs

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

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

11 years ago[ALSA] hda-codec - Add support for ASUS A7M
Takashi Iwai [Thu, 6 Sep 2007 12:52:04 +0000]
[ALSA] hda-codec - Add support for ASUS A7M

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

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

11 years ago[ALSA] hda-codec - Add laptop-automute model for AD1986A
Takashi Iwai [Thu, 6 Sep 2007 12:29:53 +0000]
[ALSA] hda-codec - Add laptop-automute model for AD1986A

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

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

11 years ago[ALSA] Add missing models for Dell with STAC9200 codec
Takashi Iwai [Wed, 5 Sep 2007 21:48:45 +0000]
[ALSA] Add missing models for Dell with STAC9200 codec

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

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

11 years ago[ALSA] hda-codec - Fix wrong pin config order in STAC92xx dell models
Takashi Iwai [Wed, 5 Sep 2007 21:46:03 +0000]
[ALSA] hda-codec - Fix wrong pin config order in STAC92xx dell models

The last patch to change/add Dell models have wrong pin config orders.
This patch fixes the pin positions.
Taken from ALSA bug#3319,
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3319

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

11 years ago[ALSA] hda-codec - Add support for Acer Aspire 9303
Takashi Iwai [Wed, 5 Sep 2007 17:14:38 +0000]
[ALSA] hda-codec - Add support for Acer Aspire 9303

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

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

11 years ago[ALSA] sun-cs4231: memory management fix
Krzysztof Helt [Wed, 5 Sep 2007 13:07:57 +0000]
[ALSA] sun-cs4231: memory management fix

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] dbri: conversion to OpenFirmware framework
Krzysztof Helt [Wed, 5 Sep 2007 13:05:08 +0000]
[ALSA] dbri: conversion to OpenFirmware framework

This patch converts the dbri driver to use OF framework.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs4231 header split
Krzysztof Helt [Tue, 4 Sep 2007 11:24:14 +0000]
[ALSA] cs4231 header split

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] dbri: more cleanups
Krzysztof Helt [Tue, 4 Sep 2007 11:09:20 +0000]
[ALSA] dbri: more cleanups

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] sun-cs4231: code improvements
Krzysztof Helt [Tue, 4 Sep 2007 11:08:24 +0000]
[ALSA] sun-cs4231: code improvements

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs5535audio: drop unused bus master stuff
Andres Salomon [Mon, 3 Sep 2007 13:43:43 +0000]
[ALSA] cs5535audio: drop unused bus master stuff

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

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs5535audio: fix ACC_BM[x]_CMD register handling
Andres Salomon [Mon, 3 Sep 2007 13:43:18 +0000]
[ALSA] cs5535audio: fix ACC_BM[x]_CMD register handling

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

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs5535audio: update PCI device handling in suspend/resume
Andres Salomon [Mon, 3 Sep 2007 13:42:52 +0000]
[ALSA] cs5535audio: update PCI device handling in suspend/resume

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

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs5535audio: fix PRD register save/restore power management race
Andres Salomon [Mon, 3 Sep 2007 13:42:16 +0000]
[ALSA] cs5535audio: fix PRD register save/restore power management race

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

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cs5535audio: correctly set dma->substream
Andres Salomon [Mon, 3 Sep 2007 13:41:47 +0000]
[ALSA] cs5535audio: correctly set dma->substream

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

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - Fix support for sigmatel codecs that have 2 or more ADCs
Maxim Levitsky [Mon, 3 Sep 2007 13:31:02 +0000]
[ALSA] hda-codec - Fix support for sigmatel codecs that have 2 or more ADCs

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - make volume knob, the master volume for sigmatel codecs
Maxim Levitsky [Mon, 3 Sep 2007 13:30:26 +0000]
[ALSA] hda-codec - make volume knob, the master volume for sigmatel codecs

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - add support for analog loopback to STAC9204/9205/922x/927x
Maxim Levitsky [Mon, 3 Sep 2007 13:29:37 +0000]
[ALSA] hda-codec - add support for analog loopback to STAC9204/9205/922x/927x

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - add support for swapping center/LFE channels to STAC codecs
Maxim Levitsky [Mon, 3 Sep 2007 13:29:04 +0000]
[ALSA] hda-codec - add support for swapping center/LFE channels to STAC codecs

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-intel - Fix resume logic, when dynamic power managment is on
Maxim Levitsky [Mon, 3 Sep 2007 13:28:04 +0000]
[ALSA] hda-intel - Fix resume logic, when dynamic power managment is on

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-intel - fix a race in dynamic power managment
Maxim Levitsky [Mon, 3 Sep 2007 13:26:57 +0000]
[ALSA] hda-intel - fix a race in dynamic power managment

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: show real chip name in card name
Clemens Ladisch [Mon, 3 Sep 2007 07:56:45 +0000]
[ALSA] cmipci: show real chip name in card name

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: check that the legacy MIDI port works
Clemens Ladisch [Mon, 3 Sep 2007 07:56:23 +0000]
[ALSA] cmipci: check that the legacy MIDI port works

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: do not check for integrated FM/MIDI ports with chip version 37
Clemens Ladisch [Mon, 3 Sep 2007 07:55:49 +0000]
[ALSA] cmipci: do not check for integrated FM/MIDI ports with chip version 37

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: add 96 kHz support
Clemens Ladisch [Mon, 3 Sep 2007 07:54:55 +0000]
[ALSA] cmipci: add 96 kHz support

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: remove invalid channels constraint
Clemens Ladisch [Mon, 3 Sep 2007 07:54:27 +0000]
[ALSA] cmipci: remove invalid channels constraint

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - Avoid zero NID in line_out_pins[] of STAC codecs
Takashi Iwai [Mon, 3 Sep 2007 07:43:38 +0000]
[ALSA] hda-codec - Avoid zero NID in line_out_pins[] of STAC codecs

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

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

11 years ago[ALSA] hda-codec - Fix wrong pin-setup at resume of STAC codecs
Takashi Iwai [Mon, 3 Sep 2007 07:36:36 +0000]
[ALSA] hda-codec - Fix wrong pin-setup at resume of STAC codecs

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

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

11 years ago[ALSA] usb-audio: update quirk for Rane SL 1 (aka. Serato Scratch Live)
Mark Hills [Mon, 3 Sep 2007 06:20:09 +0000]
[ALSA] usb-audio: update quirk for Rane SL 1 (aka. Serato Scratch Live)

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

Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - code cleanups in patch_sigmatel.c
Maxim Levitsky [Fri, 31 Aug 2007 10:52:19 +0000]
[ALSA] hda-codec - code cleanups in patch_sigmatel.c

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - Fix capture on ALC262 HP machines
zhejiang [Fri, 31 Aug 2007 10:36:05 +0000]
[ALSA] hda-codec - Fix capture on ALC262 HP machines

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

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

11 years ago[ALSA] hdsp - Add support for latset RME9632 revisions
Remy Bruno [Fri, 31 Aug 2007 10:33:54 +0000]
[ALSA] hdsp - Add support for latset RME9632 revisions

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

Signed-off-by: Remy Bruno <remy.bruno@trinnov.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hdspm - Fix autosync bug
Remy Bruno [Fri, 31 Aug 2007 10:21:08 +0000]
[ALSA] hdspm - Fix autosync bug

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

Signed-off-by: Remy Bruno <remy.bruno@trinnov.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] missing error check in usb sound driver
Oliver Neukum [Fri, 31 Aug 2007 10:15:27 +0000]
[ALSA] missing error check in usb sound driver

usb_set_interface() can fail, even for altsetting 0

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] usb-audio: add quirk for Serato Scratch Live DJ Box
Clemens Ladisch [Wed, 29 Aug 2007 15:38:14 +0000]
[ALSA] usb-audio: add quirk for Serato Scratch Live DJ Box

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] ac97 - Suppress the reset of audio-codec from modem-codec at resume
Takashi Iwai [Wed, 29 Aug 2007 13:12:46 +0000]
[ALSA] ac97 - Suppress the reset of audio-codec from modem-codec at resume

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

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

11 years ago[ALSA] hda-codec - Add Mic Boost control with auto-configuration
Takashi Iwai [Wed, 29 Aug 2007 13:07:11 +0000]
[ALSA] hda-codec - Add Mic Boost control with auto-configuration

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

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

11 years ago[ALSA] Allow shared IRQ for CS5530 device
Takashi Iwai [Wed, 29 Aug 2007 10:54:25 +0000]
[ALSA] Allow shared IRQ for CS5530 device

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

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

11 years ago[ALSA] emu10k1: There's no need to cast vmalloc() return value in snd_emu10k1_create()
Jesper Juhl [Tue, 28 Aug 2007 13:21:33 +0000]
[ALSA] emu10k1: There's no need to cast vmalloc() return value in snd_emu10k1_create()

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

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: show actual chip name in card longname
Clemens Ladisch [Mon, 27 Aug 2007 07:22:31 +0000]
[ALSA] cmipci: show actual chip name in card longname

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: remove has_dual_dac
Clemens Ladisch [Mon, 27 Aug 2007 07:21:02 +0000]
[ALSA] cmipci: remove has_dual_dac

Remove the has_dual_dac variable because it was always set.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: reorganize chip version detection
Clemens Ladisch [Mon, 27 Aug 2007 07:20:31 +0000]
[ALSA] cmipci: reorganize chip version detection

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] cmipci: make the test for integrated MIDI port address more robust
Clemens Ladisch [Fri, 24 Aug 2007 07:18:04 +0000]
[ALSA] cmipci: make the test for integrated MIDI port address more robust

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

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] hda-codec - Fix Dell laptops support with STAC codecs
Takashi Iwai [Thu, 23 Aug 2007 17:04:28 +0000]
[ALSA] hda-codec - Fix Dell laptops support with STAC codecs

Fixed Dell laptops support with STAC92xx codecs.
Many pin-config models are introduced.  See ALSA-Configuration.txt
for details.
The patch taken from ALSA bug#3319, originally by Jorg Prante:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3319

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

11 years ago[ALSA] hda-codec - Fix ALC268 unsol event
Takashi Iwai [Thu, 23 Aug 2007 16:56:52 +0000]
[ALSA] hda-codec - Fix ALC268 unsol event

The unsol event of ALC268 is in the standard bit 26.
Also, fixed the Acer master controls, and added Extensa 5210
to the quirk list.

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

11 years ago[ALSA] hda-codec - Fix mater mixer switch of ALC262 sony-amd model
Takashi Iwai [Wed, 22 Aug 2007 22:31:43 +0000]
[ALSA] hda-codec - Fix mater mixer switch of ALC262 sony-amd model

Fixed the master mixer switch of ALC272 sony-amd model.
It used a simple bind-control, but it resulted in unexpected
unmute of speaker output.  Now the control checks the HP jack
state apropriately, just like fujitsu model.

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

11 years ago[ALSA] hda-intel - Fix compile with gcc-3.x
Takashi Iwai [Wed, 22 Aug 2007 22:01:09 +0000]
[ALSA] hda-intel - Fix compile with gcc-3.x

gcc-3.x doesn't like forward inlining:
CC [M] sound/pci/hda/hda_codec.o
sound/pci/hda/hda_codec.c: In function 'snd_hda_codec_free':
sound/pci/hda/hda_codec.c:517: sorry, unimplemented: inlining failed in call to 'free_hda_cache': function body not available
sound/pci/hda/hda_codec.c:534: sorry, unimplemented: called from here
sound/pci/hda/hda_codec.c:517: sorry, unimplemented: inlining failed in call to 'free_hda_cache': function body not available
sound/pci/hda/hda_codec.c:535: sorry, unimplemented: called from here

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

11 years ago[ALSA] bt87x - Add known PCI ID entries
Takashi Iwai [Wed, 22 Aug 2007 12:19:45 +0000]
[ALSA] bt87x - Add known PCI ID entries

Added the PCI ID entries for known working devices
- Prolink PixelView PV-M4900
- Pinnacle  Studio PCTV rave

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

11 years ago[ALSA] cmipci: fix handling of FM/MIDI port addresses
Clemens Ladisch [Wed, 22 Aug 2007 07:45:03 +0000]
[ALSA] cmipci: fix handling of FM/MIDI port addresses

Make sure that the MPU-401 MIDI and OPL-3 FM devices are used only on
those chips where they are supported, and that the correct port
addresses are used.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

11 years ago[ALSA] wavefront - Use standard firmware loader
Takashi Iwai [Tue, 21 Aug 2007 13:20:26 +0000]
[ALSA] wavefront - Use standard firmware loader

Use the standard firmware loader for loading ICS2115 OS firmware file.
This is the last old bad guy that is still using sys_open() and sys_read()
calls, and now all should be gone.
The patch also adds the missing description of module options related
with wavefront_synth.c.
Due to this rewrite, user will have to copy or make symlink the firmware
file appropriately to the standard firmware path such as /lib/firmware.

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