31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

30 May, 2017

1 commit

  • Declare snd_kcontrol_new structures as const as they are only passed an
    argument to the function snd_ctl_new1. This argument is of type const,
    so snd_kcontrol_new structures having this property can be made const.
    Done using Coccinelle:

    @r disable optional_qualifier@
    identifier x;
    position p;
    @@
    static struct snd_kcontrol_new x@p={...};

    @ok@
    identifier r.x;
    position p;
    @@
    snd_ctl_new1(&x@p,...)

    @bad@
    position p != {r.p,ok.p};
    identifier r.x;
    @@
    x@p

    @depends on !bad disable optional_qualifier@
    identifier r.x;
    @@
    +const
    struct snd_kcontrol_new x;

    Cross compiled these files:
    sound/aoa/codecs/tas.c - powerpc
    sound/mips/{hal2.c/sgio2audio.c} - mips
    sound/ppc/{awacs.c/beep.c/tumbler.c} - powerpc
    sound/soc/sh/siu_dai.c - sh
    Could not find an architecture to compile sound/sh/aica.c.

    Signed-off-by: Bhumika Goyal
    Acked-by: Mark Brown
    Signed-off-by: Takashi Iwai

    Bhumika Goyal
     

26 Jun, 2015

1 commit

  • While the commit [d0a601c278de: ALSA: jack: Fix the id uniqueness
    check] fixes the wrong string check, it leads to a worse result -- the
    loop in get_available_index() goes into an endless loop. The cause is
    that snd_ctl_find_id() returns the object assigned to the numid if
    it's set. Thus it points to the previous entry again.

    This patch clears the numid field for the next call properly.

    Reported-and-tested-by: Tomáš Pružina
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

29 May, 2015

1 commit

  • snd_kctl_jack_new() tries to assign a unique index number when a name
    string that has been already registered is passed. However, it checks
    with the base string without "Jack" suffix, so it never hits.
    Fix the call with the properly processed name string instead.

    Fixes: b8dd086674cf 'ALSA: Jack: handle jack embedded kcontrol creating within ctljack')
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

28 Apr, 2015

3 commits


16 Nov, 2011

2 commits