1. 11 9月, 2014 1 次提交
    • T
      ALSA: hda - Get rid of action field from struct hda_jack_tbl · 62f949bf
      Takashi Iwai 提交于
      The action value assigned to each hda_jack_tbl entry is mostly
      superfluous.  The actually used values are either the widget NID or a
      value specific to the callback.
      
      The former case can be simply replaced by a reference to widget NID
      itself.  The only place doing the latter is STAC/IDT codec driver for
      the powermap handling.  But, the code doesn't need to check the action
      field at all -- the function jack_update_power() is called either with
      a specific pin or with NULL.  So the check of jack->action can be
      removed completely there, too.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      62f949bf
  2. 10 8月, 2014 1 次提交
    • T
      ALSA: hda/ca0132 - Don't try loading firmware at resume when already failed · e24aa0a4
      Takashi Iwai 提交于
      CA0132 driver tries to reload the firmware at resume.  Usually this
      works since the firmware loader core caches the firmware contents by
      itself.  However, if the driver failed to load the firmwares
      (e.g. missing files), reloading the firmware at resume goes through
      the actual file loading code path, and triggers a kernel WARNING like:
      
       WARNING: CPU: 10 PID:11371 at drivers/base/firmware_class.c:1105 _request_firmware+0x9ab/0x9d0()
      
      For avoiding this situation, this patch makes CA0132 skipping the f/w
      loading at resume when it failed at probe time.
      Reported-and-tested-by: NJanek Kozicki <cosurgi@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e24aa0a4
  3. 25 6月, 2014 1 次提交
  4. 25 2月, 2014 1 次提交
    • 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
  5. 19 2月, 2014 2 次提交
  6. 15 2月, 2014 1 次提交
  7. 13 9月, 2013 1 次提交
  8. 28 6月, 2013 1 次提交
  9. 05 4月, 2013 1 次提交
  10. 02 4月, 2013 1 次提交
  11. 15 3月, 2013 3 次提交
  12. 07 3月, 2013 1 次提交
  13. 12 2月, 2013 2 次提交
  14. 11 2月, 2013 1 次提交
  15. 10 2月, 2013 2 次提交
  16. 07 2月, 2013 1 次提交
    • T
      ALSA: hda - Fix misc compile warnings in patch_ca0132.c · 9a0869f4
      Takashi Iwai 提交于
        sound/pci/hda/patch_ca0132.c: In function ‘ca0132_is_vnode_effective’:
        sound/pci/hda/patch_ca0132.c:3331:15: warning: ‘nid’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        sound/pci/hda/patch_ca0132.c:4345:13: warning: ‘ca0132_download_dsp’ defined but not used [-Wunused-function]
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9a0869f4
  17. 05 2月, 2013 1 次提交
  18. 16 1月, 2013 13 次提交
  19. 15 1月, 2013 5 次提交
    • I
      ALSA: hda/ca0132: Add unsol handler for DSP and jack detection · a73d511c
      Ian Minett 提交于
      This patch adds the unsolicited response handler for incoming DSP responses and
      jack detection reporting, and routines for reading the incoming DSP response.
      Signed-off-by: NIan Minett <ian_minett@creativelabs.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a73d511c
    • I
      ALSA: hda/ca0132: Add PCM enhancements · 825315bc
      Ian Minett 提交于
      Remove the playback PCM open callback.
      PCM stream setup and cleanup functions are added for use by PCM callbacks.
      Delay stream cleanup if effects are on, to allow time for any effects tail to
      finish.
      Add the analog capture PCM callbacks.
      Change the max channels of analog playback to 6.
      Add two new PCMs: AMic2 and What-U-Hear.
      Signed-off-by: NIan Minett <ian_minett@creativelabs.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      825315bc
    • I
      ALSA: hda/ca0132: Add DSP mixer controls and helpers · a7e76271
      Ian Minett 提交于
      This patch adds the kcontrols for the DSP effects, playback and recording
      source selection.
      ca0132_is_vnode_effective() checks whether virtual node settings have
      taken effect.
      The control change helpers ca0132_pe_switch_set(), ca0132_voicefx_set()
      and ca0132_cvoice_switch_set() are added to toggle playback / capture
      DSP effects, ca0132_voicefx_info(), _get() and _put() are added for
      input path DSP effect value access. The volume helpers are updated to
      volume_info(), _get() and _set() to use the virtual nodes.
      The redundant headphone and speaker switches and ct_extension function
      are removed.
      Signed-off-by: NIan Minett <ian_minett@creativelabs.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a7e76271
    • I
      ALSA: hda/ca0132: Init chip, DSP effects and mixer settings · 5aaca44d
      Ian Minett 提交于
      This patch adds the framework to set effect parameters: ca0132_effects_set()
      and ca0132_setup_defaults() are general functions for parameter setting and
      initializing to default values. dspio_set_param() and dspio_set_uint_param()
      are lower-level fns to simplify setting individual DSP parameters via an
      SCP buffer transfer to the firmware.
      The CA0132 chip parameter init code is added in ca0132_init_params().
      In chipio_[write,read]_data(), the current chip address is auto-incremented
      if no error has occurred.
      ca0132_select_out() selects the current output. If autodetect is enabled,
      use headphones (if jack detected) or speakers (if no jack).
      ca0132_select_mic() selects the current mic in. If autodetect is enabled,
      use exterior mic (if jack detected) or built-in mic (if no jack).
      Init digital mic and switch between dmic and amic with ca0132_init_dmic(),
      ca0132_set_dmic(). amic2 is initialized in ca0132_init_analog_mic2().
      Finally, add verb tables for configuring DSP firmware.
      Signed-off-by: NIan Minett <ian_minett@creativelabs.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5aaca44d
    • I
      ALSA: hda/ca0132: Add new definitions and structs for DSP · ef6b2ead
      Ian Minett 提交于
      This patch adds definitions and structs used for configuring DSP effects,
      virtual nodes, effect tuning controls, and mixer control helpers.
      The effect structs are also initialized.
      Signed-off-by: NIan Minett <ian_minett@creativelabs.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ef6b2ead