18 Nov, 2011

1 commit


17 Nov, 2011

1 commit

  • spec->cur_adc isn't set until cs_capture_pcm_prepare() is called although
    the driver tries to select the connection at init time and at auto-mic
    switch. This results in the access to the widget NID 0, which is
    obviously invalid, also a wrong capture source.

    This patch fixes the issue by issuing the connect-select verb conditionally
    at appropriate places.

    Reported-and-tested-by: Dylan Reid
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

16 Nov, 2011

3 commits

  • It looks more natural and saves two lines of code.

    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     
  • The Intel HDMI chips (ironlake at least) are found to have ~250ms delay
    between the ELD_Valid=1 hotplug event is send and the ELD buffer becomes
    actually readable. During the time the ELD buffer is mysteriously all 0.

    Fix it by scheduling a delayed work to re-read ELD buffer after 300ms.

    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     
  • memset(eld) clears eld->proc_entry which will leak the struct
    snd_info_entry when unloading module.

    Fix it by
    - memset only the fields before eld->eld_buffer
    - set eld->eld_valid to true _after_ all eld fields have been filled

    Cc:
    Cc: Pierre-louis Bossart
    Acked-by: Stephen Warren
    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     

14 Nov, 2011

1 commit


12 Nov, 2011

1 commit

  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    powerpc/kvm: Fix build failure with HV KVM and CBE
    powerpc/ps3: Fix lv1_gpu_attribute hcall
    powerpc/ps3: Fix PS3 repository build warnings
    powerpc/ps3: irq: Remove IRQF_DISABLED
    powerpc/irq: Remove IRQF_DISABLED
    powerpc/numa: NUMA topology support for PowerNV
    powerpc: Add System RAM to /proc/iomem
    powerpc: Add KVM as module to defconfigs
    powerpc/kvm: Fix build with older toolchains
    powerpc, tqm5200: update tqm5200_defconfig to fit for charon board.
    powerpc/5200: add support for charon board

    Linus Torvalds
     

11 Nov, 2011

3 commits


10 Nov, 2011

5 commits

  • We disabled the check of NO_PRESENCE bit of the default pin-config
    in commit f4419172 temporarily. One problem was that the first
    implementation was wrong -- the bit after the shift must be checked.
    However, this would still give many regressions on machines with broken
    BIOS. They set this bit wrongly even on active pins.

    A workaround is to check whether all pins contain this bit. As far as
    I've checked, broken BIOSen set this bit on all pins, no matter whether
    active or not. In such a case, the driver should ignore this bit check.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • When freeing the vmaster master element, we should release slave-links
    properly, not only assumig that slaves will be freed soon later.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • When a virtual mater control is created, the driver looks for slave
    elements from the assigned card instance. But this may include the
    elements of other codecs when multiple codecs are on the same HD-audio
    bus. This works at the first time, but it'll give Oops when it's once
    freed and re-created via reconfig sysfs.

    This patch changes the element-look-up strategy to limit only to the
    mixer elements of the same codec.

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

    Takashi Iwai
     
  • Detection code improved by PCI SSID usage. VM optimization
    now enabled only for known devcices (skip host devices forwarded
    to VM by VT-d or same kind of technology).
    For debug/troubleshooting purposes optimization can be
    forced (on/off) by module parameter: "inside_vm" (boolean).

    Known devices (PCI SSID):
    1af4:1100: Reserved for KVM devices. Note this is not yet
    implemented for KVM's ICH/AC'97 emulation.
    1ab8:xxxx: Parallels ICH/AC'97 emulated sound.

    [ fixed a minor coding-style issue by tiwai]

    Signed-off-by: Konstantin Ozerkov
    Signed-off-by: Denis V. Lunev
    Signed-off-by: Takashi Iwai

    Konstantin Ozerkov
     
  • This is refactoring patch: preparation for add improved detection code.
    Now all detection code placed in one place.

    Signed-off-by: Konstantin Ozerkov
    Signed-off-by: Denis V. Lunev
    Signed-off-by: Takashi Iwai

    Konstantin Ozerkov
     

09 Nov, 2011

5 commits


08 Nov, 2011

4 commits


07 Nov, 2011

2 commits

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: hda - Revert the check of NO_PRESENCE pincfg default bit
    ALSA: hda - Fix a regression for DMA-position check with CA0110
    ALSA: hda - Fix silent output regression with ALC861
    ALSA: control: remove compilation warning on 32-bit
    ALSA: ua101: fix crash when unplugging

    Linus Torvalds
     

06 Nov, 2011

