09 Aug, 2010

1 commit


08 Aug, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (214 commits)
    ALSA: hda - Add pin-fix for HP dc5750
    ALSA: als4000: Fix potentially invalid DMA mode setup
    ALSA: als4000: enable burst mode
    ALSA: hda - Fix initial capsrc selection in patch_alc269()
    ASoC: TWL4030: Capture route runtime DAPM ordering fix
    ALSA: hda - Add PC-beep whitelist for an Intel board
    ALSA: hda - More relax for pending period handling
    ALSA: hda - Define AC_FMT_* constants
    ALSA: hda - Fix beep frequency on IDT 92HD73xx and 92HD71Bxx codecs
    ALSA: hda - Add support for HDMI HBR passthrough
    ALSA: hda - Set Stream Type in Stream Format according to AES0
    ALSA: hda - Fix Thinkpad X300 so SPDIF is not exposed
    ALSA: hda - FIX to not expose SPDIF on Thinkpad X301, since it does not have the ability to use SPDIF
    ASoC: wm9081: fix resource reclaim in wm9081_register error path
    ASoC: wm8978: fix a memory leak if a wm8978_register fail
    ASoC: wm8974: fix a memory leak if another WM8974 is registered
    ASoC: wm8961: fix resource reclaim in wm8961_register error path
    ASoC: wm8955: fix resource reclaim in wm8955_register error path
    ASoC: wm8940: fix a memory leak if wm8940_register return error
    ASoC: wm8904: fix resource reclaim in wm8904_register error path
    ...

    Linus Torvalds
     

07 Aug, 2010

