29 Nov, 2010

3 commits


28 Nov, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (30 commits)
    ALSA: hda - Use ALC_INIT_DEFAULT for really default initialization
    ASoC: Fix resource reclaim for osk5912
    ASoC: tlv320aic3x - fix variable may be used uninitialized warning
    ASoC: davinci-vcif - fix a memory leak
    ASoC: phycore-ac97: fix resource leak
    ASoC: imx-ssi: fix resource leak
    ASoC: simone: fix resource leak in simone_init error path
    ASoC: sam9g20_wm8731: fix resource leak in at91sam9g20ek_init error path
    ASoC: snd-soc-afeb9260: remove unneeded platform_device_del in error path
    ASoC: pcm030-audio-fabric: fix resource leak in pcm030_fabric_init error path
    ASoC: efika-audio-fabric: fix resource leak in efika_fabric_init error path
    ASoC: Call snd_soc_unregister_dais instead of snd_soc_unregister_dai in sh4_soc_dai_remove
    ASoC: fix SND_PXA2XX_LIB Kconfig warning
    ALSA: hda - Fix ALC660-VD/ALC861-VD capture/playback mixers
    ALSA: HDA: Add an extra DAC for Realtek ALC887-VD
    ASoC: nuc900-ac97: fix a memory leak
    ASoC: Return proper error for omap3pandora_soc_init
    ASoC: wm8961 - clear WM8961_MCLKDIV bit for freq <= 16500000
    ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode
    ALSA: hda - Fix Acer 7730G support
    ...

    Linus Torvalds
     

27 Nov, 2010

14 commits


26 Nov, 2010