6 commits

  • The implementation on commit [08a1f5eb: ALSA: hda - Check NO_PRESENCE
    pincfg default bit] seems like a mis-interpretation of specification.
    The spec gives the reversed bit definition. But, following the spec
    also causes to change so many existing device configurations, thus we
    can't change it so easily for now. For 3.2-rc1, it's safer to revert
    this check (actually this patch comments out the code).

    We may re-introduced the fixed version once after the wider test-case
    coverages are done.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The regression-fix in 3.1 for the check of DMA-position validity caused
    yet another regression for CA0110. As usual, this hardware seems working
    only with LPIB properly. Adding the appropriate driver-caps bit to force
    LPIB fixes the problem.

    Reported-and-tested-by: Andres Freund
    Cc: [v3.1]
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The 3.1 kernel has a regression for ALC861 codec where no sound output
    is heard with the default setup. It's because the amps in DACs aren't
    properly unmuted while the output mixers are assigned only to pins.

    This patch fixes the missing initialization of DACs when no mixer is
    assigned to them.

    Tested-by: Andrea Iob
    Cc: [v3.1+]
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • This was introduced by 'ALSA: control: add support for ENUMERATED user
    space controls' which adds a u64 variable that gets cast to a pointer:

    sound/core/control.c: In function 'snd_ctl_elem_init_enum_names':
    sound/core/control.c:1089: warning: cast to pointer from integer of different size

    Cast to uintptr_t before casting to pointer to avoid the warning.

    Signed-off-by: Olof Johansson
    [cl: replace long with uintptr_t]
    Signed-off-by: Clemens Ladisch
    Signed-off-by: Takashi Iwai

    Olof Johansson
     
  • If the device is unplugged while running, it is possible for a PCM
    device to be closed after the disconnect callback has returned. This
    means that kill_stream_urb() and disable_iso_interface() would try to
    access already-invalid or freed USB data structures.

    The function free_usb_related_resources() was intended to prevent this,
    but forgot to clear the affected variables.

    Reported-and-tested-by: Olivier Courtay
    Signed-off-by: Clemens Ladisch
    Cc: 2.6.33+
    Signed-off-by: Takashi Iwai

    Clemens Ladisch
     
  • * 'next/cleanup3' of git://git.linaro.org/people/arnd/arm-soc: (79 commits)
    ARM: SAMSUNG: Move fimc plat. device from board files to plat-samsung
    ARM: SAMSUNG: Cleanup resources by using macro
    ARM: SAMSUNG: Cleanup plat-samsung/devs.c and devs.h
    ARM: S5P: To merge devs.c files to one devs.c
    ARM: S3C64XX: To merge devs.c files to one devs.c
    ARM: S3C24XX: To merge s3c24xx devs.c files to one devs.c
    ARM: S5P64X0: Add Power Management support
    ARM: S5P: Make the sleep code common for S5P series SoCs
    ARM: S5P: Make the common S5P PM code conditionally compile
    ARM: SAMSUNG: Move S5P header files to plat-samsung
    ARM: SAMSUNG: Move S3C24XX header files to plat-samsung
    ARM: SAMSUNG: Moving each SoC support header files
    ARM: SAMSUNG: Consolidate plat/pll.h
    ARM: SAMSUNG: Consolidate plat/pwm-clock.h
    ARM: SAMSUNG: Cleanup mach/clkdev.h
    ARM: SAMSUNG: remove sdhci default configuration setup platform helper
    ARM: EXYNOS4: Add FIMC device on SMDKV310 board
    ARM: EXYNOS4: Add header file protection macros
    ARM: EXYNOS4: Add usb ehci device to the SMDKV310
    ARM: S3C2443: Add hsspi-clock from pclk and rename S3C2443 hsspi sclk
    ...

    Fix up conflicts in
    - arch/arm/mach-exynos4/{Kconfig,clock.c}
    ARM_CPU_SUSPEND, various random device tables (gah!)
    - drivers/gpio/Makefile
    sa1100 gpio added, samsung gpio drivers merged

    Linus Torvalds
     

05 Nov, 2011