2 commits

  • Call the gpio reset platform function instead of using the flawed
    ac97 functionality of the MPC5200(b)

    From MPC5200B User's Manual:
    "Some AC97 devices goes to a test mode, if the Sync line is high
    during the Res line is low (reset phase). To avoid this behavior the
    Sync line must be also forced to zero during the reset phase. To do
    that, the pin muxing should switch to GPIO mode and the GPIO control
    register should be used to control the output lines."

    Signed-off-by: Eric Millbrandt
    Signed-off-by: Grant Likely

    Eric Millbrandt
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
    pcmcia: avoid buffer overflow in pcmcia_setup_isa_irq
    pcmcia: do not request windows if you don't need to
    pcmcia: insert PCMCIA device resources into resource tree
    pcmcia: export resource information to sysfs
    pcmcia: use struct resource for PCMCIA devices, part 2
    pcmcia: remove memreq_t
    pcmcia: move local definitions out of include/pcmcia/cs.h
    pcmcia: do not use io_req_t when calling pcmcia_request_io()
    pcmcia: do not use io_req_t after call to pcmcia_request_io()
    pcmcia: use struct resource for PCMCIA devices
    pcmcia: clean up cs.h
    pcmcia: use pcmica_{read,write}_config_byte
    pcmcia: remove cs_types.h
    pcmcia: remove unused flag, simplify headers
    pcmcia: remove obsolete CS_EVENT_ definitions
    pcmcia: split up central event handler
    pcmcia: simplify event callback
    pcmcia: remove obsolete ioctl

    Conflicts in:
    - drivers/staging/comedi/drivers/*
    - drivers/staging/wlags49_h2/wl_cs.c
    due to dev_info_t and whitespace changes

    Linus Torvalds
     

06 Aug, 2010

1 commit

  • * 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: (63 commits)
    of/platform: Register of_platform_drivers with an "of:" prefix
    of/address: Clean up function declarations
    of/spi: call of_register_spi_devices() from spi core code
    of: Provide default of_node_to_nid() implementation.
    of/device: Make of_device_make_bus_id() usable by other code.
    of/irq: Fix endian issues in parsing interrupt specifiers
    of: Fix phandle endian issues
    of/flattree: fix of_flat_dt_is_compatible() to match the full compatible string
    of: remove of_default_bus_ids
    of: make of_find_device_by_node generic
    microblaze: remove references to of_device and to_of_device
    sparc: remove references to of_device and to_of_device
    powerpc: remove references to of_device and to_of_device
    of/device: Replace of_device with platform_device in includes and core code
    of/device: Protect against binding of_platform_drivers to non-OF devices
    of: remove asm/of_device.h
    of: remove asm/of_platform.h
    of/platform: remove all of_bus_type and of_platform_bus_type references
    of: Merge of_platform_bus_type with platform_bus_type
    drivercore/of: Add OF style matching to platform bus
    ...

    Fix up trivial conflicts in arch/microblaze/kernel/Makefile due to just
    some obj-y removals by the devicetree branch, while the microblaze
    updates added a new file.

    Linus Torvalds
     

05 Aug, 2010

7 commits

  • Takashi Iwai
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (48 commits)
    Documentation: update broken web addresses.
    fix comment typo "choosed" -> "chosen"
    hostap:hostap_hw.c Fix typo in comment
    Fix spelling contorller -> controller in comments
    Kconfig.debug: FAIL_IO_TIMEOUT: typo Faul -> Fault
    fs/Kconfig: Fix typo Userpace -> Userspace
    Removing dead MACH_U300_BS26
    drivers/infiniband: Remove unnecessary casts of private_data
    fs/ocfs2: Remove unnecessary casts of private_data
    libfc: use ARRAY_SIZE
    scsi: bfa: use ARRAY_SIZE
    drm: i915: use ARRAY_SIZE
    drm: drm_edid: use ARRAY_SIZE
    synclink: use ARRAY_SIZE
    block: cciss: use ARRAY_SIZE
    comment typo fixes: charater => character
    fix comment typos concerning "challenge"
    arm: plat-spear: fix typo in kerneldoc
    reiserfs: typo comment fix
    update email address
    ...

    Linus Torvalds
     
  • The NID 0x11 on HP dc5750 with ALC260 should be a speaker although BIOS
    gives it as a line-out. This patch adds a quirk to fix the pin config
    so that the real line-out is used properly.

    Reference: bnc#624118
    https://bugzilla.novell.com/show_bug.cgi?id=624118

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • My previous patch assumed that the DMA mode (represented by 3 lowest bits of
    ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value 0. If
    that's not the case, it might result in invalid mode to be set.
    This patch fixes this potential problem.

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

    Ondrej Zary
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
    PM / Runtime: Add runtime PM statistics (v3)
    PM / Runtime: Make runtime_status attribute not debug-only (v. 2)
    PM: Do not use dynamically allocated objects in pm_wakeup_event()
    PM / Suspend: Fix ordering of calls in suspend error paths
    PM / Hibernate: Fix snapshot error code path
    PM / Hibernate: Fix hibernation_platform_enter()
    pm_qos: Get rid of the allocation in pm_qos_add_request()
    pm_qos: Reimplement using plists
    plist: Add plist_last
    PM: Make it possible to avoid races between wakeup and system sleep
    PNPACPI: Add support for remote wakeup
    PM: describe kernel policy regarding wakeup defaults (v. 2)
    PM / Hibernate: Fix typos in comments in kernel/power/swap.c

    Linus Torvalds
     

04 Aug, 2010

4 commits

  • Jiri Kosina
     
  • Enable burst mode to prevent dropouts during high PCI bus usage.
    The card is useless in X without this because of dropouts when anything moves
    on the screen (at least with PCI VGA card). Enabling this is also recommended
    by the datasheet (page 48).

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

    Ondrej Zary
     
  • In patch_alc269(), we initialize the primary capsrc so that the device
    works from the beginning. It issues CONNECT_SEL verb no matter which
    widget is although some widget (e.g. 0x23) has no connection selection
    but a mixer, which requires unmuting instead.

    This patch fixes the initialization of capsrc by re-using the code as
    a helper function.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Fix the ordering problem in DAPM domain, when the user
    changes between digital and analog sources during active
    capture (or loopback) scenario.
    Before this patch, when the user changed from analog source
    to digital there were a short time, when the codec enabled
    analog mic bias (2.2 volts) instead of the correct digital
    mic bias (1.8 volts) to the digital microphones.
    This behaviour caused by the former implementation of
    selecting the correct type of bias. This was done at the
    POST_REG event of the DAPM_MUX_E("TXx Capture Route")
    widget.
    By moving the bias type selection as DAPM_SUPPLY and
    connecting it to the corresponding digimic widget the
    problematic situation can be avoided.

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

    Peter Ujfalusi
     

03 Aug, 2010

23 commits

  • An Intel board needs a white-list entry to enable PC-beep.
    Otherwise the driver misdetects (due to bogus BIOS info) and ignores
    the PC-beep on 2.6.35.

    Reported-and-tested-by: Leandro Lucarella
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Since the pending periods are often bogus and take long time until
    actually processed, it often results in a high CPU usage of the hd-audio
    workq. Overall it's better to have low CPU consumption by avoiding a
    too tight loop rather than the wake-up timing accuracy.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Define constants for the HD-audio stream format bits, and replace the
    magic numbers in codes.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Fix HDA beep frequency on IDT 92HD73xx and 92HD71Bxx codecs.
    These codecs use the standard beep frequency calculation although the
    datasheet says it's linear frequency.

    Other IDT/STAC codecs might have the same problem. They should be
    fixed individually later.

    Signed-off-by: Daniel J Blueman
    Signed-off-by: Takashi Iwai

    Daniel J Blueman
     
  • Passing IEC 61937 encapsulated compressed audio at bitrates over 6.144
    Mbps (i.e. more than a single 2-channel 16-bit 192kHz IEC 60958 link)
    over HDMI requires the use of HBR Audio Stream Packets instead of Audio
    Sample Packets.

    Enable HBR mode when the stream has 8 channels and the Non-PCM bit is
    set.

    If the audio converter is not connected to any HBR-capable pins, return
    -EINVAL in prepare().

    Signed-off-by: Anssi Hannula
    Signed-off-by: Takashi Iwai

    Anssi Hannula
     
  • Set bit 15 (Stream Type) of HDA Stream Format to 1 (Non-PCM) when IEC958
    channel status bit 1 (AES0 & 0x02) is set to 1 (non-audio).

    This is a prequisite for HDMI HBR passthrough.

    Signed-off-by: Anssi Hannula
    Signed-off-by: Takashi Iwai

    Anssi Hannula
     
  • Instead of io_req_t, drivers are now requested to fill out
    struct pcmcia_device *p_dev->resource[0,1] for up to two ioport
    ranges. After a call to pcmcia_request_io(), the ports found there
    are reserved, after calling pcmcia_request_configuration(), they may
    be used.

    CC: netdev@vger.kernel.org
    CC: linux-wireless@vger.kernel.org
    CC: linux-ide@vger.kernel.org
    CC: linux-usb@vger.kernel.org
    CC: laforge@gnumonks.org
    CC: linux-mtd@lists.infradead.org
    CC: alsa-devel@alsa-project.org
    CC: linux-serial@vger.kernel.org
    CC: Michael Buesch
    Acked-by: Marcel Holtmann (for drivers/bluetooth/)
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • After pcmcia_request_io(), do not make use of the values stored in
    io_req_t, but instead use those found in struct pcmcia_device->resource[].

    CC: netdev@vger.kernel.org
    CC: linux-wireless@vger.kernel.org
    CC: linux-ide@vger.kernel.org
    CC: linux-usb@vger.kernel.org
    CC: laforge@gnumonks.org
    CC: linux-mtd@lists.infradead.org
    CC: alsa-devel@alsa-project.org
    CC: linux-serial@vger.kernel.org
    Acked-by: Marcel Holtmann (for drivers/bluetooth/)
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • Just as with the X301. The X300 does not have a way to do SPDIF either.
    It does not have a dock connector, nor does it have the SPDIF through
    the headphone jack.

    This patch fixes it so X300 does not show SPDIF, since it cannot do it.

    To add all Lenovo Thinkpads had different codec subsytem IDs:

    X300:
    http://launchpadlibrarian.net/34862838/Card0.Codecs.codec.0.txt

    Signed-off-by: Jerone Young
    Signed-off-by: Takashi Iwai

    Jerone Young
     
  • … ability to use SPDIF

    The Lenovo X301 does not have the ability to connect to a docking
    station to use the SPDIF port. It also does not have the ability to do
    SPDIF though the headphone jack or Display Port jacks.

    This patch fixes it so this is not exposed for the X301 and users do
    think it has the ability to do SPDIF.

    I tested both headphone & display port jacks and it is not there. I have
    tested this patch and it works great.

    Also to add the other Thinkpads have different subsystem codec IDs.
    Here are examples:

    X301:
    http://launchpadlibrarian.net/31561902/Card0.Codecs.codec.0.txt

    X200:
    http://launchpadlibrarian.net/49055036/Card0.Codecs.codec.0.txt

    W500:
    http://launchpadlibrarian.net/36276057/Card0.Codecs.codec.0.txt

    Signed-off-by: Jerone Young <jerone.young@canonical.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>

    Jerone Young
     
  • This patch fixes the error path in wm9081_register to properly free resources.

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

    Axel Lin
     
  • There is a memory leak found if wm8978_register() fail.
    This patch moves the buffer allocate and release
    at the same level to prevent the memory leak.

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

    Axel Lin
     
  • wm8974 is allocated in wm8974_i2c_probe() but is not freed if wm8974_register()
    return -EINVAL (if another WM8974 is registered).

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

    Axel Lin
     
  • This patch fixes the error path in wm8961_register to properly free resources.

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

    Axel Lin
     
  • This patch fixes the error path in wm8955_register to properly free resources.

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

    Axel Lin
     
  • This patch adds checking for wm8940_register return value,
    and does kfree(wm8940) if wm8940_register() fail.

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

    Axel Lin
     
  • This patch includes below fixes:
    1. wm8904 need to be kfreed in wm8904_register() error path before return.
    2. fix the error path for snd_soc_register_codec() fail and
    snd_soc_register_dai() fail to properly free resources.

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

    Axel Lin
     
  • wm8711 is allocated in either wm8711_spi_probe() or wm8711_i2c_probe() but is
    not freed if wm8711_register() return -EINVAL(if another ad1836 is registered).

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

    Axel Lin
     
  • This patch includes below fixes:
    1. If another WM8523 is registered, need to kfree wm8523 before return -EINVAL.
    2. If snd_soc_register_codec failed, goto error path to properly free resources.
    3. Instead of using mixed in-line and goto style cleanup, use goto style error
    handling if snd_soc_register_dai failed.

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

    Axel Lin
     
  • da7210 should be kfreed if da7210_init() return error.
    This patch also fixes the error handing in the case of snd_soc_register_dai()
    fail by adding snd_soc_unregister_codec() in error path.

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

    Axel Lin
     
  • ak4642 should be kfreed if ak4642_init() return error.

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

    Axel Lin
     
  • ad1836 is allocated in ad1836_spi_probe() but is not freed if ad1836_register()
    return -EINVAL (if another ad1836 is registered).

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

    Axel Lin
     
  • The WM8741 is a very high performance stereo DAC designed for audio
    applications such as professional recording systems, A/V receivers and
    high specification CD, DVD and home theatre systems. The device supports
    PCM data input word lengths from 16 to 32-bits and sampling rates up to
    192kHz. The WM8741 also supports DSD bit-stream data format, in both
    direct DSD and PCM-converted DSD modes.

    TODO: Expand wm8741_set_dai_sysclk and rate_constraint members to
    allow for all supported sample rate / Master Clock frequency combinations.
    Fully enable control of supplies.

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

    Ian Lartey
     

02 Aug, 2010

1 commit