15 Feb, 2010
3 commits
-
Move the controls init code outside the init_hw() function because is must
not be called during resume.This patch moves the code that initializes the card's controls with
default valued from the init_hw() function into a separated
set_mixer_defaults() function (one for each of the 16 supported
cards). This change is necessary because during resume we must
resurrect the hardware without losing the previous
settings. set_mixer_defaults() must be called only once when the
module is loaded.Signed-off-by: Giuliano Pochini
Signed-off-by: Takashi Iwai -
This patch implements a simple cache for the firmware files when CONFIG_PM is defined.
This patch changes get_firmware(), free_firmware() and adds
free_firmware_cache(). The first two functions implement a very
simple cache and the latter is used to actually release all the stored
firmwares when the module is unloaded.
When CONFIG_PM is not enabled those functions act as before, that is
free_firmware() releases the firmware immediately and
free_firmware_cache() does nothing.Signed-off-by: Giuliano Pochini
Signed-off-by: Takashi Iwai -
Changes the way the firmware is passed through functions.
When CONFIG_PM is enabled the firmware cannot be released because the
driver will need it again to resume the card.
With this patch the firmware is passed as an index of the struct
firmware card_fw[] in place of a pointer. That same index is then used
to locate the firmware in the firmware cache.Signed-off-by: Giuliano Pochini
Signed-off-by: Takashi Iwai
12 Feb, 2010
2 commits
-
USB devices tends to represent dB ranges in different way than ALSA expects.
Add possibility to override these values and add guessed values for
SoundBlaster MP3+.Also rename 'Capture Input Source' control to 'Capture Source' for
SoundBlaster MP3+ and Extigy.Signed-off-by: Jaroslav Kysela
09 Feb, 2010
1 commit
-
Use DEFINE_PCI_DEVICE_TABLE() to make PCI device ids go to
.devinit.rodata section, so they can be discarded in some cases,
and make them const.Signed-off-by: Alexey Dobriyan
Signed-off-by: Takashi Iwai
05 Feb, 2010
1 commit
-
I found that the sampling rate locking setting of the ice1712 sound driver
was only half-respected : when the driver was locked to, let's say, 44100Hz,
and a usermode app was requesting 48000Hz playback, the request was succesful
although the soundcard would continue to run at 44100Hz.Here's a patch that will make those requests to fail.
Signed-off-by: Sebastien Alaiwan
Signed-off-by: Takashi Iwai
03 Feb, 2010
1 commit
-
This is a cleanup for the dummy driver. The model kernel module parameter
is introduced to select the soundcard emulation.Signed-off-by: Jaroslav Kysela
02 Feb, 2010
1 commit
-
Instead of padding with blanks and printing "number=0x a", print
"number=0x0a".Signed-off-by: Thadeu Lima de Souza Cascardo
Signed-off-by: Takashi Iwai
01 Feb, 2010
3 commits
-
Allow TLV blocks that do not have any values; the smallest possible TLV
is an empty container or one where the information is only in the tag.Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela -
Creating a control with TLV_COMMAND access was not possible because
snd_ctl_new1() forgot to include it in the mask of allowable access
bits.Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela
28 Jan, 2010
1 commit
-
The code in pcm_lib updating runtime->hw_ptr_interrupt expects
that runtime->boundary is divisible with runtime->period_size.
Thanks are going to Clemens Ladisch for the notice.Fix the runtime->boundary calculation using buffer_size * period_size
as base and find a least common multiple for 32bit platforms when
the expression might overflow.Signed-off-by: Jaroslav Kysela
27 Jan, 2010
2 commits
-
Clemens Ladisch noted for hw_ptr_removal in "cleanup & merge hw_ptr
update functions" commit:"It is possible for the status/delay ioctls to be called when the sound
card's pointer register alreay shows a position at the beginning of the
new period, but immediately before the interrupt is actually executed.
(This happens regularly on a SMP machine with mplayer.) When that
happens, the code thinks that the position must be at least one period
ahead of the current position and drops an entire buffer of data."Return back the hw_ptr_interrupt variable. The last interrupt pointer
is always computed from the latest hw_ptr instead of tracking it
separately (in this case all hw_ptr checks and modifications might
influence also hw_ptr_interrupt and it is difficult to keep it
consistent).Signed-off-by: Jaroslav Kysela
26 Jan, 2010
1 commit
-
Make sure that capture DMA doesn't stay enabled after system resume
as that potentially prevents the processor from entering deep sleep
states.Signed-off-by: Florian Zumbiehl
Signed-off-by: Takashi Iwai
21 Jan, 2010
4 commits
-
The SPDIF-input pin 0x1c is muted by default in hardware. Unmute appropriate
pin to get captured samples instead zeros. Tested on Lenovo Thinkstation.Signed-off-by: Jaroslav Kysela
-
This change fixes the "ALSA: pcm_lib - optimize wake_up() calls for PCM I/O"
commit. New sleeping queue is introduced to separate user space and kernel
space wake_ups. runtime->nowake is renamed to twake (transfer wake).Signed-off-by: Jaroslav Kysela
19 Jan, 2010
1 commit
18 Jan, 2010
4 commits
-
Add experimental support for the Asus Xonar DS.
Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela -
As snd_seq_timer_set_tick_resolution() is always called with the same
three fields of struct snd_seq_timer, it suffices to give that as the
only parameter.Signed-off-by: Clemens Ladisch
Signed-off-by: Jaroslav Kysela -
pgprot_noncached() can be set for vmalloc'ed buffers safely, and we'd
need non-cached behavior more or less, even for the intermediate ring-
buffers.Now snd_pcm_lib_mmap_vmalloc() is added as the common PCM mmap callback
that is coupled with snd_pcm_lib_alloc_vmalloc_buffer() & co.Signed-off-by: Takashi Iwai
-
Signed-off-by: Takashi Iwai
14 Jan, 2010
2 commits
-
Added a new option "subsystem" to override the PCI SSID for identifying
the card type.Signed-off-by: Takashi Iwai
-
Added a new function to look up a quirk entry with the given PCI SSID
instead of a pci device pointer. This can be used when the searched ID
is overridden for debugging or such a purpose.Signed-off-by: Takashi Iwai
13 Jan, 2010
2 commits
-
The previous jiffies delta was 0 in all cases. Use hw_ptr variable to
store and print original value.Signed-off-by: Jaroslav Kysela
12 Jan, 2010
2 commits
-
Signed-off-by: Alan Cox
Signed-off-by: Takashi Iwai -
Conflicts:
include/sound/version.h
08 Jan, 2010
6 commits
-
The XO's audio hardware is wired up to allow DC sensors (e.g. light
sensors, thermistors, etc) to be plugged in through the microphone jack.Add sound mixer controls to allow this mode to be enabled and tweaked.
Signed-off-by: Daniel Drake
Signed-off-by: Jaroslav Kysela -
The XO-1.5 has a microphone LED designed to indicate to the user when
something is being recorded.This light is controlled by the microphone bias voltage and it is
currently coming on all the time.This patch defers the microphone port configuration until when recording
is actually taking place, fixing the behaviour of the LED.Signed-off-by: Daniel Drake
Signed-off-by: Jaroslav Kysela -
Added patch for Hewlett-Packard Company Device Subsystem id - 103c:30ea.
Signed-off-by: Ken Prox
Signed-off-by: Jaroslav Kysela -
The WM9705 and WM9703 ops are the same actually so use
the same code for both.Signed-off-by: Krzysztof Helt
Signed-off-by: Jaroslav Kysela -
When runtime->periods == 1 or when pointer crosses end of ring buffer,
the delta might be greater than buffer_size.Signed-off-by: Jaroslav Kysela
07 Jan, 2010
3 commits
-
As noted by pl bossart , the PCM I/O routines
(snd_pcm_lib_write1, snd_pcm_lib_read1) should block wake_up() calls
until all samples are not processed.Signed-off-by: Jaroslav Kysela
-
Do general cleanup in snd_pcm_update_hw_ptr*() routines and merge them.
The main change is hw_ptr_interrupt variable removal to simplify code
logic. This variable can be computed directly from hw_ptr.Ensure that updated hw_ptr is not lower than previous one (it was possible
with old code in some obscure situations when interrupt was delayed or
the lowlevel driver returns wrong ring buffer position value).Signed-off-by: Jaroslav Kysela
-
In some debug cases, it might be usefull to see previous ring buffer
positions to determine position problems from the lowlevel drivers.Signed-off-by: Jaroslav Kysela