14 Jan, 2010
1 commit
-
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
10 Sep, 2009
1 commit
-
* topic/snd-printk:
ALSA: Fixed a typo of printk()
ALSA: Add debug module option
ALSA: core - strip too long file names in snd_print*()
07 Sep, 2009
2 commits
-
Remove the old hack that was needed for building alsa-driver modules
externally for old kernels.Signed-off-by: Takashi Iwai
-
The struct snd_monitor_file is used locally only in sound/core/init.c,
thus it should be moved there from the public sound/core.h.Signed-off-by: Takashi Iwai
28 Aug, 2009
1 commit
-
Fixed a silly typo of printk() included in the previous patch...
Signed-off-by: Takashi Iwai
27 Aug, 2009
1 commit
-
Add debug module option to snd core.
This controls the debug print level. When CONFIG_SND_DEBUG_VERBOSE
is set, you can suppress the debug messages by giving or changing this
parameter to a lower value. debug=0 means no debug messsages.
As default, it's set to the verbose level 2.Since this option can be changed dynamically via sysfs file, you can
suppress the verbose debug messages on the fly, which wasn't possible
before.Signed-off-by: Takashi Iwai
10 Jun, 2009
1 commit
-
* topic/cleanup:
ALSA: Remove deprecated include/sound/driver.h
ALSA: Remove deprecated snd_card_new()
02 Jun, 2009
1 commit
-
Introduce snd_card_set_id() function to allow lowlevel drivers to set
default identification name for card slot. The function checks also
for identification name collisions and tries to create unique name.Also, the snd_card_create() function is simplified, because this new
function is used. As bonus, proper name collision checks are evaluated
at the card create time.Signed-off-by: Jaroslav Kysela
Signed-off-by: Takashi Iwai
21 Apr, 2009
1 commit
-
Signed-off-by: Takashi Iwai
24 Mar, 2009
2 commits
09 Mar, 2009
1 commit
-
Use the standard linked list for snd_monitor_file management.
Also, move the list deletion of shutdown_list element into
snd_disconnect_release() (for simplification).Signed-off-by: Takashi Iwai
10 Feb, 2009
1 commit
-
Introduced a new field, subdevice_mask, which specifies the bitmask
to match with the given subdevice ID.Signed-off-by: Takashi Iwai
12 Jan, 2009
1 commit
-
Introduced snd_card_create() function as a replacement of snd_card_new().
The new function returns a negative error code so that the probe callback
can return the proper error code, while snd_card_new() can give only NULL
check.The old snd_card_new() is still provided as an inline function but with
__deprecated attribute. It'll be removed soon later.Signed-off-by: Takashi Iwai
26 Nov, 2008
1 commit
-
Conflicts:
sound/drivers/pcsp/pcsp_lib.c
11 Nov, 2008
1 commit
07 Nov, 2008
3 commits
-
Add descriptions of snd_BUG() and snd_BUG_ON().
Also fixed a typo in the comment of snd_printk(), too.Signed-off-by: Takashi Iwai
-
Change snd_BUG_ON() to evaluate the given condition, at least, in syntax
for avoiding compile warnings such as unused variables. The compiler
should optimize out the condition evaluation in the real code, though.Signed-off-by: Takashi Iwai
-
sound/pci/pcxhr/pcxhr_core.c: In function 'pcxhr_set_pipe_cmd_params':
sound/pci/pcxhr/pcxhr_core.c:700: warning: statement with no effect
sound/pci/pcxhr/pcxhr_core.c:706: warning: statement with no effect
sound/pci/pcxhr/pcxhr_core.c:710: warning: statement with no effectDue to
try to fix this, and be more conventional about the empty stubs.
Signed-off-by: Andrew Morton
Signed-off-by: Takashi Iwai
12 Oct, 2008
1 commit
-
Conflicts:
sound/core/memalloc.c
10 Oct, 2008
1 commit
-
Increase the card components[] (and thus snd_card_info.components[],
too) array size from 80 to 128 chars so that more strings can be
stored. The 80 chars aren't enough for more than 2 HD-audio codecs,
and this hits an ugly snd_BUG() as reported by Wu Fegguang for HP
2230s.The control protocol number is increased to 2.0.6 as well, in case
it matters.Reported-by: Wu Fengguang
Acked-by: Jaroslav Kysela
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
29 Aug, 2008
1 commit
-
No longer used.
Signed-off-by: David S. Miller
13 Aug, 2008
3 commits
-
Use the standard WARN() macro for snd_BUG().
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Remove snd_assert() completely now.
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Introduced snd_BUG_ON() macro as a replacement of snd_assert() macro.
snd_assert() is pretty ugly as it has the control flow in its argument.
OTOH, snd_BUG_ON() behaves like a normal conditional, thus it's much
easier to read the flow.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
30 Jul, 2008
1 commit
-
Currently very few systems provide information about jack status to user
space, even though many have hardware facilities to do detection. Those
systems that do use an input device with the existing SW_HEADPHONE_INSERT
switch type to do so, often independently of ALSA.This patch introduces a standard method for representing jacks to user
space into ALSA. It allows drivers to register jacks for a sound card with
the input subsystem, binding the input device to the card to help user
space associate the input devices with their sound cards. The created
input devices are named in the form "card longname jack" where jack is
provided by the driver when allocating a jack. By default the parent for
the input device is the sound card but this can be overridden by the
card driver.The existing user space API with SW_HEADPHONE_INSERT is preserved.
Signed-off-by: Mark Brown
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
27 May, 2008
1 commit
-
Replace CONFIG_SND_DEBUG_DETECT with CONFIG_SND_DEBUG_VERBOSE to
represent its meaning more better. This config isn't provided only
for the detection but for more verbose debug prints in general.Signed-off-by: Takashi Iwai
24 Apr, 2008
2 commits
-
snd_minor_info_oss_* is an function returning int _or_ comment,
depending on config parameters. That is truly evil, fix it.Signed-off-by: Pavel Machek
Signed-off-by: Takashi Iwai -
Two sentences seem to be spliced into one in comment, fix that and fix
english. Also fix codingstyle.Signed-off-by: Pavel Machek
Signed-off-by: Jaroslav Kysela
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
1 commit
-
Signed-off-by: Jaroslav Kysela
09 Feb, 2007
4 commits
-
The fix for sysfs breakage with CONFIG_SYSFS_DEPRECATED was flown
away by the conflicted merge of the ALSA git tree. The patch below
fixes it again.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Added a helper function snd_pci_quirk_lookup()
to look up PCI SSID quirk list.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Removed obsolete typedefs.h. It existes only for backward compatibility,
and now all codes should be free from such typedefs.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
This patch adds snd_register_device_for_dev taking a struct device
pointer to link the new device to and makes snd_register_device a simple
static inline wrapper around it.Signed-off-by: Johannes Berg
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
30 Jan, 2007
1 commit
-
The recent change for a new sysfs tree with card* object breaks the
/sys/class/sound tree if CONFIG_SYSFS_DEPRECATED is enabled.
The device in each entry doesn't point the correct device object:/sys/class/sound
...
|-- pcmC0D0c
| |-- dev
| |-- device -> ../../../class/sound/card0
| |-- pcm_class
| |-- power
| | `-- wakeup
| |-- subsystem -> ../../../class/sound
| `-- ueventAlso, this change breaks some drivers (like sound/arm/*) referring
card->dev directly to obtain the device object for memory handling.This patch reverts the semantics of card->dev to the former version,
which points to a real device object. The card* object is stored in a
new card->card_dev field, instead. The device parent is chosen either
card->dev or card->card_dev according to CONFIG_SYSFS_DEPRECATED to
keep the tree compatibility.
Also, card* isn't created if CONFIG_SYSFS_DEPRECATED is enabled. The
reason of card* object is a root of all beloing devices, and it makes
little sense if each sound device points to the real device object
directly.Signed-off-by: Takashi Iwai
Acked-by: Monty Montgomery
Signed-off-by: Greg Kroah-Hartman
02 Dec, 2006
1 commit
-
Converts from using struct "class_device" to "struct device" making
everything show up properly in /sys/devices/ with symlinks from the
/sys/class directory.It also makes the struct sound_card to show up as a "real" device
where all the different sound class devices are placed as childs
and different card attribute files can hang off of. /sys/class/sound is
still a flat directory, but the symlink targets of all devices belonging
to the same card, point the the /sys/devices tree below the new card
device object.Thanks to Kay for the updates to this patch.
Signed-off-by: Kay Sievers
Acked-by: Jaroslav Kysela
Signed-off-by: Greg Kroah-Hartman
07 Oct, 2006
1 commit
-
Alsa used to kmalloc one file->f_op per file per disconnecting snd_card.
This led to oopses sometimes when file->f_op was freed before __fput()
finished.
Patch adds a virtual device for disconnect: VDD.
VDD consists of:
LIST_HEAD(shutdown_files)
protected by DEFINE_SPINLOCK(shutdown_mutex)
static struct file_operations snd_shutdown_f_ops
and functions assigned to it
Additions to struct snd_monitor_file
to specify if instance is hidden by VDD or not.
A VDD's instance is
created in snd_card_disconnect() under the card->files_lock.
cleaned up in snd_card_file_remove() under the card->files_lock.Signed-off-by: Karsten Wiese
Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela
23 Sep, 2006
2 commits
-
This patch adds a new attribute, pcm_class, to each PCM sysfs entry.
It's useful to detect what kind of PCM stream is, for example, HAL
can check whether it's a modem or not.Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela -
Deprecated snd_card_free_in_thread(), replaced with
snd_card_free_when_closed().Signed-off-by: Takashi Iwai
Signed-off-by: Jaroslav Kysela