01 Nov, 2010
3 commits
-
converts a 1 bit signed bitfield to an unsigned.
Reported-by: Dr. David Alan Gilbert
Signed-off-by: Tim Blechmann
Signed-off-by: Takashi Iwai -
When reading through sound/pci/cs46xx/dsp_spos.c I noticed a couple of
things in cs46xx_dsp_spos_create().It seems to me that we don't always free the various memory buffers we
allocate and we also do some work (structure member assignment) early,
that is completely pointless if some of the memory allocations fail and
we end up just aborting the whole thing.I don't have hardware to test, so the patch below is compile tested only,
but it makes the following changes:- Make sure we always free all allocated memory on failures.
- Don't do pointless work assigning to structure members before we know
all memory allocations, that may abort progress, have completed
successfully.
- Remove some trailing whitespace.Signed-off-by: Jesper Juhl
Tested-by: Ondrej Zary
Signed-off-by: Takashi Iwai -
sound/usb/pcm.c::snd_usb_pcm_check_knot() fails to check the return value
from kmalloc() and may end up dereferencing a null pointer.
The patch below (compile tested only) should take care of that little
problem.Signed-off-by: Jesper Juhl
Signed-off-by: Takashi Iwai
27 Oct, 2010
6 commits
-
There are two USB Audio Class specifications (v1 and v2), but neither of
them clearly defines the feedback format for high-speed UAC v1 devices.
Add to this whatever the Creative and M-Audio firmware writers have been
smoking, and it becomes impossible to predict the exact feedback format
used by a particular device.Therefore, automatically detect the feedback format by looking at the
magnitude of the first received feedback value.Also, this allows us to get rid of some special cases for E-Mu devices.
Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
This fixes the following warning:
sound/soc/codecs/wm9090.c:668:12: warning: 'wm9090_i2c_remove' defined but not used
Signed-off-by: Arnaud Lacombe
Signed-off-by: Takashi Iwai -
This fixes the following warning:
sound/soc/codecs/max98088.c:2054:12: warning: 'max98088_i2c_remove' defined but not used
Signed-off-by: Arnaud Lacombe
Signed-off-by: Takashi Iwai -
This fixes the following warning:
sound/soc/codecs/ad73311.c:50:12: warning: 'ad73311_remove' defined but not used
Signed-off-by: Arnaud Lacombe
Signed-off-by: Takashi Iwai -
Fix build error:-
sound/soc/fsl/pcm030-audio-fabric.c:27:33: fatal error:
sound/soc-of-simple.h: No such file or directorySigned-off-by: Liam Girdwood
Signed-off-by: Takashi Iwai -
Delete successive assignments to the same location.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)//
@@
expression i;
@@*i = ...;
i = ...;
//Signed-off-by: Julia Lawall
Signed-off-by: Takashi Iwai
26 Oct, 2010
1 commit
-
Some HP laptops have lower amplifier levels for speakers in comparison
with headphone outputs. This patch changes the BTL amp level for these
machines to balance both the speaker and headphone output levels.Signed-off-by: Vitaliy Kulikov
Signed-off-by: Takashi Iwai
25 Oct, 2010
4 commits
-
The sticky PCM stream assignment introduced in 2.6.36 kernel seems
causing problems on AD codecs. At some time later, the streaming no
longer works by unknown reason. A simple workaround is to disable
sticky-assignment for these codecs.Tested-by: Vasily Khoruzhick
Cc:
Signed-off-by: Takashi Iwai -
Conflicts:
arch/powerpc/platforms/85xx/p1022_ds.c
24 Oct, 2010
1 commit
-
Adds an entry for Creative USB X-Fi to the rc_config array in
mixer_quirks.c to allow use of volume knob on the device.
The action of the volume knob is received by lirc when its using the
alsa_usb driver.Signed-off-by: Mandar Joshi
Signed-off-by: Takashi Iwai
23 Oct, 2010
9 commits
-
…soc-2.6 into topic/asoc
-
Signed-off-by: Andy Owen
Signed-off-by: Takashi Iwai -
Signed-off-by: Andy Owen
Signed-off-by: Takashi Iwai -
This is to allow a future patch to have card specific mappings between
dacs, which is required since the Sound Blaster 5.1vx seems to have a
different mapping to what was previously used.Signed-off-by: Andy Owen
Signed-off-by: Takashi Iwai -
Signed-off-by: Andy Owen
Signed-off-by: Takashi Iwai -
This is ground work for a future commit where cards (such as the Sound
Blaster 5.1vx) have different mappings between dacs and channels.Signed-off-by: Andy Owen
Signed-off-by: Takashi Iwai -
Signed-off-by: Andy Owen
Signed-off-by: Takashi Iwai -
Switch to use the more precise usleep_range instead of
msleep().
Replace the udelay with usleep_range to remove the busy loop
waiting.Signed-off-by: Peter Ujfalusi
Acked-by: Mark Borwn
Signed-off-by: Liam Girdwood -
Add a quirk entry for the Novation Launchpad USB MIDI controller.
QUIRK_MIDI_FASTLANE gets renamed to *_RAW_BYTES because this quirk type
is now shared by different devices.Signed-off-by: Clemens Ladisch
Tested-by: Jakob Flierl
Signed-off-by: Takashi Iwai
22 Oct, 2010
5 commits
-
Creative IBG controllers require the playback stream-tags to be started
from 1, instead of capture+1. Otherwise the stream stalls.Reported-by: Wai Yew CHAY
Cc:
Signed-off-by: Takashi Iwai -
The bit value set for TLV mute was wrong in commit
de8c85f7840e5e29629de95f5af24297fb325e0b, which resulted in bogus
dB ranges that screw up PulseAudio. Corrected with the right constant.Signed-off-by: Takashi Iwai
-
Correct/Implement handling of broken chip.
Fail the i2c_prope if the communication with the chip
fails.Signed-off-by: Peter Ujfalusi
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood -
This function is not exported and it does not seem to be called from
anywhere else therefore it should be static.Signed-off-by: Dimitris Papastamos
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: Dimitris Papastamos
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown
21 Oct, 2010
10 commits
-
Multiple Acer laptops with the SSID 1025:04xx require the quirk
mode=ideapad, so let's use mask to apply to all these.Signed-off-by: Takashi Iwai
-
Creative HD-audio controller chips require some workarounds:
- Additional delay before RIRB response
- Set the initial RIRB counter to 0xc0The latter seems to be done in general in Windows driver, so we may
use this value later for all types if it's confirmed to work better.Reported-by: Wai Yew CHAY
Cc:
Signed-off-by: Takashi Iwai -
The dig_out_nid field must take a digital-converter widget, but the current
ca0110 parser passed the pin wrongly instead.Reported-by: Wai Yew CHAY
Cc:
Signed-off-by: Takashi Iwai -
Signed-off-by: Kailang Yang
Signed-off-by: Takashi Iwai -
Signed-off-by: Kailang Yang
Signed-off-by: Takashi Iwai -
* 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus:
MIPS: O32 compat/N32: Fix to use compat syscall wrappers for AIO syscalls.
MAINTAINERS: Change list for ioc_serial to linux-serial.
SERIAL: ioc3_serial: Return -ENOMEM on memory allocation failure
MIPS: jz4740: Fix Kbuild Platform file.
MIPS: Repair Kbuild make clean breakage. -
If the host is slow in reading data or doesn't read data at all,
blocking write calls not only blocked the program that called write()
but the entire guest itself.To overcome this, let's not block till the host signals it has given
back the virtio ring element we passed it. Instead, send the buffer to
the host and return to userspace. This operation then becomes similar
to how non-blocking writes work, so let's use the existing code for this
path as well.This code change also ensures blocking write calls do get blocked if
there's not enough room in the virtio ring as well as they don't return
-EAGAIN to userspace.Signed-off-by: Amit Shah
Acked-by: Hans de Goede
CC: stable@kernel.org
Signed-off-by: Rusty Russell
Signed-off-by: Linus Torvalds -
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
[SCSI] bsg: fix incorrect device_status value
[SCSI] Fix VPD inquiry page wrapper -
* 'kvm-updates/2.6.36' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: Fix fs/gs reload oops with invalid ldt
20 Oct, 2010
1 commit