05 May, 2010

6 commits


23 Apr, 2010

4 commits


22 Apr, 2010

4 commits

  • Ignore spurious HV interrupts during suspend / resume, this avoids
    mistaking them for a mute button press. This is not very pretty but
    it seems the only way to fix the master volume control gets muted
    after suspend issue I'm seeing. Note that the es1968 driver is doing
    exactly the same.

    Signed-off-by: Hans de Goede
    Cc:
    Signed-off-by: Takashi Iwai

    Hans de Goede
     
  • Without this quirk sound stops working after suspend resume. With this quirk,
    one still needs to manually unmute the master volume control after a suspend /
    / resume cycle. That is fixed in another patch in this set.

    Note that this patch was submitted to the alsa bug tracker a long time ago:
    https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4319

    Signed-off-by: Hans de Goede
    CC:
    Signed-off-by: Takashi Iwai

    Hans de Goede
     
  • BugLink: https://launchpad.net/bugs/567494

    The OR has verified that the existing model quirk, ALC880_UNIWILL,
    is insufficient for audible playback and capture by default. Instead,
    the ALC880_F1734 model quirk needs to be used.

    This change is necessary for both 2.6.32.11 and 2.6.33.2.

    Reported-by: Arnaud Malpeyre
    Tested-by: Arnaud Malpeyre
    Cc:
    Signed-off-by: Daniel T Chen
    Signed-off-by: Takashi Iwai

    Daniel T Chen
     
  • BugLink: https://launchpad.net/bugs/553002

    The OR has verified that the dell-m6 model quirk is necessary for audio
    to be audible by default on the Dell Studio XPS 1645.

    This change is necessary for 2.6.32.11 and 2.6.33.2 alike.

    Reported-by: Robert Chambers
    Tested-by: Robert Chambers
    Cc:
    Signed-off-by: Daniel T Chen
    Signed-off-by: Takashi Iwai

    Daniel T Chen
     

20 Apr, 2010

1 commit

  • When HP laptop with AD1981 codec is suspended and the docking-station
    is connected before the resume, the outputs get confused, and wrongly
    routed still to the speaker. This is because of a change in 2.6.34-rc1
    ea52bf260ecbb175339af3178c15788df21b7516
    ALSA: hda: Add powerdown for Analog Devices HDA codecs

    The problem was the added resume callback that doesn't consider the
    modified init hook. The fix is simply remove the resume callback here
    and make the resume normally. This doesn't change any behavior intended
    in the commit above (for shutting down the sound at suspend) but only
    fixes the resume.

    Reported-and-tested-by: Frans Pop
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

16 Apr, 2010

1 commit


15 Apr, 2010

2 commits

  • The Biostar mobo seems to give a wrong DMA position, resulting in
    stuttering or skipping sounds on 2.6.34. Since the commit
    7b3a177b0d4f92b3431b8dca777313a07533a710, "ALSA: pcm_lib: fix "something
    must be really wrong" condition", makes the position check more strictly,
    the DMA position problem is revealed more clearly now.

    The fix is to use only LPIB for obtaining the position, i.e. passing
    position_fix=1. This patch adds a static quirk to achieve it as default.

    Reported-by: Frank Griffin
    Cc: Eric Piel
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Added the matching model for Clevo laptop M570U.

    Signed-off-by: Joerg Schirottke
    Tested-by: Maximilian Gerhard
    Cc:
    Signed-off-by: Takashi Iwai

    Joerg Schirottke
     

14 Apr, 2010

2 commits


12 Apr, 2010

2 commits


09 Apr, 2010

3 commits


07 Apr, 2010

