05 Jan, 2020

1 commit

  • Apply const prefix to the static channel list table.

    Just for minor optimization and no functional changes.

    Link: https://lore.kernel.org/r/20200105144823.29547-57-tiwai@suse.de
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

03 Jan, 2020

1 commit

  • Now snd_ac97_bus() takes the const ops pointer, so we can define the
    snd_ac97_bus_ops locally as const as well for further optimization.

    There should be no functional changes by this patch.

    Link: https://lore.kernel.org/r/20200103081714.9560-25-tiwai@suse.de
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

11 Dec, 2019

2 commits

  • PCM core deals the empty ioctl field now as default(*).
    Let's kill the redundant lines.

    (*) commit fc033cbf6fb7 ("ALSA: pcm: Allow NULL ioctl ops")

    Link: https://lore.kernel.org/r/20191210061145.24641-3-tiwai@suse.de
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Clean up the driver with the new managed buffer allocation API.
    The superfluous snd_pcm_lib_malloc_pages() and
    snd_pcm_lib_free_pages() calls are dropped, and the if block is
    flattened accordingly.

    Link: https://lore.kernel.org/r/20191209094943.14984-3-tiwai@suse.de
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

19 Jun, 2019

1 commit

  • Based on 2 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 version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

04 Feb, 2019

1 commit


16 Jan, 2019

1 commit


23 Aug, 2017

1 commit


19 Aug, 2017

1 commit


17 Aug, 2017

1 commit


04 Jan, 2015

1 commit


14 Feb, 2014

1 commit


04 Dec, 2013

1 commit


29 May, 2013

1 commit


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
    Cc: Russell King
    Signed-off-by: Takashi Iwai

    Bill Pemberton
     

17 Mar, 2012

1 commit


22 Nov, 2011

1 commit


22 Sep, 2011

1 commit

  • Since commit [e58aa3d2: genirq: Run irq handlers with interrupts disabled],
    We run all interrupt handlers with interrupts disabled
    and we even check and yell when an interrupt handler
    returns with interrupts enabled (see commit [b738a50a:
    genirq: Warn when handler enables interrupts]).

    So now this flag is a NOOP and can be removed.

    Signed-off-by: Yong Zhang
    Acked-by: Peter Ujfalusi
    Acked-by: Mark Brown
    Signed-off-by: Takashi Iwai

    Yong Zhang
     

17 Mar, 2011

1 commit


24 Feb, 2011

1 commit


07 Feb, 2011

1 commit

  • The AACI TRM requires the MAINCR enable bit to be held zero for two
    bitclk cycles plus three apb_pclk cycles. Use a delay of 1us to
    ensure this.

    Ensure that writes to MAINCR to change the addressed codec only happen
    when required, and that they take effect in a similar manner to the
    above, otherwise we seem to occasionally have stuck slot busy bits.

    Signed-off-by: Russell King

    Russell King
     

27 Jan, 2011

5 commits


26 Jan, 2011

4 commits

  • AC'97 codecs only support two channels for recording, so we shouldn't
    advertize that there are up to six channels available. Limit the
    selection of 4 and 6 channel audio to playback only.

    As this adds additional SNDRV_PCM_STREAM_PLAYBACK conditionals, we can
    combine some resulting in the elimination of __aaci_pcm_open() entirely,
    and making the code easier to read.

    Signed-off-by: Russell King

    Russell King
     
  • Claiming the IRQ each time a playback or capture interface is opened
    is wasteful; the second copy of the registered handler is identical to
    the first and just wastes resources. Track the number of opens and
    only register the handler when necessary.

    Signed-off-by: Russell King

    Russell King
     
  • Relying on the access time of peripherals is unreliable - it depends
    on the speed of the CPU and the bus. On Versatile Express, these
    timeouts were expiring, causing the driver to fail.

    Add udelay(1) to ensure that they don't expire early, and adjust
    timeouts to give a reasonable margin over the response times.

    Signed-off-by: Russell King

    Russell King
     
  • Ensure that a timeout coincident with the condition being waited for
    results in success rather than failure. This helps avoid timeout
    conditions being inappropriately flagged.

    Signed-off-by: Russell King

    Russell King
     

13 Apr, 2010

1 commit


26 Dec, 2009

1 commit

  • This patch fixes a build failure introduced by the patch
    ALSA: AACI: factor common hw_params logic into aaci_pcm_hw_params [1]
    by adding/moving the aaci struct to the right position.

    The patch mentioned above merged common source parts into one function,
    but unfortunately left out the aaci struct and consequently caused a
    build failure e.g. for arm versatile_config [2]

    References:
    [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=d3aee7996c30f928bbbbfd0994148e35d2e83084
    [2] http://kisskb.ellerman.id.au/kisskb/buildresult/1893605/

    Patch against Linus' tree.

    Signed-off-by: Peter Huewe
    Signed-off-by: Takashi Iwai

    Peter Huewe
     

19 Dec, 2009

6 commits


04 Dec, 2009

2 commits