12 Feb, 2014
1 commit
-
Also remove superfluous snd_card_set_dev() calls.
Signed-off-by: Takashi Iwai
21 Jul, 2013
1 commit
-
The usage of strict_strto*() is not preferred, because
strict_strto*() is obsolete. Thus, kstrto*() should be
used.Signed-off-by: Jingoo Han
Signed-off-by: Takashi Iwai
29 May, 2013
1 commit
-
A few calls are still left in parport drivers after this commit, which
I'm not quite sure yet.Signed-off-by: Takashi Iwai
07 Dec, 2012
1 commit
-
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.Signed-off-by: Bill Pemberton
Signed-off-by: Takashi Iwai
21 Oct, 2012
1 commit
-
To make the testing of deactivated mixer controls easier (and for people
with common hardware, possible), add a control that deactivates some
other controls.Signed-off-by: Clemens Ladisch
09 Aug, 2012
1 commit
-
When CONFIG_PM is set but CONFIG_PM_SLEEP is unset,
SIMPLE_DEV_PM_OPS() ignores the given functions, and this leads to
compile warnings.For avoiding this, simply check CONFIG_PM_SLEEP instead of CONFIG_PM.
Reported-by: Arnd Bergmann
Signed-off-by: Takashi Iwai
03 Jul, 2012
1 commit
-
Signed-off-by: Takashi Iwai
02 Jul, 2012
1 commit
-
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
01 Nov, 2011
1 commit
-
The implicit presence of module.h lured several users into
incorrectly thinking that they only needed/used modparam.h
but once we clean up the module.h presence, these will show
up as build failures, so fix 'em now.Signed-off-by: Paul Gortmaker
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 Nov, 2009
1 commit
-
Now up to 128 substreams are supported.
Reported-by: Adrian Bridgett
Signed-off-by: Takashi Iwai
30 Oct, 2009
1 commit
-
In pcm.c, if the NULL test on pcm is needed, then the dereference should be
after the NULL test.In dummy.c and ali5451.c, the context of the calls to
snd_card_dummy_new_mixer and snd_ali_free_voice show that dummy and pvoice,
respectively cannot be NULL.A simplified version of the semantic match that detects this problem is as
follows (http://coccinelle.lip6.fr/)://
@match exists@
expression x, E;
identifier fld;
@@* x->fld
... when != \(x = E\|&x\)
* x == NULL
//Signed-off-by: Julia Lawall
Signed-off-by: Takashi Iwai
09 Sep, 2009
1 commit
-
Increase the limit of PCM substreams to 128. The default value is
unchanged; only the max accept value is increased.Signed-off-by: Takashi Iwai
08 Sep, 2009
1 commit
-
Added the debug proc file to see or change the snd_pcm_hardware fields
to emulate. The parameters can be changed by writing to a proc file like:# echo periods_min 4 > /proc/asound/card1/dummy_pcm
Signed-off-by: Takashi Iwai
07 Sep, 2009
1 commit
-
Instead of allocating the real buffers, use a fake buffer and ignore
read/write in the dummy driver so that we can save the resources.
For mmap, a single page (unique to the direction, though) is reused
to all buffers.When the app requires to read/write the real buffers, pass fake_buffer=0
module option at loading time. This will get back to the old behavior.Signed-off-by: Takashi Iwai
04 Sep, 2009
1 commit
-
Fix the expire-time calculation in the systimer mode when the buffer
size isn't aligned to the period size.Signed-off-by: Takashi Iwai
03 Sep, 2009
2 commits
-
In the system-timer mode, snd-dummy driver issues each tick to update
the position. This is highly inefficient and even inaccurate if the
timer can't be triggered at each tick.Now rewritten to wake up only at the period boundary. The position
is calculated from the current jiffies.Signed-off-by: Takashi Iwai
-
Allow snd-dummy driver to use high-res timer as its timing source
instead of the system timer. The new module option "hrtimer" is added
to turn on/off the high-res timer support. It can be switched even
dynamically via sysfs.Signed-off-by: Takashi Iwai
12 Jan, 2009
1 commit
-
Convert from snd_card_new() to the new snd_card_create() function
in other sound subdirectories.Signed-off-by: Takashi Iwai
19 Oct, 2008
1 commit
-
Fixed typos in disabled codes via #if 0.
Signed-off-by: Mariusz Kozlowski
Signed-off-by: Takashi Iwai
15 Aug, 2008
2 commits
-
checkpatch.pl does not like assignment in if condition
Signed-off-by: Jaroslav Kysela
-
The dummy driver uses runtime->private_free but still frees
its pcm structures on error paths.This is esoteric because the error paths in question are
unreachable. Thus the bug is only a problem when someone
copies this code into other drivers.Signed-off-by: Daniel R Thompson
Signed-off-by: Jaroslav Kysela
13 Aug, 2008
1 commit
-
Kill snd_assert() in other places, either removed or replaced with
if () with snd_BUG_ON().Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
24 Apr, 2008
3 commits
-
bps is unsigned, a negative snd_pcm_format_width() return value is not noticed
Signed-off-by: Roel Kluin
Signed-off-by: Takashi Iwai -
when the time interval for a period is smaller than kernel HZ, then
snd-aloop and snd-dummy cannot call snd_pcm_period_elapsed as fast enough
annymore. this happens for example with games. but the app still needs to
see, that the buffer actually did go further, which is provided by these
patches.Signed-off-by: Ahmet İnan mathematik.uni-freiburg.de>
Signed-off-by: Takashi Iwai -
Signed-off-by: Ahmet İnan mathematik.uni-freiburg.de>
Signed-off-by: Takashi Iwai
01 Feb, 2008
1 commit
-
This header file exists only for some hacks to adapt alsa-driver
tree. It's useless for building in the kernel. Let's move a few
lines in it to sound/core.h and remove it.
With this patch, sound/driver.h isn't removed but has just a single
compile warning to include it. This should be really killed in
future.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
16 Oct, 2007
2 commits
-
Signed-off-by: Jaroslav Kysela
-
Clean up codes using the new common snd_ctl_boolean_*_info() callbacks.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
20 Jul, 2007
1 commit
-
Something about __init_or_module isn't working as expected (?).
CONFIG_HOTPLUG=y
CONFIG_MODULES=n
Fix shared init/exit code helper:
WARNING: sound/built-in.o(.exit.text+0x243): Section mismatch: reference to .init.text: (between 'alsa_card_mpu401_exit' and 'ac97_bus_exit')
WARNING: sound/built-in.o(.exit.text+0x21b): Section mismatch: reference to .init.text: (between 'alsa_card_dummy_exit' and 'alsa_card_serial_exit')Signed-off-by: Randy Dunlap
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
14 Feb, 2007
1 commit
-
Fix __devinit and __devexit issues with sound drivers.
Resolves MODPOST warnings similar to:
WARNING: sound/drivers/snd-dummy.o - Section mismatch: reference to .init.text:snd_dummy_probe from .data.rel.local between 'snd_dummy_driver' (at offset 0x0) and 'snd_dummy_controls'
WARNING: sound/drivers/snd-mtpav.o - Section mismatch: reference to .init.text:snd_mtpav_probe from .data.rel.local between 'snd_mtpav_driver' (at offset 0x0) and 'snd_mtpav_input'
WARNING: sound/drivers/snd-virmidi.o - Section mismatch: reference to .init.text:snd_virmidi_probe from .data.rel.local after 'snd_virmidi_driver' (at offset 0x0)Signed-off-by: Prarit Bhargava
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
09 Feb, 2007
1 commit
-
Mark TLV data as 'const'
Signed-of-by: Philipp Matthias HahnSigned-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
23 Sep, 2006
2 commits
-
Added the dB scale information to dummy driver.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Fixed some typos in snd-dummy driver.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
23 Jun, 2006
1 commit
-
This second one unregisters the platform device again when the probe is
unsuccesful for sound/drivers, sound/arm/sa11xx-uda1341.c and
sound/ppc/powermac.c. This gets them all.Signed-off-by: Rene Herman
Signed-off-by: Takashi Iwai
28 Apr, 2006
1 commit
-
I previously only concerned myself with sound/isa. When I now checked
for more platform_device_register_simple() usages in ALSA I found a
couple more drivers that needed the same patches as already submitted
for all the ISA drivers.
This first one is the continue-on-iserr patch for sound/drivers. This
gets them all.Signed-off-by: Rene Herman
Signed-off-by: Takashi Iwai
22 Mar, 2006
1 commit
-
Fix the check of enable module option in probe of platform_device drivers.
It shouldn't break the loop but just ignore if enable[i] is false.Signed-off-by: Takashi Iwai
04 Jan, 2006
1 commit
-
Modules: Generic drivers
Signed-off-by: Jaroslav Kysela
03 Jan, 2006
1 commit
-
Call platform_device_unregister() for all platform devices that we've
registered.Signed-off-by: Clemens Ladisch