26 Oct, 2012

2 commits


24 Oct, 2012

1 commit


22 Oct, 2012

1 commit


21 Oct, 2012

2 commits

  • snd_miro_probe is a static function that is only called twice in the file
    that defines it. At each call site, its argument is freed using
    snd_card_free. Thus, there is no need for snd_miro_probe to call
    snd_card_free on its argument on any of its error exit paths.

    Because snd_card_free both reads the fields of its argument and kfrees its
    argments, the results of the second snd_card_free should be unpredictable.

    A simplified version of the semantic match that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @r@
    identifier f,free,a;
    parameter list[n] ps;
    type T;
    expression e;
    @@

    f(ps,T a,...) {
    ... when any
    when != a = e
    if(...) { ... free(a); ... return ...; }
    ... when any
    }

    @@
    identifier r.f,r.free;
    expression x,a;
    expression list[r.n] xs;
    @@

    * x = f(xs,a,...);
    if (...) { ... free(a); ... return ...; }
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Takashi Iwai

    Julia Lawall
     
  • By some reason, Toshiba laptop doesn't like the EAPD turned up for the
    headphone pin. Add a fix up code to force to turn down EAPD for NID
    0x15.

    Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=569991

    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

20 Oct, 2012

10 commits


18 Oct, 2012

1 commit


17 Oct, 2012

4 commits


16 Oct, 2012

2 commits

  • Some ux500_msp_i2s patches clashed with:

    b18e93a493626c1446f9788ebd5844d008bbf71c
    ASoC: ux500_msp_i2s: better use devm functions and fix error return code

    ... leaving the driver uncompilable. This patch fixes the
    issues encountered.

    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones
    Signed-off-by: Mark Brown

    Lee Jones
     
  • When of_parse_phandle() is used to find a device node, its
    reference count is incremented by the helper. Once we're
    finished with them, it's our responsibly to ensure they
    are freed in the correct manor.

    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones
    Signed-off-by: Mark Brown

    Lee Jones
     

15 Oct, 2012

3 commits


12 Oct, 2012

1 commit

  • Pull sound updates #2 from Takashi Iwai:
    "This update contains a few cleanup works, regression/stable fixes
    gathered since the last pull request.

    - Clean up with generic hd-audio jack handling code by David
    Henningsson
    - A few regression fixes for standardized HD-audio auto-parser
    - Misc clean-up and small fixes"

    * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: hda - do not detect jack on internal speakers for Realtek
    ALSA: hda - Fix missing beep on ASUS X43U notebook
    ALSA: hda - Remove AZX_DCAPS_POSFIX_COMBO
    ALSA: hda - Warn an allocation for an uninitialized array
    ALSA: hda/cirrus - Add missing init/free of hda_gen_spec
    ALSA: hda - Fix memory leaks at error path in patch_cirrus.c
    ALSA: hda - Add missing hda_gen_spec to struct via_spec
    ALSA: hda - remove "Mic Jack Mode" for headset jacks (Latitude Exx30)
    ALSA: hda - make Cirrus codec use generic unsol event handler
    ALSA: hda - make VIA codec use generic unsol event handler
    ALSA: hda - Remove dead GPIO code for VIA codec
    ALSA: usb-audio: Add TASCAM US122 MKII playback

    Linus Torvalds
     

11 Oct, 2012

2 commits

  • This patch slightly improves ALC calibration process of da9055 codec
    driver by muting Mic PGAs during calibration.

    Signed-off-by: Ashish Chavan
    Signed-off-by: David Dajun Chen
    Signed-off-by: Mark Brown

    Ashish Chavan
     
  • Pull ARM SoC fixes from Olof Johansson:
    "A series of fixes (and in some cases, some cleanups):

    Via Tony Lindgren:
    - A collection of OMAP regression fixes, in particular because
    firmware no longer sets up all pin states before starting the
    kernel.
    - cpufreq fixes for OMAP (Rafael is on vacation and this was
    pre-agreed).
    - A longer series of misc regression fixes and cleanups, warning
    removals, etc for OMAP

    From Arnd Bergmann:
    - A series of warning fixes for various platforms (defconfig builds)

    Misc:
    - A couple of tegra fixes, one for i.MX, some vt8500 fixes, etc."

    * tag 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (73 commits)
    ARM: pxa: armcore: fix PCI PIO warnings
    ARM: integrator: use __iomem pointers for MMIO, part 2
    ARM: assabet: fix bogus warning in get_assabet_scr (again)
    ARM: shmobile: mark shmobile_init_late as __init
    ARM: integrator_cp: fix build failure
    ARM: OMAP4/AM335x: hwmod: fix disable_module regression in hardreset handling
    ARM: OMAP3: fix workaround for EMU clockdomain
    arm/omap: Replace board_ref_clock with enum values
    ARM: OMAP2+: remove duplicated include from board-omap3stalker.c
    arch/arm/plat-omap/omap-pm-noop.c: Remove unecessary semicolon
    arch/arm/mach-omap2: Remove unecessary semicolon
    arch/arm/mach-omap1/devices.c: Remove unecessary semicolon
    ARM/dts: omap5-evm: pinmux configuration for audio
    ARM/dts: Add pinctrl driver entries for omap5
    ARM/dts: omap4-panda: pinmux configuration for audio
    ARM/dts: omap4-sdp: pinmux configuration for audio
    ARM/dts: omap5-evm: Disable unused McBSP3
    ARM/dts: omap4-sdp: Disable unused McBSP3
    ARM/dts: omap4-panda: Disable unused audio IPs
    ARM: OMAP: board-omap4panda: Pin mux configuration for audio needs
    ...

    Linus Torvalds
     

10 Oct, 2012

7 commits


09 Oct, 2012

4 commits

  • Dell Latitude 5x30 and 6x30 series of machines all have
    a single 4-pin headset jack. Enabling line in mode for such jack
    is very confusing (you would only get mono input, and would have to
    use non-standard adapters), so remove the option by default.

    Signed-off-by: David Henningsson
    Signed-off-by: Takashi Iwai

    David Henningsson
     
  • A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA,
    currently it lost original meaning but still has some effects:

    | effect | alternative flags
    -+------------------------+---------------------------------------------
    1| account as reserved_vm | VM_IO
    2| skip in core dump | VM_IO, VM_DONTDUMP
    3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
    4| do not mlock | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP

    This patch removes reserved_vm counter from mm_struct. Seems like nobody
    cares about it, it does not exported into userspace directly, it only
    reduces total_vm showed in proc.

    Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.

    remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP.
    remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP.

    [akpm@linux-foundation.org: drivers/vfio/pci/vfio_pci.c fixup]
    Signed-off-by: Konstantin Khlebnikov
    Cc: Alexander Viro
    Cc: Carsten Otte
    Cc: Chris Metcalf
    Cc: Cyrill Gorcunov
    Cc: Eric Paris
    Cc: H. Peter Anvin
    Cc: Hugh Dickins
    Cc: Ingo Molnar
    Cc: James Morris
    Cc: Jason Baron
    Cc: Kentaro Takeda
    Cc: Matt Helsley
    Cc: Nick Piggin
    Cc: Oleg Nesterov
    Cc: Peter Zijlstra
    Cc: Robert Richter
    Cc: Suresh Siddha
    Cc: Tetsuo Handa
    Cc: Venkatesh Pallipadi
    Acked-by: Linus Torvalds
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Konstantin Khlebnikov
     
  • soc-dmaengine-pcm library need to be part of the snd-soc-core in order to
    be able to compile ASoC as modules when dmaengine is enabled on the platform.

    Signed-off-by: Peter Ujfalusi
    Signed-off-by: Mark Brown

    Peter Ujfalusi
     
  • shdma doesn't support transfer re-scheduling or triggering from callbacks
    or from atomic context. The fsi driver issues DMA transfers from a tasklet
    context, which is a bug. To fix it convert tasklet to a work.

    Reported-by: Do Q.Thang
    Tested-by: Do Q.Thang
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mark Brown
    Cc: stable@vger.kernel.org

    Guennadi Liakhovetski