1. 21 4月, 2009 2 次提交
    • T
      ALSA: hda - Retry codec-verbs at errors · b613291f
      Takashi Iwai 提交于
      The current error-recovery scheme for the codec communication errors
      doesn't work always well.  Especially falling back to the
      single-command mode causes the fatal problem on many systems.
      
      In this patch, the problematic verb is re-issued again after the error
      (even with polling mode) instead of the single-cmd mode.  The
      single-cmd mode will be used only when specified via the command
      option explicitly, mainly just for testing.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b613291f
    • T
      ALSA: hda - Cache PCM and STREAM parameters queries · 92c7c8a7
      Takashi Iwai 提交于
      Cache quries for PCM and STREAM parameters as well as ampcap and
      pincap sharing the hash table.  This will reduce the superfluous
      access of the same codec verbs.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      92c7c8a7
  2. 18 4月, 2009 1 次提交
  3. 16 4月, 2009 2 次提交
  4. 15 4月, 2009 1 次提交
  5. 23 3月, 2009 3 次提交
  6. 18 3月, 2009 1 次提交
  7. 13 3月, 2009 1 次提交
  8. 06 3月, 2009 1 次提交
  9. 03 3月, 2009 1 次提交
  10. 02 3月, 2009 3 次提交
  11. 23 2月, 2009 4 次提交
  12. 20 2月, 2009 1 次提交
  13. 13 2月, 2009 1 次提交
    • T
      ALSA: hda - Add snd_hda_multi_out_dig_cleanup() · 9411e21c
      Takashi Iwai 提交于
      Added the helper function snd_hda_multi_out_dig_cleanup() to clean up
      the digital outputs with multi setup.  This call is needed in cases
      the codec supports multiple digital outputs as slaves.  Otherwise the
      slave widgets aren't properly cleaned up.
      
      For a single digital output (e.g. in patch_conexant.c), this call isn't
      needed.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9411e21c
  14. 12 2月, 2009 1 次提交
  15. 11 2月, 2009 1 次提交
  16. 06 2月, 2009 1 次提交
  17. 05 2月, 2009 1 次提交
    • T
      ALSA: hda - Fix misc workqueue issues · e8c0ee5d
      Takashi Iwai 提交于
      Some fixes regarding snd-hda-intel workqueue:
      - Use create_singlethread_workqueue() instead of create_workqueue()
        as per-CPU work isn't required.
      - Allocate workq name string properly
      - Renamed the workq name to "hd-audio*" to be more obvious.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e8c0ee5d
  18. 21 1月, 2009 4 次提交
  19. 20 1月, 2009 1 次提交
  20. 14 1月, 2009 1 次提交
  21. 12 1月, 2009 1 次提交
    • T
      ALSA: hda - Use own workqueue · 6acaed38
      Takashi Iwai 提交于
      snd-hda-intel driver used schedule_work() fot the delayed DMA pointer
      updates, but this has several potential problems:
      - it may block other eventsd works longer
      - it may deadlock when probing fails and flush_scheduled_work() is
        called during probe callback (as probe callback itself could be
        invoked from eventd)
      
      This patch adds an own workq for each driver instance to solve these
      problems.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      6acaed38
  22. 09 1月, 2009 1 次提交
    • W
      ALSA: hda - create hda_codec.control_mutex for kcontrol->private_value · 5a9e02e9
      Wu Fengguang 提交于
      Fix the following lockdep warning by not reusing the hda_codec.spdif_mutex.
      
          ALSA sound/pci/hda/hda_codec.c:882: hda_codec_cleanup_stream: NID=0x2
      
          =======================================================
          [ INFO: possible circular locking dependency detected ]
          2.6.28-next-20090102 #33
          -------------------------------------------------------
          mplayer/3151 is trying to acquire lock:
           (&pcm->open_mutex){--..}, at: [<ffffffffa004ced3>] snd_pcm_release+0x43/0xd0 [snd_pcm]
      
          but task is already holding lock:
           (&mm->mmap_sem){----}, at: [<ffffffff810c0252>] sys_munmap+0x42/0x80
      
          which lock already depends on the new lock.
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5a9e02e9
  23. 19 12月, 2008 2 次提交
  24. 18 12月, 2008 1 次提交
  25. 16 12月, 2008 1 次提交
  26. 30 11月, 2008 1 次提交
    • M
      ALSA: hda - Add a new function to seek for a codec ID · 2eda3445
      Mauro Carvalho Chehab 提交于
      Gateway notebooks have their ID inside codec vendor ID, not at PCI ID. Due to
      that, model auto-detection were not possible with the standard seek method.
      
      This is what is found at lspci -vnn:
      
      00:14.2 Audio device [0403]: ATI Technologies Inc SB450 HDA Audio [1002:437b] (rev 01)
              Subsystem: ATI Technologies Inc SB450 HDA Audio [1002:437b]
      
      Yet, autodetection is possible, since the codec properly reflects the vendor at
      the Subsystem ID:
      
      $ cat /proc/asound/card0/codec#0 |head -4
      
      Codec: SigmaTel STAC9250
      Address: 0
      Vendor Id: 0x83847634
      Subsystem Id: 0x107b0367
      
      This patch adds a new autodetection function that seeks for codec subsystem ID.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2eda3445
  27. 28 11月, 2008 1 次提交
    • T
      ALSA: hda - Don't export symbols when built-in kernel · ff7a3267
      Takashi Iwai 提交于
      The global functions in hda_codec.c and other core parts are only
      for HD-audio codec and controller drivers.  When the HD-audio driver
      is built in kernel, all stuff have to be statically linked, thus
      we don't need any exports.
      
      This patch introduces a conditional macro to do export only
      when needed.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ff7a3267