09 Aug, 2012
1 commit
-
Pull sound fixes from Takashi Iwai:
"Containing only a few really small/trivial fixes. The only urgent fix
is a regression fix of HDMI codec probing, introduced in 3.6-rc1. The
rest are HD-audio specific fixes and a copule of minor bug fixes in
PCM core and the old emu10k1."* tag 'sound-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: hda - Fix double quirk for Quanta FL1 / Lenovo Ideapad
ALSA: hda - Fix ugly debug prints with CONFIG_SND_VERBOSE_PRINTK=y
ALSA: hda - remove redundant auto quirks for conexant 506x
ALSA: hda - remove quirk for Dell Vostro 1015
ALSA: hda - add dock support for Thinkpad X230
ALSA: hda - Fix regression of HDMI codec probing
ALSA: hda - add dock support for Thinkpad T430s
ALSA: emu10k1: Avoid access to invalid pages when period=1
ALSA: PCM: Fix possible memory leaks in the error path
03 Aug, 2012
1 commit
-
When the first page allocation failed for sgbuf, it leaks the records
that have been formerly allocated.Signed-off-by: Takashi Iwai
31 Jul, 2012
1 commit
-
Make the output logging routine independent of the KERN_ style.
Signed-off-by: Joe Perches
Cc: Kay Sievers
Cc: Takashi Iwai
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
18 Jul, 2012
1 commit
-
Generic updates for sound 3.6
05 Jul, 2012
1 commit
-
They aren't modified by the core so the drivers can declare them const.
Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
18 Jun, 2012
1 commit
-
This is essentially the reverse of snd_pcm_rate_to_rate_bit().
This is generally useful as the Compress API uses the rate bit
directly and it helps to be able to map back to the actual sample
rate.Signed-off-by: Dimitris Papastamos
Signed-off-by: Takashi Iwai
12 Jun, 2012
2 commits
-
as the start can be called after stop again, we need to reset state
Signed-off-by: Namarta Kohli
Signed-off-by: Vinod Koul
Signed-off-by: Takashi Iwai -
during pause the core should maintain the status-quo on the device and pointers
and not wake up. If app needs it should call DROP explcitly.Signed-off-by: Namarta Kohli
Signed-off-by: Vinod Koul
Signed-off-by: Takashi Iwai
23 May, 2012
1 commit
-
Group read of hw_ptr, tstamp and jiffies in a sequence
for better correlation. Previous code took timestamp at the
end, which could introduce delays between audio time and
system time.Signed-off-by: Pierre-Louis Bossart
Signed-off-by: Takashi Iwai
21 May, 2012
2 commits
-
The handling for some PCM states is missing for snd_pcm_drain().
At least, XRUN streams should be simply dropped to SETUP, and a few
initial invalid states should be rejected.Signed-off-by: Takashi Iwai
12 May, 2012
1 commit
-
In the PCM read/write loop, the driver calls snd_pcm_update_hw_ptr()
at each time at the beginning of the loop. Russell King reported that
this hogs CPU significantly.The current code assumes that the pointer callback is very fast and
cheap, also not too much fine grained. It's not true in all cases.
When the pointer advances short samples while the read/write copy has
been performed, the driver updates the hw_ptr and gets avail > 0
again. Then it tries to read/write these small chunks. This repeats
until the avail really gets to zero.For avoiding this situation, a simple workaround is to call
snd_pcm_update_hw_ptr() only once at starting the loop, assuming that
the read/write copy is performed fast enough. If the available count
becomes short, it goes to snd_pcm_wait_avail() anyway, and this
processes right.Tested-by: Russell King
Signed-off-by: Takashi Iwai
08 May, 2012
2 commits
-
There are left-over codes from the ancient days with the static device
number limitation of 8. Actaully OSS can support up to 16 cards.Signed-off-by: Takashi Iwai
-
Since this is a generic API which should support any userspace interface
for reporting jacks update the documentation a little to make that a bit
clearer.Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
18 Apr, 2012
1 commit
-
Fix kernel-doc warning in sound/core/vmaster.c:
Warning(sound/core/vmaster.c:429): No description found for parameter 'private_data'
Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai
31 Mar, 2012
1 commit
-
Usage of /etc/modprobe.conf file was deprecated by module-init-tools and
is no longer parsed by new kmod tool. References to this file are
replaced in Documentation, comments and Kconfig according to the
context.There are also some references to the old /etc/modules.conf from 2.4
kernels that are being removed.Signed-off-by: Lucas De Marchi
Acked-by: Takashi Iwai
Acked-by: Mauro Carvalho Chehab
Signed-off-by: Randy Dunlap
Signed-off-by: Linus Torvalds
25 Mar, 2012
1 commit
-
Pull avoidance patches from Paul Gortmaker:
"Nearly every subsystem has some kind of header with a proto like:void foo(struct device *dev);
and yet there is no reason for most of these guys to care about the
sub fields within the device struct. This allows us to significantly
reduce the scope of headers including headers. For this instance, a
reduction of about 40% is achieved by replacing the include with the
simple fact that the device is some kind of a struct.Unlike the much larger module.h cleanup, this one is simply two
commits. One to fix the implicit users, and then one
to delete the device.h includes from the linux/include/ dir wherever
possible."* tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
device.h: audit and cleanup users in main include dir
device.h: cleanup users outside of linux/include (C files)
19 Mar, 2012
3 commits
15 Mar, 2012
2 commits
-
GFP_ATOMIC is used in snd_pcm_link() just because the kmalloc is
called inside a lock. Since this function isn't too critical for
speed and is rarely called in practice, better to allocate the chunk
at first before spinlock and free it in error paths, so that
GFP_KERNEL can be used.Signed-off-by: Takashi Iwai
-
Allows the constraint lists to be declared const by drivers which seems
reasonable; there's plenty of other constification we could do if we were
being complete but this was easy and quick.Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
13 Mar, 2012
1 commit
-
Fixed a trailing white space error detected
in sound/core/control.c by checkpatch.pl script.Signed-off-by: Jeffrin Jose
Signed-off-by: Takashi Iwai
12 Mar, 2012
2 commits
-
This patch adds a hook to vmaster control to be called at each time
when the master value is changed. It'd be handy for an additional
mute LED control following the Master switch, for example.Signed-off-by: Takashi Iwai
-
For files that are actively using linux/device.h, make sure
that they call it out. This will allow us to clean up some
of the implicit uses of linux/device.h within include/*
without introducing build regressions.Yes, this was created by "cheating" -- i.e. the headers were
cleaned up, and then the fallout was found and fixed, and then
the two commits were reordered. This ensures we don't introduce
build regressions into the git history.Signed-off-by: Paul Gortmaker
10 Mar, 2012
1 commit
-
The code to handle the card id string is fairly messy, so here is a
tidy up.Signed-off-by: Takashi Iwai
28 Feb, 2012
1 commit
-
This is intended to facilitate the merge of the two jack detection
mechanisms.Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
20 Feb, 2012
1 commit
-
This is a patch to the sound/core/misc.c file that
fixes up a trailing white space issue found by the
checkpatch.pl tool.Signed-off-by: Jeffrin Jose
Signed-off-by: Takashi Iwai
09 Feb, 2012
1 commit
-
The new ASoC dynamic PCM core needs to create PCMs and substreams that are
for use by internal ASoC drivers only and not visible to userspace for
direct IO. These new PCMs are similar to regular PCMs expect they have no
device nodes or procfs entries. The ASoC component drivers use them in exactly
the same way as regular PCMs for PCM and DAI operations.The intention is that a dynamic PCM based driver will register both regular
PCMs and internal PCMs. The regular PCMs will be used for all IO with userspace
however the internal PCMs will be used by the driver to route digital audio
through numerous back end DAI links (with potentially a DSP providing different
hw_params, DAI formats based on the regular front end PCM params) to devices
like CODECs, MODEMs, Bluetooth, FM, DMICs, etcThis patch adds a new snd_pcm_new_internal() API call to create the internal PCM
without device nodes or procfs. It also adds adds a new internal flag to snd_pcm.[fixed minor coding-style issues by tiwai]
Signed-off-by: Liam Girdwood
Signed-off-by: Takashi Iwai
31 Jan, 2012
1 commit
27 Jan, 2012
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: hda - Fix silent output on Haier W18 laptop
ALSA: hda: set mute led polarity for laptops with buggy BIOS based on SSID
ALSA: hda - Fix silent output on ASUS A6Rp
ALSA: Fix memory leak on error in snd_compr_set_params()
ALSA: ymfpci - Don't create invalid PCM & mixers when AC97 doesn't support
24 Jan, 2012
1 commit
-
If copy_from_user() does not return 0 we'll leak the memory we
allocated for 'params' when that variable goes out of scope.Also a small CodingStyle cleanup: Use braces on both branches of
if/else when one branch needs it.Signed-off-by: Jesper Juhl
Acked-by: Vinod Koul
Signed-off-by: Takashi Iwai
18 Jan, 2012
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: virtuoso: Xonar DS: fix polarity of front output
ALSA: Au88x0 - Reduce the number of playback subdevices of au8830 from 32 to 16
ALSA: Au88x0 - Support 4 channels playback when AC97 codecs has SDAC bit
ALSA: HDA: Fix internal microphone on Dell Studio 16 XPS 1645
ALSA: Don't prompt for CONFIG_SND_COMPRESS_OFFLOAD
ALSA: HDA: Use LPIB position fix for Macbook Pro 7,1
13 Jan, 2012
2 commits
-
CONFIG_SND_COMPRESS_OFFLOAD is an item to be selected by the dirver
just like CONFIG_SND_PCM, and no need to prompt for explicit
selection.Signed-off-by: Takashi Iwai
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (526 commits)
ASoC: twl6040 - Add method to query optimum PDM_DL1 gain
ALSA: hda - Fix the lost power-setup of seconary pins after PM resume
ALSA: usb-audio: add Yamaha MOX6/MOX8 support
ALSA: virtuoso: add S/PDIF input support for all Xonars
ALSA: ice1724 - Support for ooAoo SQ210a
ALSA: ice1724 - Allow card info based on model only
ALSA: ice1724 - Create capture pcm only for ADC-enabled configurations
ALSA: hdspm - Provide unique driver id based on card serial
ASoC: Dynamically allocate the rtd device for a non-empty release()
ASoC: Fix recursive dependency due to select ATMEL_SSC in SND_ATMEL_SOC_SSC
ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs
ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs
ALSA: hda - Use auto-parser for HP laptops with cx20459 codec
ALSA: asihpi - Fix potential Oops in snd_asihpi_cmode_info()
ALSA: hdsp - Fix potential Oops in snd_hdsp_info_pref_sync_ref()
ALSA: hda/cirrus - support for iMac12,2 model
ASoC: cx20442: add bias control over a platform provided regulator
ALSA: usb-audio - Avoid flood of frame-active debug messages
ALSA: snd-usb-us122l: Delete calls to preempt_disable
mfd: Put WM8994 into cache only mode when suspending
...Fix up trivial conflicts in:
- arch/arm/mach-s3c64xx/mach-crag6410.c:
renamed speyside_wm8962 to tobermory, added littlemill right
next to it
- drivers/base/regmap/{regcache.c,regmap.c}:
duplicate diff that had already come in with other changes in
the regmap tree
12 Jan, 2012
1 commit
23 Dec, 2011
3 commits
-
Signed-off-by: Vinod Koul
Signed-off-by: Pierre-Louis Bossart
Signed-off-by: Takashi Iwai -
This patch adds core.c, the file which implements the ioctls and
registers the devicesSigned-off-by: Vinod Koul
Signed-off-by: Pierre-Louis Bossart
Signed-off-by: Takashi Iwai -
Use the minor numbers 2 and 3 for audio compressed offload devices.
Also add support for these devices in coreSigned-off-by: Omair Mohammed Abdullah
Signed-off-by: Pierre-Louis Bossart
Signed-off-by: Vinod Koul
Reviewed-by: Mark Brown
Signed-off-by: Takashi Iwai
19 Dec, 2011
1 commit
-
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.Signed-off-by: Rusty Russell
Signed-off-by: Takashi Iwai