1. 01 3月, 2014 11 次提交
  2. 28 2月, 2014 1 次提交
  3. 25 2月, 2014 2 次提交
    • T
      ALSA: hda - Replace with standard printk · 4e76a883
      Takashi Iwai 提交于
      Use dev_err() and co for messages from HD-audio controller and codec
      drivers.  The codec drivers are mostly bound with codec objects, so
      some helper macros, codec_err(), codec_info(), etc, are provided.
      They merely wrap the corresponding dev_xxx().
      
      There are a few places still calling snd_printk() and its variants
      as they are called without the codec or device context.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4e76a883
    • T
      ALSA: hda - Create own device struct for each codec · 13aeaf68
      Takashi Iwai 提交于
      As the HD-audio is treated individually in each codec driver, it's
      more convenient to assign an own struct device to each codec object.
      Then we'll be able to use dev_err() more easily for each codec, for
      example.
      
      For achieving it, this patch just creates an object "hdaudioCxDy".
      It belongs to sound class instead of creating a new bus, just for
      simplicity, at this stage.  No pm ops is implemented in the device
      struct level but currently it's merely a container.  The PCM and hwdep
      devices are now children of this codec device.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      13aeaf68
  4. 12 2月, 2014 1 次提交
  5. 10 2月, 2014 1 次提交
    • 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
  6. 07 2月, 2014 1 次提交
  7. 30 1月, 2014 1 次提交
  8. 09 1月, 2014 1 次提交
  9. 08 1月, 2014 1 次提交
    • T
      ALSA: hda - Increment default stream numbers for AMD HDMI controllers · 7546abfb
      Takashi Iwai 提交于
      It turned out that some AMD HDMI controllers still don't provide
      proper values in GCAP register (all zero), and the driver assigns only
      one stream in that case, although the connected codec chip supports
      more than one stream.
      
      In this patch, the default max number of streams for AMD HDMI
      controllers is increased to 8, which  should suffice for most use
      cases.  The overhead by this increase is more azx_dev struct and BDL
      allocations, so it's negligible.  Of course, if the controller
      provides a proper GCAP register, the register value would be used.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7546abfb
  10. 13 12月, 2013 1 次提交
  11. 07 12月, 2013 1 次提交
    • T
      ALSA: hda - Ignore small negative LPIB delay correction · e8648e5e
      Takashi Iwai 提交于
      Sometimes the hardware reports LPIB being advanced than POSBUF.
      When this happens, the driver adjusts to a positive value by adding
      the buffer size.  Then the driver detects it as an error (greater than
      the period size), and stops the LPIB delay account from this point
      on.
      
      When I took a close look at these conditions, the values shown are all
      very small numbers, and it'd be better to just ignore these values
      instead of discontinuing the LPIB delay correction.
      
      In this patch, the driver checks a negative delay value and ignores if
      it's a significantly small error.  Currently the threshold is set to
      64 frames, but could be smaller.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e8648e5e
  12. 02 12月, 2013 2 次提交
    • T
      ALSA: hda - Always do delayed probes for HD-audio devices · aad730d0
      Takashi Iwai 提交于
      HD-audio devices tend to take long time for finishing the whole
      probing procedure.  In this patch, the time-consuming part of the
      probing procedure, the codec probe and the rest initializations, are
      moved in the work, so that they can be done asynchronously in parallel
      with probes of other devices.
      
      Since we already have this mechanism in the driver code for the
      firmware and i915 request_symbol() stuff, we just need to enable it
      always; the resultant patch even reduces more lines, which is an
      additional bonus.
      
      Credit goes to David Henningsson, who suggested this workaround.
      Reported-by: NMengdong Lin <mengdong.lin@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      aad730d0
    • T
      ALSA: hda - Fix complete_all() timing in deferred probes · 88d071fc
      Takashi Iwai 提交于
      When the probe of snd-hda-intel driver is deferred due to f/w loading
      or the nested module loading, complete_all() should be also delayed
      until the initialization really finished.  Otherwise, vga-switcheroo
      client would start switching before the actual init is done.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      88d071fc
  13. 26 11月, 2013 2 次提交
  14. 08 11月, 2013 1 次提交
    • J
      ALSA: hda_intel: ratelimit "spurious response" message · 3b70a67d
      Joe Perches 提交于
      dmesg here has a 100+ consecutive lines of:
      
      [ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
      [ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
      [ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
      ...
      
      Ratelimit the message to reduce the dmesg log noise.
      
      Coalesce the format while at it.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3b70a67d
  15. 06 11月, 2013 2 次提交
  16. 05 11月, 2013 2 次提交
  17. 24 10月, 2013 1 次提交
    • T
      ALSA: hda - Fix mute LED on HP laptops in runtime suspend · 95f74c41
      Takashi Iwai 提交于
      When HP laptops with mute and mic-record LEDs go to runtime suspend,
      these LEDs are turned on forcibly no matter whether GPIO pis are on or
      off.  This strange behavior seems triggered by resetting the HD-audio
      bus link at azx_rutime_suspend().  So, just add a new hda_bus flag to
      avoid the link reset at runtime suspend and set it for these HP
      machines.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      95f74c41
  18. 09 9月, 2013 1 次提交
  19. 29 8月, 2013 1 次提交
    • D
      snd/hda: add runtime suspend/resume on optimus support (v4) · 246efa4a
      Dave Airlie 提交于
      Add support for HDMI audio device on VGA cards that powerdown
      to D3cold using non-standard ACPI/PCI infrastructure (optimus).
      
      This does a couple of things to make it work:
      
      a) add a set of power ops for the hdmi domain, and enables them
      via vga_switcheroo when we are a switcheroo controlled card. This
      just replaces the runtime resume operation so that when the card
      is in D3cold the userspace pci config space access via sysfs,
      the vga switcheroon runtime resume gets called first and it calls
      the GPU resume callback before calling the sound card runtime
      resume.
      
      b) standard ACPI/PCI stacks won't put a device into D3cold without
      an ACPI handle, but since the hdmi audio devices on gpus don't have
      an ACPI handle, we need to manually force the device into D3cold
      after suspend from the switcheroo path only.
      
      c) don't try and do runtime s/r when the GPU is off.
      
      d) call runtime suspend/resume during switcheroo suspend/resume
      this is to make sure the runtime stack knows to try and resume
      the hdmi audio device for pci config space access.
      
      v2: fix incorrect runtime call suspend->resume.
      
      v3: rework irq handler to avoid false irq when we are resuming
      but haven't runtime resumed yet, don't bother trying D3cold,
      it won't work, just set it manually ourselves, move runtime s/r
      calls outside the main s/r hook. enable dnyamic pm properly by
      dropping reference.
      
      v4: put back irq handler check just wrap it with cap check
      Acked-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      246efa4a
  20. 19 8月, 2013 1 次提交
  21. 29 7月, 2013 1 次提交
    • W
      ALSA: hda - WAKEEN feature enabling for runtime pm · 7d4f606c
      Wang Xingchao 提交于
      With runtime power save feature enabled, Headphone hotplug
      event will not be detected while controller/codec in D3. HDA has
      feature WAKEEN to let codec wake up system if controller is in D3 or
      system in S3.(HDA Spec 4.5.9.2/3). Codec can send out INT or wake up
      controller depending on whether CIE or GIE enabled.(Figure 4, Interupt
      structure).
      
      The controller must be in RESET mode after enter runtime-suspend, otherwise
      it will not be waken up even if codec send out wake-up event. And STATESTS
      will be cleared after controller brought out of RESET mode.
      
      This patch only enable WAKEEN for runtime-suspend(Controller D3) mode,
      not for system S3 mode. with tool "evtest", Headphone hotplug events
      could be cought and reported successfully.
      
      [fixed an unused variable warning by tiwai]
      Signed-off-by: NWang Xingchao <xingchao.wang@linux.intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7d4f606c
  22. 24 7月, 2013 1 次提交
  23. 25 6月, 2013 1 次提交
  24. 24 6月, 2013 1 次提交
  25. 06 6月, 2013 1 次提交