08 Aug, 2011

8 commits


07 Aug, 2011

2 commits

  • CONFIG_SND_TEA575X is enabled by RADIO_SF16FMR2, but the latter one is
    no PCI device. Since tea575x-tuner itself is independent from the board
    bus type, the config should be moved out of SND_PCI dependency.

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

    Takashi Iwai
     
  • Use kzalloc rather than kmalloc followed by memset with 0

    This considers some simple cases that are common and easy to validate
    Note in particular that there are no ...s in the rule, so all of the
    matched code has to be contiguous

    The semantic patch that makes this output is available
    in scripts/coccinelle/api/alloc/kzalloc-simple.cocci.

    More information about semantic patching is available at
    http://coccinelle.lip6.fr/

    Signed-off-by: Thomas Meyer
    Signed-off-by: Takashi Iwai

    Thomas Meyer
     

06 Aug, 2011

2 commits


05 Aug, 2011

3 commits


04 Aug, 2011

6 commits


03 Aug, 2011

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: asihpi - Clarify adapter index validity check
    ALSA: asihpi - Don't leak firmware if mem alloc fails
    ALSA: rtctimer.c needs module.h
    ASoC: Fix txx9aclc.c build
    ALSA: hdspm - Add firmware revision 0xcc for RME MADI
    ALSA: hdspm - Fix reported external sample rate on RME MADI and MADIface
    ALSA: hdspm - Provide MADI speed mode selector on RME MADI and MADIface
    ALSA: sound/core/pcm_compat.c: adjust array index

    Linus Torvalds
     
  • Cache handling in this driver is broken. The chip has 16-bit registers, yet the
    register numbers also increase by 2 per register, i.e. there are only
    even-numbered registers. The cache in this driver, though, simply increments
    register numbers, so it does need some mapping as seen in
    sgtl5000_restore_regs(), note the '>> 1':

    snd_soc_write(codec, SGTL5000_CHIP_LINREG_CTRL,
    cache[SGTL5000_CHIP_LINREG_CTRL >> 1]);

    That, of course, won't work with snd_soc_update_bits(). (Thus, we won't even
    notice the missing register 0x1c in the default regs which shifted all follwing
    registers to wrong values.) Noticed on the MX28EVK where enabling the regulators
    simply locked up the chip.

    Refactor the routines and use a properly sized default_regs array which matches
    the register layout of the underlying chip, i.e. create a truly flat cache.
    This also saves some code which should make up for the bigger array a little.
    When soc-core will somewhen have another cache type which handles a step size,
    this conversion will also ease the transition.

    Signed-off-by: Wolfram Sang
    Tested-by: Dong Aisheng
    Tested-by: Shawn Guo
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown
    Cc: stable@kernel.org

    Wolfram Sang
     

02 Aug, 2011

2 commits


01 Aug, 2011

1 commit


30 Jul, 2011

2 commits

  • * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (430 commits)
    [media] ir-mce_kbd-decoder: include module.h for its facilities
    [media] ov5642: include module.h for its facilities
    [media] em28xx: Fix DVB-C maxsize for em2884
    [media] tda18271c2dd: Fix saw filter configuration for DVB-C @6MHz
    [media] v4l: mt9v032: Fix Bayer pattern
    [media] V4L: mt9m111: rewrite set_pixfmt
    [media] V4L: mt9m111: fix missing return value check mt9m111_reg_clear
    [media] V4L: initial driver for ov5642 CMOS sensor
    [media] V4L: sh_mobile_ceu_camera: fix Oops when USERPTR mapping fails
    [media] V4L: soc-camera: remove soc-camera bus and devices on it
    [media] V4L: soc-camera: un-export the soc-camera bus
    [media] V4L: sh_mobile_csi2: switch away from using the soc-camera bus notifier
    [media] V4L: add media bus configuration subdev operations
    [media] V4L: soc-camera: group struct field initialisations together
    [media] V4L: soc-camera: remove now unused soc-camera specific PM hooks
    [media] V4L: pxa-camera: switch to using standard PM hooks
    [media] NetUP Dual DVB-T/C CI RF: force card hardware revision by module param
    [media] Don't OOPS if videobuf_dvb_get_frontend return NULL
    [media] NetUP Dual DVB-T/C CI RF: load firmware according card revision
    [media] omap3isp: Support configurable HS/VS polarities
    ...

    Fix up conflicts:
    - arch/arm/mach-omap2/board-rx51-peripherals.c:
    cleanup regulator supply definitions in mach-omap2
    vs
    OMAP3: RX-51: define vdds_csib regulator supply
    - drivers/staging/tm6000/tm6000-alsa.c (trivial)

    Linus Torvalds
     
  • rtctimer.c uses interfaces from linux/module.h, so it should
    include that file. This fixes build errors.

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

    Randy Dunlap
     

29 Jul, 2011

5 commits

  • This does not function correctly in all circumstances so disable the
    periodic updates unconditionally for stable; a future patch will reenable
    where appropriate.

    Signed-off-by: Mark Brown
    Acked-by: Liam Girdwood

    Mark Brown
     
  • 552d1ef6b5a98d7b95959d5b139071e3c90cebf1 [ASoC: core - Optimise and refactor
    pcm_new() to pass only rtd] breaks compilation of txx9aclc.c:

    CC [M] sound/soc/txx9/txx9aclc.o
    /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_new':
    /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: error: 'card' undeclared (first use in this function)
    /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: note: each undeclared identifier is reported only once for each function it appears in
    make[5]: *** [sound/soc/txx9/txx9aclc.o] Error 1

    Fixed by providing a definition for card.

    Signed-off-by: Ralf Baechle
    Signed-off-by: Takashi Iwai

    Ralf Baechle
     
  • Apparently, there are multiple old firmware revisions in the wild for
    the PCI RME MADI cards. Just add them to the list of supported devices
    and treat them like their modern counterparts.

    Signed-off-by: Adrian Knoth
    Signed-off-by: Takashi Iwai

    Adrian Knoth
     
  • In slave mode, the card can only detect the base frequency (32..48kHz)
    on the MADI link (exception: 96k frames), so the real external sample
    rate is this base frequency multiplied by 1, 2 or 4 depending on the
    speed mode.

    This patch enables 64..192kHz sample rates in clock slave mode, which
    failed before due to an alleged sample rate mismatch between the MADI
    link (e.g., 48kHz) and the application in DS/QS mode (e.g., 96kHz,
    192kHz).

    Signed-off-by: Adrian Knoth
    Signed-off-by: Takashi Iwai

    Adrian Knoth
     
  • When running in slave mode (no clock master), there is no way to
    determine the real wirespeed on the MADI link (single/double/quad
    speed). Like physical gear, simply provide the user with a tristate
    switch to select the appropriate format.

    Signed-off-by: Adrian Knoth
    Signed-off-by: Takashi Iwai

    Adrian Knoth
     

28 Jul, 2011

7 commits