1. 01 3月, 2014 2 次提交
  2. 28 2月, 2014 2 次提交
    • D
      ALSA: hda - Fix CORB reset to follow specification · ca460f86
      David Henningsson 提交于
      According to the HDA spec, we must write 1 to bit 15 on a CORBRP
      reset, read back 1, then write 0, then read back 0. This must be
      done while the DMA is not running.
      
      We accidentaly ended up writing back the 0 by using a writel
      instead of a writew to CORBWP.
      
      This caused occasional controller failure on Bay Trail hardware.
      
      [replaced error messages with dev_err() by tiwai]
      Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ca460f86
    • T
      ALSA: hda - Fix registration of beep input device · d604b399
      Takashi Iwai 提交于
      The beep input device is registered via input_register_device(), but
      this is called in snd_hda_attach_beep_device() where the sound devices
      aren't registered yet.  This leads to the binding to non-existing
      object, thus results in failure.  And, even if the binding worked
      (against the PCI object), it's still racy; the input device appears
      before the sound objects.
      
      For fixing this, register the input device properly at dev_register
      ops of the codec object it's bound with.  Also, call
      snd_hda_detach_beep_device() at dev_disconnection so that it's
      detached at the right timing.  As a bonus, since it's called in the
      codec's ops, we can get rid of the further call from the other codec
      drivers.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      d604b399
  3. 27 2月, 2014 2 次提交
    • T
      ALSA: hda/sigmatel - Allow auto-switching for dock line-in of HP laptops · e8b99a1d
      Takashi Iwai 提交于
      Many HP laptops with STAC codecs have a docking station port and BIOS
      sets the pins for the input on the dock as a line in.  Because the
      generic parser doesn't handle a line in pin as auto-switchable, this
      resulted in the manual capture source selection on these laptops.
      
      However, from the usability POV, the automatic switching is easier.
      This patch adds the line_in_auto_switch hint in the fixup function for
      these laptops.  Even if no dock port is present, this should be
      harmless as the generic parser allows the auto-switching only in a
      limited situation (all three pins are located in different
      positions).
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e8b99a1d
    • T
      ALSA: hda - Make codec object as a parent for input beep devices · f2606a80
      Takashi Iwai 提交于
      Instead of the controller, the new codec object is assigned as a
      parent for the hd-audio beep input devices, just like already done for
      PCM and hwdep.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f2606a80
  4. 25 2月, 2014 9 次提交
  5. 21 2月, 2014 1 次提交
  6. 20 2月, 2014 1 次提交
  7. 19 2月, 2014 3 次提交
  8. 18 2月, 2014 1 次提交
  9. 15 2月, 2014 3 次提交
  10. 13 2月, 2014 1 次提交
  11. 12 2月, 2014 1 次提交
  12. 11 2月, 2014 3 次提交
  13. 10 2月, 2014 2 次提交
    • T
      ALSA: hda - Fix undefined symbol due to builtin/module mixup · ef8e39b5
      Takashi Iwai 提交于
      Even after the fix for leftover kconfig handling (commit f8f1becf),
      the current code still doesn't handle properly the builtin/module
      mixup case between the core snd-hda-codec and other codec drivers.
      For example, when CONFIG_SND_HDA_INTEL=y and
      CONFIG_SND_HDA_CODEC_HDMI=m, it'll end up with an unresolved symbol
      snd_hda_parse_hdmi_codec.  This patch fixes the issue.
      
      Now codec->parser points to the parser object *only* when a module
      (either generic or HDMI parser) is loaded and bound.  When a builtin
      symbol is used, codec->parser still points to NULL.  This is the
      difference from the previous versions.
      
      Fixes: f8f1becf ('ALSA: hda - Fix leftover ifdef checks after modularization')
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ef8e39b5
    • T
      ALSA: Replace with IS_ENABLED() · 8eeaa2f9
      Takashi Iwai 提交于
      Replace the lengthy #if defined(XXX) || defined(XXX_MODULE) with the
      new IS_ENABLED() macro.
      
      The patch still doesn't cover all ifdefs.  For example, the dependency
      on CONFIG_GAMEPORT is still open-coded because this also has an extra
      dependency on MODULE.  Similarly, an open-coded ifdef in pcm_oss.c and
      some sequencer-related stuff are left untouched.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      8eeaa2f9
  14. 07 2月, 2014 6 次提交
  15. 05 2月, 2014 3 次提交