1. 22 Jan, 2013 1 commit
  2. 21 Jan, 2013 8 commits
  3. 18 Jan, 2013 16 commits
  4. 17 Jan, 2013 8 commits
    • Takashi Iwai's avatar
      ALSA: hda - Use generic parser for STAC/IDT codec driver · 36c9db7a
      Takashi Iwai authored
      Finally we reached here.  All codecs driver (except for CA0132, which
      has really device-specific requirements) have been converted to use
      the generic parser.
      
      This patch appears bigger than others since it also involves with the
      code shuffling, but mostly the cut-off of parser codes and adapt to
      the generic parser flags.  Most of fixup codecs haven't been changed
      but just removed a few unnecessary codes.
      
      The only missing stuff is the SPDIF mux control.  It'll be added again
      later.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      36c9db7a
    • Takashi Iwai's avatar
      Merge branch 'test/hda-gen-parser' into test/hda-migrate · 8f0fdc09
      Takashi Iwai authored
      * test/hda-gen-parser:
        ALSA: hda - Improve naming rule for primary output
        ALSA: hda - Add PCM capture hook to hda_gen_spec
        ALSA: hda - Record all detected ADCs in hda_gen_spec
        ALSA: hda - Move vmaster TLV parsing to snd_hda_gen_parse_auto_config()
        ALSA: hda - Add input jack mode enum controls to generic parser
        ALSA: hda - Give more comments to hda_gen_spec flags
        ALSA: hda - Add suppress_auto_mute flag to hda_gen_spec
        ALSA: hda - Record the current speaker / LO mute status in hda_gen_spec
        ALSA: hda - Properly call automute/switch hooks at init
      8f0fdc09
    • Takashi Iwai's avatar
      ALSA: hda - Improve naming rule for primary output · 247d85ee
      Takashi Iwai authored
      When the volume or mute control of the primary output is shared with
      other (headphone or speaker) outputs, we shouldn't name it as a
      specific output type but rather name it with the channel name or a
      generic name like "PCM".
      
      Also, this check should be performed individually for the volume and
      the mute controls because some codecs may have shared volumes but
      separate mute controls.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      247d85ee
    • Takashi Iwai's avatar
      ALSA: hda - Add PCM capture hook to hda_gen_spec · ac2e8736
      Takashi Iwai authored
      Not only PCM playback, a hook for PCM capture would be required for
      power controls in codec drivers.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      ac2e8736
    • Takashi Iwai's avatar
      ALSA: hda - Record all detected ADCs in hda_gen_spec · 0ffd534e
      Takashi Iwai authored
      Since the generic parser reduces the ADC list, copy the list of the
      all detected ADCs and keep it.
      
      This list can be later referred by the codec driver for finer power
      controls.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      0ffd534e
    • Takashi Iwai's avatar
      ALSA: hda - Move vmaster TLV parsing to snd_hda_gen_parse_auto_config() · 7a71bbf3
      Takashi Iwai authored
      Add vmaster_tlv[] to hda_gen_spec and store the suggested TLV data
      in snd_hda_gen_parse_auto_config().  This allows the codec driver to
      correct the TLV data (e.g. mute capability) before actually creating
      vmaster instance.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      7a71bbf3
    • Takashi Iwai's avatar
      ALSA: hda - Add input jack mode enum controls to generic parser · 29476558
      Takashi Iwai authored
      Just like the jack mode enum ctls for output jacks, add the support
      for similar enum ctls for input pins to control the bias Vref.
      The new controls will be added when spec->add_in_jack_modes is set
      either by the codec driver or by a hint string.
      
      Note that ground and 100% vrefs are excluded from the list for
      simplicity, currently.  We may add a new flag to allow them, too.
      But I guess it's easier to put a value override in the pinfix in such
      a case.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      29476558
    • Takashi Iwai's avatar
      ALSA: hda - Minor cleanup/fixes for patch_sigmatel.c fixup transition · f6655d52
      Takashi Iwai authored
      - spec->hp_detect has to be overridden in HDA_FIXUP_ACT_PARSE, not in
        PRE_PARSE.
      - Remove err == 0 check but return directly -EINVAL from
        stac92xx_parse_auto_config()
      - Set spec->default_polarity for 92HD71bxx
      - Some code shuffles
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      f6655d52
  5. 16 Jan, 2013 7 commits