1. 27 6月, 2014 2 次提交
  2. 26 6月, 2014 1 次提交
    • M
      ALSA: hda - restore BCLK M/N values when resuming HSW/BDW display controller · a07187c9
      Mengdong Lin 提交于
      For Intel Haswell/Broadwell display HD-A controller, the 24MHz HD-A link BCLK
      is converted from Core Display Clock (CDCLK): BCLK = CDCLK * M / N
      And there are two registers EM4 and EM5 to program M, N value respectively.
      The EM4/EM5 values will be lost and when the display power well is disabled.
      
      BIOS programs CDCLK selected by OEM and EM4/EM5, but BIOS has no idea about
      display power well on/off at runtime. So the M/N can be wrong if non-default
      CDCLK is used when the audio controller resumes, which results in an invalid
      BCLK and abnormal audio playback rate. So this patch saves and restores valid
      M/N values on controller suspend/resume.
      
      And 'struct hda_intel' is defined to contain standard HD-A 'struct azx' and
      Intel specific fields, as Takashi suggested.
      Signed-off-by: NMengdong Lin <mengdong.lin@intel.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a07187c9
  3. 25 6月, 2014 5 次提交
  4. 24 6月, 2014 3 次提交
  5. 23 6月, 2014 3 次提交
  6. 16 6月, 2014 1 次提交
    • T
      drm/i915, HD-audio: Don't continue probing when nomodeset is given · 74b0c2d7
      Takashi Iwai 提交于
      When a machine is booted with nomodeset option, i915 driver skips the
      whole initialization.  Meanwhile, HD-audio tries to bind wth i915 just
      by request_symbol() without knowing that the initialization was
      skipped, and eventually it hits WARN_ON() in i915_request_power_well()
      and i915_release_power_well() wrongly but still continues probing,
      even though it doesn't work at all.
      
      In this patch, both functions are changed to return an error in case
      of uninitialized state instead of WARN_ON(), so that HD-audio driver
      can give up HDMI controller initialization at the right time.
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: <stable@vger.kernel.org> [3.15]
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      74b0c2d7
  7. 13 6月, 2014 3 次提交
  8. 12 6月, 2014 2 次提交
    • T
      ALSA: intel8x0: Use ktime and ktime_get() · 2afe8be8
      Thomas Gleixner 提交于
      do_posix_clock_monotonic_gettime() is a leftover from the initial
      posix timer implementation which maps to ktime_get_ts() and returns
      the monotonic time in a timespec.
      
      Use ktime based ktime_get() and use the ktime_delta_us() function to
      calculate the delta instead of open coding the timespec math.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2afe8be8
    • M
      ALSA: hda - verify pin:converter connection on unsol event for HSW and VLV · b4f75aea
      Mengdong Lin 提交于
      This patch will verify the pin's coverter selection for an active stream
      when an unsol event reports this pin becomes available again after a display
      mode change or hot-plug event.
      
      For Haswell+ and Valleyview: display mode change or hot-plug can change the
      transcoder:port connection and make all the involved audio pins share the 1st
      converter. So the stream using 1st convertor will flow to multiple pins
      but active streams using other converters will fail. This workaround
      is to assure the pin selects the right conveter and an assigned converter is
      not shared by other unused pins.
      Signed-off-by: NMengdong Lin <mengdong.lin@intel.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b4f75aea
  9. 10 6月, 2014 1 次提交
  10. 09 6月, 2014 2 次提交
  11. 06 6月, 2014 4 次提交
  12. 05 6月, 2014 1 次提交
  13. 02 6月, 2014 2 次提交
  14. 30 5月, 2014 1 次提交
  15. 29 5月, 2014 3 次提交
  16. 27 5月, 2014 1 次提交
    • A
      ALSA: hda: fix tegra build · 16c23952
      Arnd Bergmann 提交于
      When CONFIG_PM is disabled, the CONFIG_SND_HDA_POWER_SAVE_DEFAULT symbol
      does not get defined, which causes a build error for the hda-tegra driver:
      
      hda/hda_tegra.c:80:25: error: 'CONFIG_SND_HDA_POWER_SAVE_DEFAULT' undeclared here (not in a function)
       static int power_save = CONFIG_SND_HDA_POWER_SAVE_DEFAULT;
                               ^
      /git/arm-soc/sound/pci/hda/hda_tegra.c:235:13: warning: 'hda_tegra_disable_clocks' defined but not used [-Wunused-function]
       static void hda_tegra_disable_clocks(struct hda_tegra *data)
                   ^
      
      This works around the problem by not referencing that macro
      when CONFIG_PM is disabled. Instead, we assume that it's disabled
      unconditionally and cannot be enabled at runtime.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Dylan Reid <dgreid@chromium.org>
      Cc: Stephen Warren <swarren@nvidia.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      16c23952
  17. 26 5月, 2014 5 次提交