4 commits

  • * 'next' of git://git.infradead.org/users/vkoul/slave-dma: (63 commits)
    dmaengine: mid_dma: mask_peripheral_interrupt only when dmac is idle
    dmaengine/ep93xx_dma: add module.h include
    pch_dma: Reduce wasting memory
    pch_dma: Fix suspend issue
    dma/timberdale: free_irq() on an error path
    dma: shdma: transfer based runtime PM
    dmaengine: shdma: protect against the IRQ handler
    dmaengine i.MX DMA/SDMA: add missing include of linux/module.h
    dmaengine: delete redundant chan_id and chancnt initialization in dma drivers
    dmaengine/amba-pl08x: Check txd->llis_va before freeing dma_pool
    dmaengine/amba-pl08x: Add support for sg len greater than one for slave transfers
    serial: sh-sci: don't filter on DMA device, use only channel ID
    ARM: SAMSUNG: Remove Samsung specific enum type for dma direction
    ASoC: Samsung: Update DMA interface
    spi/s3c64xx: Merge dma control code
    spi/s3c64xx: Add support DMA engine API
    ARM: SAMSUNG: Remove S3C-PL330-DMA driver
    ARM: S5P64X0: Use generic DMA PL330 driver
    ARM: S5PC100: Use generic DMA PL330 driver
    ARM: S5PV210: Use generic DMA PL330 driver
    ...

    Fix up fairly trivial conflicts in
    - arch/arm/mach-exynos4/{Kconfig,clock.c}
    - arch/arm/mach-s5p64x0/dma.c

    Linus Torvalds
     
  • Occasionally we may see an accessory reported before we have a stable
    impedance for the accessory. If this happens then reread the status in
    order to ensure that the handler can take the appropriate action for the
    status change.

    Signed-off-by: Mark Brown

    Mark Brown
     
  • The field is no longer initialised so this will crash if running on
    wm8958.

    Reported-by: Thomas Abraham
    Signed-off-by: Mark Brown

    Mark Brown
     
  • The field is no longer initialised so this will crash if running on
    wm8958.

    Reported-by: Thomas Abraham
    Signed-off-by: Mark Brown
    Cc: stable@kernel.org

    Mark Brown
     

04 Nov, 2011

4 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (24 commits)
    ALSA: hda/realtek - Skip invalid digital out pins
    ALSA: hda/sigmatel - Automatically retrieve digital I/O widgets
    ALSA: hda - Remove unused variables
    ALSA: hda/realtek - Don't create alt-stream for capture when unnecessary
    ALSA: hda - Add support for 92HD65 / 92HD66 family of codecs
    ALSA: hda - Disable power-widget control for IDT 92HD83/93 as default
    ALSA: hda - Check NO_PRESENCE pincfg default bit
    ASoC: Ensure we always delay for WM8962 FLL when starting from SYSCLK
    ASoC: Ensure the WM8962 oscillator and PLLs start up disabled
    ASoC: Ensure WM8962 PLL registers are reset
    ALSA: intel8x0 - Fix inclusion of kvm_para.h
    ALSA: hda_hwdep: Fix possible buffer overflow
    ASoC: Fix return value of wm5100_gpio_direction_out()
    ASoC: WM8904: Set `invert' bit for Capture Switch
    ASoC: Leave input audio data bit length settings untouched in wm8711_set_dai_fmt
    ASoC: wm8711: Fix wrong mask for setting input audio data bit length select
    ALSA: intel8x0: Improve performance in virtual environment
    ALSA: hdspm - Enable all firmware ranges for PCI MADI/AES cards
    ALSA: hdsp - Correct HDSP_VERSION_BIT constant, thus partly fixing RPM detection
    ALSA: hdspm - Fix MADI channel format in the status ioctl
    ...

    Linus Torvalds
     
  • * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (37 commits)
    MIPS: O32: Provide definition of registers ta0 .. ta3.
    MIPS: perf: Add Octeon support for hardware perf.
    MIPS: perf: Add support for 64-bit perf counters.
    MIPS: perf: Reorganize contents of perf support files.
    MIPS: perf: Cleanup formatting in arch/mips/kernel/perf_event.c
    MIPS: Add accessor macros for 64-bit performance counter registers.
    MIPS: Add probes for more Octeon II CPUs.
    MIPS: Add more CPU identifiers for Octeon II CPUs.
    MIPS: XLR, XLS: Add comment for smp setup
    MIPS: JZ4740: GPIO: Check correct IRQ in demux handler
    MIPS: JZ4740: GPIO: Simplify IRQ demuxer
    MIPS: JZ4740: Use generic irq chip
    MIPS: Alchemy: remove all CONFIG_SOC_AU1??? defines
    MIPS: Alchemy: kill au1xxx.h header
    MIPS: Alchemy: clean DMA code of CONFIG_SOC_AU1??? defines
    MIPS, IDE: Alchem, au1xxx-ide: Remove pb1200/db1200 header dep
    MIPS: Alchemy: Redo PCI as platform driver
    MIPS: Alchemy: more base address cleanup
    MIPS: Alchemy: rewrite USB platform setup.
    MIPS: Alchemy: abstract USB block control register access
    ...

    Fix up trivial conflicts in:
    arch/mips/alchemy/devboards/db1x00/platform.c
    drivers/ide/Kconfig
    drivers/mmc/host/au1xmmc.c
    drivers/video/Kconfig
    sound/mips/Kconfig

    Linus Torvalds
     
  • Takashi Iwai
     
  • Some BIOS report invalid pins as digital output pins. The driver checks
    the connection but it doesn't do it fully correctly, and it leaves some
    undefined value as the audio-out widget, which makes the driver spewing
    warnings. This patch fixes the issue.

    Reference: https://bugzilla.novell.com/show_bug.cgi?id=727348

    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai