1. 23 3月, 2009 1 次提交
  2. 03 3月, 2009 1 次提交
  3. 26 2月, 2009 1 次提交
  4. 23 2月, 2009 1 次提交
  5. 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
  6. 12 2月, 2009 1 次提交
  7. 06 2月, 2009 1 次提交
  8. 21 1月, 2009 1 次提交
  9. 20 1月, 2009 1 次提交
  10. 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
  11. 21 11月, 2008 3 次提交
  12. 19 11月, 2008 3 次提交
  13. 18 11月, 2008 3 次提交
    • W
      ALSA: ELD proc interface for HDMI sinks · 5f1e71b1
      Wu Fengguang 提交于
      Create /proc/asound/card<card_no>/eld#<codec_no> to reflect the audio
      configurations and capabilities of the attached HDMI sink.
      
      Some notes:
      
      - Shall we show an empty file if the ELD content is not valid?
        Well it's not that simple. There could be partially populated ELD,
        and there may be malformed ELD provided by buggy drivers/monitors.
        So expose ELD as it is.
      
      - The ELD retrieval routines rely on the Intel HDA interface,
        others are/could be universal and independent ones.
      
      - How do we name the proc file?
        If there are going to be two HDMI pins per codec, then the current naming
        scheme (eld#<codec no>) will fail. Luckily the user space dependencies should
        be minimal, so it would be trivial to do the rename if that happens.
      
      - The ELD proc file content is designed to be easy for scripts and human reading.
        Its lines all have the pattern:
      	  <item_name>\t[\t]*<item_value>
        where <item_name> is a keyword in c language, while <item_value> could be any
        contents, including white spaces. <item_value> could also be a null value.
      Signed-off-by: NWu Fengguang <wfg@linux.intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5f1e71b1
    • W
      ALSA: create hda_eld.c for ELD routines and proc interface · 7f4a9f43
      Wu Fengguang 提交于
      ELD handling routines can be shared by all HDMI codecs,
      and they are large enough to make a standalone source file.
      Signed-off-by: NWu Fengguang <wfg@linux.intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7f4a9f43
    • W
      ALSA: introduce snd_print_pcm_rates() · 33deeca3
      Wu Fengguang 提交于
      We want to share some code with print_pcm_rates(),
      so extract a common routine snd_print_pcm_rates() from it.
      Signed-off-by: NWu Fengguang <wfg@linux.intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      33deeca3
  14. 29 10月, 2008 1 次提交
  15. 13 10月, 2008 3 次提交
  16. 23 9月, 2008 2 次提交
  17. 24 4月, 2008 2 次提交
    • T
      [ALSA] Move vmaster code to sound core · e922b002
      Takashi Iwai 提交于
      Move the codes for virtual master controls to sound core part so that
      not only hda-intel drivers can use it.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e922b002
    • T
      [ALSA] hda-codec - Add "IEC958 Default PCM" switch · 9a08160b
      Takashi Iwai 提交于
      Added a new mixer switch to enable/disable the sharing of the default
      PCM stream with analog and SPDIF outputs.  When "IEC958 Default PCM"
      switch is on, the PCM stream is routed both to analog and SPDIF outputs.
      This is the behavior in the earlier version.
      
      Turning this switch off has a merit for some codecs, though.  Some codec
      chips don't support 24bit formats for SPDIF but only for analog outputs.
      In this case, you can use 24bit format by disabling this switch.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9a08160b
  18. 01 2月, 2008 5 次提交
  19. 20 11月, 2007 1 次提交
  20. 23 10月, 2007 2 次提交
  21. 16 10月, 2007 5 次提交
    • T
      [ALSA] hda-intel - Add POWER_SAVE option · cb53c626
      Takashi Iwai 提交于
      Added CONFIG_SND_HDA_POWER_SAVE kconfig.  It's an experimental option
      to achieve an aggressive power-saving.  With this option, the driver
      will turn on/off the power of each codec and controller chip dynamically
      on demand.
      The patch introduces a new module option 'power_save'.  It specifies
      the second of time-out for automatic power-down.  As default, it's
      10 seconds.  Setting 0 means to suppress the power-saving feature.
      The codec may have analog-input loopbacks, which are usually represented
      by mixer elements such as 'Mic Playback Switch' or 'CD Playback Switch'.
      When these are on, we cannot turn off the mixer and the codec chip has
      to be kept on.  For bookkeeping these states, a new codec-callback is
      introduced.
      For the bus-controller side, a new callback pm_notify is introduced,
      which can be used to turn on/off the contoller appropriately.
      Note that this power-saving might cause slight click-noise at
      power-on/off.  Also, it might take some time to wake up the codec, and
      might even drop some tones at the very beginning.  This seems to be the
      side-effect of turning off the controller chip.
      This turn-off of the controller can be disabled by undefining
      HDA_POWER_SAVE_RESET_CONTOLLER in hda_intel.c.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@suse.cz>
      cb53c626
    • T
      [ALSA] hda-codec - add snd_hda_codec_stereo() function · 47fd830a
      Takashi Iwai 提交于
      Added snd_hda_codec_amp_stereo() function that changes both of stereo
      channels with the same mask and value bits.  It simplifies most of
      amp-handling codes.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@suse.cz>
      47fd830a
    • T
      [ALSA] hda-codec - optimize resume using caches · 82beb8fd
      Takashi Iwai 提交于
      So far, the driver looked the table of snd_kcontrol_new used for creating
      mixer elements and forces to call each of its put callbacks in PM resume
      code.  This is too ugly and hackish.
      Now, the resume is simplified using the codec amp and command register
      caches.  The driver simply restores the values that have been written
      in the cache table.  With this simplification, most codec support codes
      don't require any special resume callback.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@suse.cz>
      82beb8fd
    • T
      [ALSA] hda-codec - introduce command register cache · b3ac5636
      Takashi Iwai 提交于
      This patch adds the cache for codec command registers.
      snd_hda_codec_write_cache() and snd_hda_sequence_write_cache() do
      the write operations with caching, which values can be resumed via
      snd_hda_codec_resume_cache().
      The patch introduces only the framework, and no codec code is using
      this cache yet.  It'll be implemented in the following patch.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@suse.cz>
      b3ac5636
    • T
      [ALSA] hda-codec - Add a generic bind-control helper · 532d5381
      Takashi Iwai 提交于
      Added callbacks for a generic bind-control of mixer elements.
      This can be used for creating a mixer element controlling multiple
      widgets at the same time.  Two macros, HDA_BIND_VOL() and HDA_BIND_SW(),
      are introduced for creating bind-volume and bind-switch, respectively.
      It taks the mixer element name and struct hda_bind_ctls pointer, which
      contains the real control callbacks in ops field and long array for
      private_value of each bound widget.
      All widgets have to be the same type (i.e. the same amp capability).
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@suse.cz>
      532d5381