5 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: mixart: range checking proc file
    ALSA: hda - Fix a wrong array range check in patch_realtek.c
    ALSA: ASoC: move dma_data from snd_soc_dai to snd_soc_pcm_stream
    ALSA: hda - Enable amplifiers on Acer Inspire 6530G
    ASoC: Only do WM8994 bias off transition from standby
    ASoC: Don't use DCS_DATAPATH_BUSY for WM hubs devices
    ASoC: Don't do runtime wm_hubs DC servo updates if using offset correction
    ASoC: Support second DC servo readback method for wm_hubs
    ASoC: Avoid wraparound in wm_hubs DC servo correction
    ALSA: echoaudio - Eliminate use after free
    ALSA: i2c: cleanup: change parameter to pointer
    ALSA: hda - Add MSI blacklist for Aopen MZ915-M
    ASoC: OMAP: Fix capture pointer handling for OMAP1510 to work correctly with recent ALSA PCM code
    ALSA: hda - Update document about MSI and interrupts
    ALSA: hda: Fix 0 dB offset for Lenovo Thinkpad models using AD1981
    ALSA: hda - Add missing printk argument in previous patch
    ASoC: Fix passing platform_data to ac97 bus users and fix a leak
    ALSA: hda - Fix ADC/MUX assignment of ALC269 codec
    ALSA: hda - Fix invalid bit values passed to snd_hda_codec_amp_stereo()
    ASoC: wm8994: playback => capture

    Linus Torvalds
     
  • This adds support for the Medion WIM2160 soundcard.
    There's no PCI quirk added because it has the same PCI id as the
    Medion MD2.

    Signed-off-by: Maurus Cuelenaere
    Signed-off-by: Takashi Iwai

    Maurus Cuelenaere
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • The original code doesn't take into consideration that the value of
    MIXART_BA0_SIZE - pos can be less than zero which would lead to a large
    unsigned value for "count".

    Also I moved the check that read size is a multiple of 4 bytes below
    the code that adjusts "count".

    Signed-off-by: Dan Carpenter
    Cc:
    Acked-by: Linus Torvalds
    Signed-off-by: Takashi Iwai

    Dan Carpenter
     

06 Apr, 2010

2 commits

  • The commit 6a4f2ccb467e00281470cde2dee08fe5ecde62d1 introduced a wrong
    comparision for the array range check, which effectively skips the whole
    initialization of DAC connections. Fixed now.

    Reference: bko#15689
    https://bugzilla.kernel.org/show_bug.cgi?id=15689

    Reported-by: Adrian Ulrich
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • After more tests it appears that EAPD needs to be enabled
    on both the 0x14 and 0x15 NIDs to enable the main speaker
    and headphone amplifiers. The maximum volume setting is
    now equal to what the machine achieves under other operating
    systems.
    Disabling Front or LFE playback triggers EAPD and disables
    the amplifier. As such, these two playback switches have
    been removed from the mixer.

    Signed-off-by: Tony Vroon
    Signed-off-by: Takashi Iwai

    Tony Vroon
     

04 Apr, 2010

2 commits


31 Mar, 2010

1 commit


30 Mar, 2010

2 commits

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     
  • Signed-off-by: Takashi Iwai

    Takashi Iwai
     

29 Mar, 2010

3 commits

  • ALC269 codec has a few different variants, and each of them may have
    different ADC and MUX widgets. For example, one model has ADC 0x08
    with MUX 0x23 while others has ADC 0x09 or ADC 0x07 with MUX 022 or
    0x24. The difference of ADC appears usually as the capability of
    the digital mic pin (0x12), and the current driver sometimes misses
    the internal mic pin due to the mismatching ADC.

    This patch adds a bit more clever way to find the matching ADC instead
    of the static list. Now the driver checks all active input pins and
    fills only the ADC/MUX's that contain all of them.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The mask and value parameters passed to snd_hda_codec_amp_stereo()
    should be 8-bit values for mute and volume. Passing AMP_IN_MUTE() is
    wrong, which is found in many places in patch_realtek.c as a left-over
    from the conversion to snd_hda_codec_amp_stereo().

    Reported-by: Dan Carpenter
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Takashi Iwai