1. 08 7月, 2011 3 次提交
    • T
      ALSA: hda - Split quirk codes from patch_realtek.c · 1d045db9
      Takashi Iwai 提交于
      Put the all static quirk codes out of patch_realtek.c, split into the
      file for each codec model.  For controlling the build of quirk codes,
      a new Kconfig, CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS is introduced.
      By setting this off, all quirk codes won't be built, thus you can save
      lots of memory.
      
      The codes in patch_realtek.c are also shuffled and more comments are
      given, but the contents aren't changed.  This is just a refactoring.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      1d045db9
    • T
      ALSA: hda - Use common paser for digital I/O for ALC260 · 0e4a73ae
      Takashi Iwai 提交于
      Avoid open-codes.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      0e4a73ae
    • T
      ALSA: hda - More flexible dynamic-ADC switching for Realtek codecs · 21268961
      Takashi Iwai 提交于
      This patch changes the auto-parser and the auto-mic handling codes to
      allow more flexible dynamic ADC-switching with Realtek codecs.
      
      In the new code, the following strategy is taken:
      
      - When a cap-src can't handle all input-sources, either skip it, or
        switch to the ADC-switching mode.  In ADC-switching mode, like the
        former dual-ADC mode for ALC275, it changes ADC on the fly according
        to the current input source.
      - When auto-mic is possible, always assign imux.  If the mic pins are
        set statically via a quirk, rebuild imux according to the pins.
        In the auto-mic mode, the driver always changes the imux (although
        the imux isn't exposed as a mixer element).
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      21268961
  2. 07 7月, 2011 11 次提交
  3. 06 7月, 2011 1 次提交
  4. 04 7月, 2011 5 次提交
  5. 01 7月, 2011 2 次提交
  6. 30 6月, 2011 3 次提交
    • T
      ALSA: hda - Re-implementation of VIA Independent-HP sharing with side stream · 25250505
      Takashi Iwai 提交于
      This patch adds the re-implementation of Independent-HP mode in the
      case where the DAC is shared between HP and side-channel streams.
      Now the driver tries to parse the output-path using the pre-parsed
      side-channel DAC for the independent HP output, too.
      
      When a playback PCM stream is opened with this shared mode, the
      Independent-HP mixer switch can't be changed for avoiding the conflict,
      thus it returns -EBUSY error.
      
      One remaining unintuitive issue is that the DAC volume is still
      controlled as "Side" volume although it's shared by both independent-HP
      and side streams.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      25250505
    • T
      ALSA: hdspm - Fix compile warnings with PPC · 286bed0f
      Takashi Iwai 提交于
      The char can be unsigned on some architectures.  Since the code checks
      the negative values, they should be declared as signed char explicitly.
      
        sound/pci/rme9652/hdspm.c:5449: warning: comparison is always false due to limited range of data type
        sound/pci/rme9652/hdspm.c:5462: warning: comparison is always false due to limited range of data type
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      286bed0f
    • T
      ALSA: cs5535 - Fix invalid big-endian conversions · 71276410
      Takashi Iwai 提交于
      Fix the wrongly converted short values:
        sound/pci/cs5535audio/cs5535audio_pcm.c:152: warning: large integer implicitly truncated to unsigned type
        sound/pci/cs5535audio/cs5535audio_pcm.c:160: warning: large integer implicitly truncated to unsigned type
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      71276410
  7. 29 6月, 2011 6 次提交
  8. 28 6月, 2011 4 次提交
  9. 27 6月, 2011 5 次提交
    • T
      ALSA: hda - More volume-init fixes for ALC267 codec · 4f574b7b
      Takashi Iwai 提交于
      More similar fixes like previous commits: handle the exceptional case
      like ALC267 where no volume amp is found in ADC widget but in the
      capsrc widget instead.
      
      Also minor checks for avoiding possible erros: no connection-select
      when the pin has a single selection, and add beep verbs only when the
      0x1d is used for beep.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4f574b7b
    • T
      ALSA: hda - Fix volume-init for ALC259 with invalid widget caps · 7ec9c6cc
      Takashi Iwai 提交于
      ALC259 seems to provide an invalid widget capability for the input-src
      selector widget.  The widget shows the input-amp while it's a selector,
      and this confuses the current ALC882 initialization code that is used
      for ALC259, too.  For fixing this, check the amp capability and handle
      the connection selection individually.
      
      Also, ALC259 has no mute bit in DAC volume, so we need to initialize
      it as ZERO instead of MUTE.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7ec9c6cc
    • T
      ALSA: hda - Fix volume-init of ALC299 & co · 050ea753
      Takashi Iwai 提交于
      ALC269 and compatible codecs have the output volume in DACs, thus we
      can't use the ALC880's code as is.  Fixed by checking the amp caps and
      picking up the right widget for initialization.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      050ea753
    • T
      ALSA: hda - Simplify EAPD control in patch_realtek.c · 39fa84e9
      Takashi Iwai 提交于
      Look through the known NIDs that may have EAPD capabilities and turn
      on/off them appropriately instead of checking the individual vendor ids.
      
      This will also avoid the forgotten entries of newly added codec ids
      in future.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      39fa84e9
    • T
      ALSA: hda - Fix auto-init of output volumes of Realtek codecs · 6d86b4fb
      Takashi Iwai 提交于
      Fix the regression introduced by the commit
      1f0f4b80
        ALSA: hda - Reduce static init verbs for Realtek auto-parsers
      
      The input amps of mixer widgets should be unmuted as default (as
      usually they have no assigned mixer switches).
      
      More fixes in this commit are, however, for ALC260: ALC260 codec can
      have multiple output mixers connnected to a single DAC althouh the
      driver didn't pick up them properly.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      6d86b4fb