1. 03 7月, 2012 1 次提交
  2. 26 6月, 2012 1 次提交
  3. 15 5月, 2012 4 次提交
  4. 09 5月, 2012 2 次提交
  5. 20 4月, 2012 2 次提交
    • T
      ALSA: hda - Add snd_hda_get_default_vref() helper function · 4740860b
      Takashi Iwai 提交于
      Add a new helper function to guess the default VREF pin control bits
      for mic in.  This can be used to set the pin control value safely
      matching with the actual pin capabilities.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4740860b
    • T
      ALSA: hda - Introduce snd_hda_set_pin_ctl*() helper functions · cdd03ced
      Takashi Iwai 提交于
      For setting the pin-control values more safely to match with the
      actual pin capability bits, a copule of new helper functions,
      snd_hda_set_pin_ctl() and snd_hda_set_pin_ctl_cache(), are
      introduced.  These are simple replacement of the codec verb write with
      AC_VERB_SET_PIN_WIDGET but do more sanity checks and filter out
      superfluous pin-control bits if they don't fit with the corresponding
      pin capabilities.
      
      Some codecs are screwed up or ignore the command when such a wrong bit
      is set.  These helpers will avoid such secret errors.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      cdd03ced
  6. 19 4月, 2012 1 次提交
  7. 16 3月, 2012 1 次提交
  8. 14 3月, 2012 1 次提交
  9. 13 3月, 2012 2 次提交
  10. 12 3月, 2012 1 次提交
    • T
      ALSA: hda - Rewrite the mute-LED hook with vmaster hook in patch_sigmatel.c · 2faa3bf1
      Takashi Iwai 提交于
      The mute-LED is controlled in patch_sigmatel.c by (ab-)using the
      powersave hook.  This can be now rewritten with the vmaster hook
      instead, which is much simpler and can work even without
      CONFIG_SND_HDA_POWER_SAVE kconfig.
      
      A drawback is that the mute-LED corresponds _only_ to the Master mixer
      switch instead of checking the whole DACs.  But usually this shouldn't
      be a big problem as PA enables the mixer elements accordingly.
      
      Also, this patch changes the code to create vmaster always even on
      STAC9200 and STAC925x.  The former "Master" on these chips are renamed
      as "PCM" now.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2faa3bf1
  11. 29 2月, 2012 1 次提交
  12. 28 2月, 2012 1 次提交
  13. 09 2月, 2012 1 次提交
  14. 03 2月, 2012 1 次提交
    • T
      ALSA: hda - Add suffix argument to snd_hda_add_vmaster() · 9322ca54
      Takashi Iwai 提交于
      In most cases, the slave strings for vmaster are identical between
      volumes and switches except for "xxx Volume" and "xxx Switch" suffix.
      Now snd_hda_add_vmaster() takes the optional suffix argument so that
      each string can be composed with the given suffix, and we can share the
      slave name strings in both volume and switch calls nicely.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9322ca54
  15. 25 1月, 2012 1 次提交
  16. 24 1月, 2012 1 次提交
    • T
      ALSA: hda - Fix silent outputs from docking-station jacks of Dell laptops · b4ead019
      Takashi Iwai 提交于
      The recent change of the power-widget handling for IDT codecs caused
      the silent output from the docking-station line-out jack.  This was
      partially fixed by the commit f2cbba76
      "ALSA: hda - Fix the lost power-setup of seconary pins after PM resume".
      But the line-out on the docking-station is still silent when booted
      with the jack plugged even by this fix.
      
      The remainig bug is that the power-widget is set off in stac92xx_init()
      because the pins in cfg->line_out_pins[] aren't checked there properly
      but only hp_pins[] are checked in is_nid_hp_pin().
      
      This patch fixes the problem by checking both HP and line-out pins
      and leaving the power-map correctly.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42637
      
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b4ead019
  17. 20 1月, 2012 1 次提交
  18. 16 1月, 2012 1 次提交
  19. 11 1月, 2012 1 次提交
  20. 14 12月, 2011 1 次提交
  21. 13 12月, 2011 2 次提交
  22. 06 12月, 2011 2 次提交
  23. 02 12月, 2011 1 次提交
    • T
      ALSA: hda - Integrate input-jack stuff into kctl-jack · 31ef2257
      Takashi Iwai 提交于
      Instead of managing input-jack stuff separately, call all stuff inside
      the kctl-jack creation, deletion and report.  The caller no longer needs
      to care about input-jack.
      
      The better integration between input-jack and kctl-jack should be done
      in the upper layer in near future, but for now, it's implemented locally
      for more tests.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      31ef2257
  24. 01 12月, 2011 1 次提交
  25. 29 11月, 2011 1 次提交
  26. 19 11月, 2011 1 次提交
  27. 16 11月, 2011 6 次提交
    • T
      ALSA: hda - Give more unique names by snd_hda_get_pin_label() · 201e06ff
      Takashi Iwai 提交于
      The function now gives more unique names for the output pins by adding
      some prefix and suffix for the location and the channels.  Otherwise, it
      can pass the index number.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      201e06ff
    • T
      ALSA: hda - Merge input-jack helpers to hda_jack.c · aad37dbd
      Takashi Iwai 提交于
      We can use the very same table in hda_jack.c for managing the list for
      input-jack elements, too.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      aad37dbd
    • T
      ALSA: hda - Manage unsol tags in hda_jack.c · 3a93897e
      Takashi Iwai 提交于
      Manage the tags assigned for unsolicited events dynamically together
      with the jack-detection routines.  Basically this is almost same as what
      we've done in patch_sigmatel.c.  Assign the new tag number for each new
      unsol event, associate with the given NID and the action type, etc.
      
      With this change, now all pins looked over in snd_hda_jack_add_kctls()
      are actually enabled for detection now even if the pins aren't used for
      jack-retasking by the driver.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3a93897e
    • T
      ALSA: hda - Create jack-detection kcontrols · 01a61e12
      Takashi Iwai 提交于
      Create kcontrols for pin jack-detections, which work similarly like
      jack-input layer.  Each control will notify when the jack is plugged or
      unplugged, and also user can read the value at any time via the normal
      control API.
      
      The control elements are created with iface=CARD, so that they won't
      appear in the mixer apps.
      
      So far, only the pins that enabled the jack-detection are registered.
      For covering all pins, the transition of the common unsol-tag handling
      would be needed.  Stay tuned.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      01a61e12
    • T
      ALSA: hda - Cache the jack-detection value · 1835a0f9
      Takashi Iwai 提交于
      Introduce a table containing the pins and their jack-detection states
      for avoiding the unnecessary verbs to check the pin status at each time.
      
      When the unsol event is enabled via snd_hda_jack_detect_enable(), it
      automatically adds the given NID to the table.  Then the driver supposes
      that the codec driver will set the dirty flag appropariately when an
      unsolicited event is invoked for that pin.
      
      The behavior for reading other pins that aren't registered in the table
      doesn't change.  Only the pins assigned to the table are cached, so far.
      
      In near futre, this table can be extended to use the central place for
      the unsolicited events of all pins, etc, and eventually include the
      jack-detect kcontrols that replace the current input-jack stuff.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      1835a0f9
    • T
      ALSA: hda - Introduce snd_hda_get_pin_label() · 04f5ade6
      Takashi Iwai 提交于
      Create a new helper function snd_hda_get_pin_label() for getting a label
      string for both input and output pins.  hda_get_input_pin_label() is
      obsoleted by this function, and the callers are replaced appropriately
      now by this patch.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      04f5ade6