7 commits

  • Stephane noticed that because the perf_sw_event() call is inside the
    perf_event_task_sched_out() call it won't get called unless we
    have a per-task counter.

    Reported-by: Stephane Eranian
    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • This leads to a Kconfig dep inversion, x86 selects PERF_EVENT (due to
    a hw_breakpoint dep) but doesn't unconditionally provide
    HAVE_PERF_EVENT.

    (This can cause build failures on M386/M486 kernel .config's.)

    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • In a kvm virt guests, the perf counters are not emulated. Instead they
    return zero on a rdmsrl. The perf nmi handler uses the fact that crossing
    a zero means the counter overflowed (for those counters that do not have
    specific interrupt bits). Therefore on kvm guests, perf will swallow all
    NMIs thinking the counters overflowed.

    This causes problems for subsystems like kgdb which needs NMIs to do its
    magic. This problem was discovered by running kgdb tests.

    The solution is to write garbage into a perf counter during the
    initialization and hopefully reading back the same number. On kvm
    guests, the value will be read back as zero and we disable perf as
    a result.

    Reported-by: Jason Wessel
    Patch-inspired-by: Peter Zijlstra
    Signed-off-by: Don Zickus
    Signed-off-by: Peter Zijlstra
    Cc: Stephane Eranian
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Don Zickus
     
  • It was found that sometimes children of tasks with inherited events had
    one extra event. Eventually it turned out to be due to the list rotation
    no being exclusive with the list iteration in the inheritance code.

    Cure this by temporarily disabling the rotation while we inherit the events.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Cc:
    Signed-off-by: Ingo Molnar

    Thomas Gleixner
     
  • The stubs for CONFIG_INTR_REMAP disabled need to be functions
    instead of values to eliminate build warnings.

    arch/x86/kernel/apic/apic.c: In function 'lapic_suspend':
    arch/x86/kernel/apic/apic.c:2060:3: warning: statement with no effect
    arch/x86/kernel/apic/apic.c: In function 'lapic_resume':
    arch/x86/kernel/apic/apic.c:2137:3: warning: statement with no effect

    Reported-and-Tested-by: Fabio Comolli
    Signed-off-by: Randy Dunlap
    Cc: Suresh Siddha
    Cc: Yinghai Lu
    Cc: David Woodhouse
    Cc: Jesse Barnes
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Randy Dunlap
     
  • In current implementation, there are resources leak in the error path.
    This patch properly reclaims the allocated resources in the error path.

    Also adds a missing clk_put in osk_soc_exit.

    Signed-off-by: Axel Lin
    Acked-by: Jarkko Nikula
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • If aic3x_read failed , val is used uninitialized.
    Fix it by initializing val to 0.

    This patch fixes below compile warning:
    sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_get_gpio':
    sound/soc/codecs/tlv320aic3x.c:1183: warning: 'val' may be used uninitialized in this function
    sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_headset_detected':
    sound/soc/codecs/tlv320aic3x.c:1211: warning: 'val' may be used uninitialized in this function
    sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_button_pressed':
    sound/soc/codecs/tlv320aic3x.c:1219: warning: 'val' may be used uninitialized in this function

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

    Axel Lin
     

25 Nov, 2010

15 commits

  • Signed-off-by: Axel Lin
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • Fix imx_phycore_init() error path and imx_phycore_exit() to properly free
    allocated resources.

    Signed-off-by: Axel Lin
    Acked-by: Sascha Hauer
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • Fix imx_ssi_probe() error path and imx_ssi_remove() to properly free
    allocated resources.

    Signed-off-by: Axel Lin
    Acked-by: Sascha Hauer
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • Fix the error path to properly free allocated resources.

    Signed-off-by: Axel Lin
    Acked-by: Mika Westerberg
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • Fix the error path to properly free allocated resources.

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

    Axel Lin
     
  • Signed-off-by: Axel Lin
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • Add missing platform_device_put() if platform_device_add() failed.

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

    Axel Lin
     
  • Add missing platform_device_put() if platform_device_add() failed.

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

    Axel Lin
     
  • We call snd_soc_register_dais() in sh4_soc_dai_probe(),
    thus we should call snd_soc_unregister_dais() in sh4_soc_dai_remove().

    Otherwise, we got "too many arguments to function 'snd_soc_unregister_dai'"
    error message.

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

    Axel Lin
     
  • Fix following warning observed when SND_PXA2XX_SOC is set and SND_ARM isn't:

    warning: (SND_PXA2XX_AC97 && SOUND && !M68K && SND && SND_ARM && ARCH_PXA ||
    SND_PXA2XX_SOC && SOUND && !M68K && SND && SND_SOC && ARCH_PXA) selects
    SND_PXA2XX_LIB which has unmet direct dependencies (SOUND && !M68K && SND &&
    SND_ARM)

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

    Dmitry Artamonow
     
  • The qdio device indicator is freed before the device is notified that
    the indicator is reset. This sequence contains a race when the freed
    indicator is used by a new device while the reset of the indicator is
    still pending. Do the reset operation before freeing the indicator to
    avoid that potential race.

    Signed-off-by: Jan Glauber
    Signed-off-by: Martin Schwidefsky

    Jan Glauber
     
  • On each machine check all registers are revalidated. The save area for
    the clock comparator however only contains the upper most seven bytes
    of the former contents, if valid.
    Therefore the machine check handler uses a store clock instruction to
    get the current time and writes that to the clock comparator register
    which in turn will generate an immediate timer interrupt.
    However within the lowcore the expected time of the next timer
    interrupt is stored. If the interrupt happens before that time the
    handler won't be called. In turn the clock comparator won't be
    reprogrammed and therefore the interrupt condition stays pending which
    causes an interrupt loop until the expected time is reached.

    On NOHZ machines this can result in unresponsive machines since the
    time of the next expected interrupted can be a couple of days in the
    future.

    To fix this just revalidate the clock comparator register with the
    expected value.
    In addition the special handling for udelay must be changed as well.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • The mixer nids passed to alc_auto_create_input_ctls are wrong: 0x15 is
    a pin, and 0x09 is the ADC on both ALC660-VD/ALC861-VD. Thus with
    current code, input playback volume/switches and input source mixer
    controls are not created, and recording doesn't work. Select correct
    mixers, 0x0b (input playback mixer) and 0x22 (capture source mixer).

    Reference: https://qa.mandriva.com/show_bug.cgi?id=61159

    Signed-off-by: Herton Ronaldo Krzesinski
    Cc:
    Signed-off-by: Takashi Iwai

    Herton Ronaldo Krzesinski
     
  • This patch fixes following warning messages when CONFIG_PM selected.

    In file included from arch/arm/mach-s5pv210/mach-smdkv210.c:34:
    arch/arm/plat-samsung/include/plat/pm.h:104: warning: 'struct sys_device'
    declared inside parameter list
    arch/arm/plat-samsung/include/plat/pm.h:104: warning: its scope is only this
    definition or declaration, which is probably not what you want
    arch/arm/plat-samsung/include/plat/pm.h:105: warning: 'struct sys_device'
    declared inside parameter list

    In file included from arch/arm/mach-s5pv210/mach-smdkc110.c:31:
    arch/arm/plat-samsung/include/plat/pm.h:104: warning: 'struct sys_device'
    declared inside parameter list
    arch/arm/plat-samsung/include/plat/pm.h:104: warning: its scope is only this
    definition or declaration, which is probably not what you want
    arch/arm/plat-samsung/include/plat/pm.h:105: warning: 'struct sys_device'
    declared inside parameter list

    Signed-off-by: Abhilash Kesavan
    Signed-off-by: Sangbeom Kim
    Signed-off-by: Kukjin Kim

    Abhilash Kesavan
     
  • The UART3 submask should be 0x7 (SUBSRCPND[26:24]).

    Signed-off-by: Abhilash Kesavan
    Signed-off-by: Sangbeom Kim
    Signed-off-by: Kukjin Kim

    Abhilash Kesavan