17 May, 2017

1 commit


20 Apr, 2017

1 commit

  • When the kernel is running in secure boot mode, we lock down the kernel to
    prevent userspace from modifying the running kernel image. Whilst this
    includes prohibiting access to things like /dev/mem, it must also prevent
    access by means of configuring driver modules in such a way as to cause a
    device to access or modify the kernel image.

    To this end, annotate module_param* statements that refer to hardware
    configuration and indicate for future reference what type of parameter they
    specify. The parameter parser in the core sees this information and can
    skip such parameters with an error message if the kernel is locked down.
    The module initialisation then runs as normal, but just sees whatever the
    default values for those parameters is.

    Note that we do still need to do the module initialisation because some
    drivers have viable defaults set in case parameters aren't specified and
    some drivers support automatic configuration (e.g. PNP or PCI) in addition
    to manually coded parameters.

    This patch annotates drivers in sound/isa/.

    Suggested-by: Alan Cox
    Signed-off-by: David Howells
    cc: Jaroslav Kysela
    cc: Takashi Iwai
    cc: alsa-devel@alsa-project.org

    David Howells
     

01 Jun, 2016

1 commit


02 Jan, 2015

1 commit

  • Most callers of snd_wss_pcm(), snd_wss_timer() and snd_cs4236_pcm() pass
    NULL as the last parameter, some callers pass a pointer but never use it
    after the function has been called and only a few callers pass a pointer and
    actually use it. The later is only the case for snd_wss_pcm() for
    snd_cs4236_pcm() and it is possible to get the same PCM object by accessing
    the pcm field of the snd_wss struct that was passed as the first parameter.

    This function removes the last parameters from the functions mentioned above
    and updates the callers which used it to use chip->pcm instead. This allows
    us to slightly simplify the functions since they don't have to check and set
    the last parameter anymore which makes the code slightly shorter and
    cleaner.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Takashi Iwai

    Lars-Peter Clausen
     

12 Feb, 2014

1 commit


07 Nov, 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
    Signed-off-by: Takashi Iwai

    Bill Pemberton
     

24 Aug, 2012

1 commit

  • sound/isa/cmi8328.c: In function 'snd_cmi8328_remove':
    sound/isa/cmi8328.c:416:24: error: 'cmi' undeclared (first use in this function)
    sound/isa/cmi8328.c:416:24: note: each undeclared identifier is reported only once for each function it appears in
    make[3]: *** [sound/isa/cmi8328.o] Error 1

    Reported-by: Randy Dunlap
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

21 Aug, 2012

1 commit

  • Introduce snd-cmi8328 driver for C-Media CMI8328-based sound cards, such as
    AudioExcel AV500.

    It supports PCM playback and capture (full-duplex) through wss_lib, gameport,
    OPL3 and MPU401. The AV500 card has onboard Dream wavetable synth connected
    to the MPU401 port and Aux 1 input internally which works too.
    The CDROM interface is not supported (as the drivers for these CDROMs were
    removed from the kernel some time ago).

    A separate driver is needed because CMI8328 is completely different chip to
    CMI8329/CMI8330. It's configured by magic registers (there's no PnP). Sound is
    provided by a real WSS codec (CS4231A) and the SB part is just a SB Pro
    emulation (for DOS games, useless for Linux).

    When SB is enabled, the CMI8328 chip disables access to the WSS codec,
    emulates SoundBlaster on one side and outputs sound data to the codec - so SB
    and WSS can't work together with this card. The WSS codec can do full duplex
    by itself so there's no need for crazy things like snd-cmi8330 does
    (combining SB and WSS parts into one driver).

    Signed-off-by: Ondrej Zary
    Signed-off-by: Takashi Iwai

    Ondrej Zary