14 Jan, 2010

1 commit


10 Sep, 2009

1 commit


07 Sep, 2009

2 commits


28 Aug, 2009

1 commit


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

    Takashi Iwai
     

10 Jun, 2009

1 commit


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

    Jaroslav Kysela
     

21 Apr, 2009

1 commit


24 Mar, 2009

2 commits


09 Mar, 2009

1 commit


10 Feb, 2009

1 commit


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

    Takashi Iwai
     

26 Nov, 2008

1 commit


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

    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

    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 effect

    Due to

    try to fix this, and be more conventional about the empty stubs.

    Signed-off-by: Andrew Morton
    Signed-off-by: Takashi Iwai

    Andrew Morton
     

12 Oct, 2008

1 commit


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

    Takashi Iwai
     

29 Aug, 2008

1 commit


13 Aug, 2008

3 commits


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

    Mark Brown
     

27 May, 2008

1 commit


24 Apr, 2008

2 commits


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

    Takashi Iwai
     

16 Oct, 2007

1 commit


09 Feb, 2007

4 commits


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
    | `-- uevent

    Also, 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

    Takashi Iwai
     

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

    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

    Karsten Wiese
     

23 Sep, 2006

2 commits