1. 25 5月, 2010 1 次提交
    • J
      ALSA: hda - iMac9,1 sound fixes · b7cccc52
      Justin P. Mattock 提交于
      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: NJustin P. Mattock <justinmattock@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b7cccc52
  2. 20 5月, 2010 1 次提交
  3. 10 5月, 2010 1 次提交
  4. 06 5月, 2010 1 次提交
  5. 22 4月, 2010 1 次提交
  6. 15 4月, 2010 1 次提交
  7. 12 4月, 2010 2 次提交
  8. 09 4月, 2010 3 次提交
  9. 07 4月, 2010 3 次提交
  10. 06 4月, 2010 2 次提交
  11. 31 3月, 2010 2 次提交
  12. 30 3月, 2010 1 次提交
  13. 29 3月, 2010 2 次提交
    • T
      ALSA: hda - Fix ADC/MUX assignment of ALC269 codec · 6694635d
      Takashi Iwai 提交于
      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: NTakashi Iwai <tiwai@suse.de>
      6694635d
    • T
      ALSA: hda - Fix invalid bit values passed to snd_hda_codec_amp_stereo() · 5dbd5ec6
      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: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5dbd5ec6
  14. 25 3月, 2010 1 次提交
  15. 23 3月, 2010 1 次提交
  16. 22 3月, 2010 1 次提交
  17. 19 3月, 2010 2 次提交
  18. 16 3月, 2010 1 次提交
  19. 15 3月, 2010 2 次提交
  20. 08 3月, 2010 2 次提交
    • T
      ALSA: hda - Fix input source elements of secondary ADCs on Realtek · 5311114d
      Takashi Iwai 提交于
      Since alc_auto_create_input_ctls() doesn't set the elements for the
      secondary ADCs, "Input Source" elemtns for these also get empty, resulting
      in buggy outputs of alsactl like:
      	control.14 {
      		comment.access 'read write'
      		comment.type ENUMERATED
      		comment.count 1
      		iface MIXER
      		name 'Input Source'
      		index 1
      		value 0
      	}
      
      This patch fixes alc_mux_enum_*() (and others) to fall back to the
      first entry if the secondary input mux is empty.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Cc: <stable@kernel.org>
      5311114d
    • T
      ALSA: hda - Fix wrong model range check for ALC268 · 50ae0aa8
      Takashi Iwai 提交于
      Fix a wrong value passed to snd_hda_check_board_codec_sid_config() as
      the upper-limit in parse_alc268(), so that any wrong value can't be
      passed.
      
      So far, no bogus value was set in the quirk entries, so this won't give
      any behavioral changes.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      50ae0aa8
  21. 05 3月, 2010 1 次提交
  22. 02 3月, 2010 1 次提交
  23. 25 2月, 2010 2 次提交
  24. 23 2月, 2010 2 次提交
  25. 22 2月, 2010 2 次提交
  26. 04 2月, 2010 1 次提交