30 May, 2010

9 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (26 commits)
    ALSA: snd-usb-caiaq: Bump version number to 1.3.21
    ALSA: Revert "ALSA: snd-usb-caiaq: Set default input mode of A4DJ"
    ALSA: snd-usb-caiaq: Simplify single case to an 'if'
    ALSA: snd-usb-caiaq: Restore 'Control vinyl' input mode on A4DJ
    ALSA: hda: Use LPIB for a Shuttle device
    ALSA: hda: Add support for another Lenovo ThinkPad Edge in conexant codec
    ALSA: hda: Use LPIB for Sony VPCS11V9E
    ALSA: usb-audio: fix feature unit parser for UAC2
    ALSA: asihpi - Minor code cleanup
    ALSA: asihpi - Add support for new ASI8800 family
    ALSA: asihpi - Fix bug preventing outstream_write preload from happening
    ALSA: asihpi - Fix imbalanced lock path in hw_message
    ALSA: asihpi - Remove support for old ASI8800 family
    ALSA: asihpi - Add hd radio blend functions
    ALSA: asihpi - Remove unused io map functions
    ALSA: usb-audio: add support for UAC2 pitch control
    ALSA: usb-audio: parse UAC2 endpoint descriptors correctly
    ALSA: usb-audio: fix return values
    ALSA: usb-audio: parse more format descriptors with structs
    sound: Add missing spin_unlock
    ...

    Linus Torvalds
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • Acked-by: Daniel Mack
    Signed-off-by: Mark Hills
    Signed-off-by: Takashi Iwai

    Mark Hills
     
  • Do not explicity set the default input mode. Use the hardware default
    of mode 0 ('Control vinyl'), which is now available.

    This reverts commit e3ca4c9.

    Acked-by: Daniel Mack
    Signed-off-by: Mark Hills
    Signed-off-by: Takashi Iwai

    Mark Hills
     
  • After removing code, only one case remains. So use an 'if' instead.

    Acked-by: Daniel Mack
    Signed-off-by: Mark Hills
    Signed-off-by: Takashi Iwai

    Mark Hills
     
  • This feature was undocumented on early A4DJ units. It is indicated
    by lighting both the 'line' and 'phono' lamps at the same time.
    Newer units document this and the newer Windows drivers enable this
    for all units, so restore the functionality.

    This patch simplifies the code and changes the mode mapping to match
    the A8DJ, favouring simpler code and consistency over keeping the
    existing mapping.

    Both 'Control vinyl' and 'Phono' input modes enable the hardware
    preamp. The difference is the input impedance.

    This reverts commit 9a9527e.

    Acked-by: Daniel Mack
    Signed-off-by: Mark Hills
    Signed-off-by: Takashi Iwai

    Mark Hills
     
  • BugLink: https://launchpad.net/bugs/551949

    Symptom: On the reporter's Shuttle device, using PulseAudio in Ubuntu
    10.04 LTS results in "popping clicking" audio with the PA crashing
    shortly thereafter.

    Test case: Using Ubuntu 10.04 LTS (Linux 2.6.32.12), Linux 2.6.33, or
    Linux 2.6.34, adjust the HDA device's volume with PulseAudio.

    Resolution: add SSID for this machine to the position_fix quirk table,
    explicitly specifying the LPIB method.

    Reported-and-Tested-By: Christian Mehlis
    Cc:
    Signed-off-by: Daniel T Chen
    Signed-off-by: Takashi Iwai

    Daniel T Chen
     

28 May, 2010

3 commits

  • On a Thinkpad Edge 13 "01972NG" I had the problem that speakers played
    sound although headphones were plugged in. Using model=ideapad with
    latest alsa-git kernel fixed this. So adding this quirk to use ideapad
    for another Thinkpad Edge variant seems sensible.

    Cc: Jerone Young
    Signed-off-by: Andreas Herrmann
    Signed-off-by: Takashi Iwai

    Andreas Herrmann
     
  • BugLink: https://launchpad.net/bugs/586347

    Symptom: On the Sony VPCS11V9E, using GStreamer-based applications with
    PulseAudio in Ubuntu 10.04 LTS results in stuttering audio. It appears
    to worsen with increased I/O.

    Test case: use Rhythmbox under increased I/O pressure. This symptom is
    reproducible in the current daily stable alsa-driver snapshots (at least
    up until 21 May 2010; later snapshots fail to build from source due to
    missing preprocessor directives when compiled against 2.6.32).

    Resolution: add SSID for this machine to the position_fix quirk table,
    explicitly specifying the LPIB method.

    Reported-and-Tested-By: Lauri Kainulainen
    Cc:
    Signed-off-by: Daniel T Chen
    Signed-off-by: Takashi Iwai

    Daniel T Chen
     
  • Fix a small off-by-one bug which causes the feature unit to announce a
    wrong number of channels. This leads to illegal requests sent to the
    firmware eventually.

    Signed-off-by: Daniel Mack
    Signed-off-by: Takashi Iwai

    Daniel Mack
     

27 May, 2010

14 commits


26 May, 2010

11 commits


25 May, 2010

3 commits

  • BugLink: https://launchpad.net/bugs/576160

    Symptom: Currently (2.6.32.12) the Dell M1730 uses the 3stack model
    quirk. Unfortunately this means that capture is not functional out-
    of-the-box despite ensuring that capture settings are unmuted and
    raised fully.

    Test case: boot from Ubuntu 10.04 LTS live cd; capture does not
    work.

    Resolution: Correct the model quirk for Dell M1730 to rely on the
    BIOS configuration.

    This patch also trivially sorts the quirk into the correct section
    based on the comments.

    Reported-and-Tested-By:
    Tested-By: Daren Hayward
    Tested-By: Tobias Krais
    Cc:
    Signed-off-by: Daniel T Chen
    Signed-off-by: Takashi Iwai

    Daniel T Chen
     
  • First issue:
    With the original patch, I've noticed by unmuting the mic
    (and even having it muted), there is a distorted("Noise")
    coming from the internal speakers, even when the headphones are plugged in.
    What my finding's revealed is:

    /* Mic (rear) pin: input vref at 80% */
    {0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
    {0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE},

    From the original patch. Looking at codec#0 0x18/0x1a is listed as:

    Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
    Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
    Amp-In vals: [0x00 0x00]
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x00 0x00]
    Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
    Pin Default 0x90100141: [Fixed] Speaker at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x1
    Misc = NO_PRESENCE
    Pin-ctls: 0x41: OUT VREF_50
    Unsolicited: tag=00, enabled=0
    Connection: 5
    0x0c* 0x0d 0x0e 0x0f 0x26

    seems this Node is listed as: [Fixed] Speaker while 0x15

    Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
    Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
    Amp-In vals: [0x00 0x00]
    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
    Amp-Out vals: [0x80 0x80]
    Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
    Pin Default 0x018b3020: [Jack] Line In at Ext Rear
    Conn = Comb, Color = Blue
    DefAssociation = 0x2, Sequence = 0x0
    Pin-ctls: 0x01: VREF_50
    Unsolicited: tag=00, enabled=0
    Connection: 5
    0x0c 0x0d* 0x0e 0x0f 0x26

    is [Jack] Line In at Ext Rear.
    (looking at the other apple products as examples
    I came up with the fix below).

    Second issue:
    alc885_mbp_4ch_modes
    The original patch does a good job with the
    HP pin automute function, but from what I noticed is I would have to manually
    change the channel form 2 to 4 after plugging the headphones in.
    And not to mention having odd moments to where I was jamming out
    with the headphones on, then later realized I had sound blasting out
    of the speakers as well. My findings revealed that changing
    alc885_mbp_4ch_modes to alc885_mba21_ch_modes and setting
    - spec->autocfg.speaker_pins[0] = 0x15;
    + spec->autocfg.speaker_pins[0] = 0x18;
    gets the automute function when the headphones plugged in working
    flawlessly(and the no need to manually change the channel number
    afterwards).

    Third issue:
    alc885_imac91_mixer
    There probably doesnt need to be anything changed with this
    (esspecially if your one to like lots of sliders),but my findings
    revealed that mac osx only has a master on the top right,
    another switch on itunes, and then a slider for the mic.

    So the changes I did below try and mimic osx as much as possible
    (only thing I had an issue with is just having one mute switch
    on the master, instead of having two(still investigating)).

    fourth issue:
    alc882_capture_source
    I endeded up creating alc889A_imac91_capture_source()
    only because looking at alc882_capture_source I see
    that the mic is set to 0x1 while this works, I also noticed
    that adding 0x1 and 0x01 and testing that 0x1 somehow
    stops working, and 0x01 works(so I figured 0x01 was more
    of the alpha of the numbers(still need to figure out
    where that valuse is)). In any case the microphone
    does work with the original, and with the below patch, but both
    still record not as clean(lots of "Noise", which I would like to
    look into too).
    Note: using alsamixer -Va reveals the capture switches.

    Signed-off-by: Justin P. Mattock
    Signed-off-by: Takashi Iwai

    Justin P. Mattock
     
  • BugLink: https://launchpad.net/bugs/549560

    Symptom: on a significant number of hardware, booting from a live cd
    results in capture working correctly, but once the distribution is
    installed, booting from the install results in capture not working.

    Test case: boot from Ubuntu 10.04 LTS live cd; capture works correctly.
    Install to HD and reboot; capture does not work. Reproduced with 2.6.32
    mainline build (vanilla kernel.org compile)

    Resolution: add SSID for Toshiba A100-259 to the position_fix quirk
    table, explicitly specifying the LPIB method.

    I'll be sending additional patches for these SSIDs as bug reports are
    confirmed.

    This patch also trivially sorts the quirk table in ascending order by
    subsystem vendor.

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

    Daniel T Chen