1. 09 5月, 2018 1 次提交
  2. 31 8月, 2017 1 次提交
  3. 22 8月, 2017 1 次提交
    • T
      ASoC: jack: Manage gpios via devres · bd29ae96
      Takashi Iwai 提交于
      Let's be lazy -- this patch adds the devres code to
      snd_soc_jack_add_gpios() for releasing the gpio resources at device
      removal automagically.  After this patch, you don't have to call
      snd_soc_jack_free_gpios() manually as long as it's managed from the
      machine driver.
      
      What about the gpios assigned in other levels?  Well, you might still
      need to free the resources manually, depending on how the component
      unbind works.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bd29ae96
  4. 28 7月, 2017 1 次提交
  5. 11 4月, 2017 1 次提交
    • B
      ASoC: jack: add snd_soc_codec_set_jack · d7344010
      Bard Liao 提交于
      There are many codecs with the capability of jack detection. Usually,
      we create a jack on machine driver but there is no common function for
      machine driver to deliver the jack pointer to codec driver.
      snd_soc_codec_set_jack can be used for delivering the jack pointer to
      codec driver and enable the jack detection function. To make it work,
      codec driver need to define a callback function to receive the jack
      pointer and do all necessary procedure for enabling jack detection.
      Signed-off-by: NBard Liao <bardliao@realtek.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      d7344010
  6. 25 3月, 2017 1 次提交
  7. 25 5月, 2015 1 次提交
  8. 28 4月, 2015 2 次提交
  9. 05 3月, 2015 1 次提交
    • L
      ASoC: Allow to register jacks at the card level · 97093996
      Lars-Peter Clausen 提交于
      Jacks are typically card level elements, but are currently registered with a
      CODEC. When it was originally introduced snd_soc_jack_new() took a
      snd_soc_card as its parameter, but at that time DAPM was only implemented at
      the CODEC level and there was only one CODEC per card. This made it clear
      which CODEC to use for the jack DAPM operations. But the multi-component
      patchset added support for having multiple CODECs per card and with it the
      API was updated to register jacks with a specific CODEC instance instead.
      Subsequently DAPM support at the card level has been introduced, but the
      snd_soc_jack_new() API has so remained unchanged.
      
      This leaves us with the issue that the DAPM pins that are managed by the
      jack detection logic usually are part of the card DAPM context but are
      accessed through a CODEC DAPM context. Currently this works fine, but might
      break in the future if we take a more hierarchical approach to DAPM
      contexts.
      
      Furthermore with componentization progressing systems that do not register
      a snd_soc_codec might appear, while these system may still want to able to
      register a jack.
      
      This patch addresses these issues by adding a new function called
      snd_soc_card_jack_new() that can be used to register jacks with the card
      rather than a CODEC.
      
      This new function is mostly identical to snd_soc_jack_new() except that it
      additionally allows to directly specify the DAPM pins associated with the
      jack. This was done since most users of snd_soc_jack_new() typically call
      snd_soc_jack_add_pins() right after it, which is not necessary with the new
      API and allows to reduce the amount of boiler plate code.
      
      The old snd_soc_jack_new() is re-implemented as a wrapper around
      snd_soc_card_jack_new().
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      97093996
  10. 18 11月, 2014 1 次提交
  11. 23 10月, 2014 1 次提交
  12. 23 7月, 2014 1 次提交
    • L
      ASoC: Move card field form platform/codec to component · 00200107
      Lars-Peter Clausen 提交于
      Both the snd_soc_codec and snd_soc_platform struct do have a pointer to the
      parent card and both handle this pointer in mostly the same way. This patch
      moves the card field to the component level which will allow further code
      consolidation between platforms and CODECS.
      
      Since there are only a handful of users of the snd_soc_codec struct's card field
      (and none of the snd_soc_platform's) these are update in this patch as well,
      which allows it to be removed from the snd_soc_codec struct.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      00200107
  13. 26 5月, 2014 2 次提交
    • J
      ASoC: jack: Add support for GPIO descriptor defined jack pins · f025d3b9
      Jarkko Nikula 提交于
      Allow jack GPIO pins be defined also using GPIO descriptor-based interface
      in addition to legacy GPIO numbers. This is done by adding two new fields to
      struct snd_soc_jack_gpio: idx and gpiod_dev.
      
      Legacy GPIO numbers are used only when GPIO consumer device gpiod_dev is
      NULL and otherwise idx is the descriptor index within the GPIO consumer
      device.
      
      New function snd_soc_jack_add_gpiods() is added for typical cases where all
      GPIO descriptor jack pins belong to same GPIO consumer device. For other
      cases the caller must set the gpiod_dev in struct snd_soc_jack_gpio before
      calling snd_soc_jack_add_gpios().
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      f025d3b9
    • J
      ASoC: jack: Basic GPIO descriptor conversion · 50dfb69d
      Jarkko Nikula 提交于
      This patch does basic GPIO descriptor conversion to soc-jack. Even the GPIOs
      are still passed and requested using legacy GPIO numbers the driver
      internals are converted to use GPIO descriptor API.
      
      Motivation for this is to prepare soc-jack so that it will allow registering
      jack GPIO pins using both GPIO descriptors and legacy GPIO numbers.
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      50dfb69d
  14. 24 2月, 2014 2 次提交
  15. 22 10月, 2013 1 次提交
  16. 27 8月, 2013 1 次提交
  17. 19 7月, 2013 1 次提交
  18. 21 11月, 2012 1 次提交
  19. 22 10月, 2012 1 次提交
  20. 09 10月, 2012 1 次提交
  21. 14 8月, 2012 1 次提交
  22. 04 8月, 2012 1 次提交
  23. 01 4月, 2012 1 次提交
    • M
      ASoC: jack: Push locking for jacks down to the jack · 2667b4b8
      Mark Brown 提交于
      Currently operations on jack reporting take the CODEC mutex both to protect
      the current jack status and also to protect the DAPM run which is triggered
      on status updates. Since the addition of a DAPM-specific lock we no longer
      need to worry about locking DAPM as it has its own finer grained lock so
      create a per jack lock to take care of the jack status.
      
      This is both cleaner where the jack isn't specifically associated with a
      CODEC and clearer as it's much more obvious what the lock is protecting.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      2667b4b8
  24. 21 12月, 2011 1 次提交
  25. 01 11月, 2011 1 次提交
  26. 06 10月, 2011 1 次提交
  27. 06 9月, 2011 1 次提交
  28. 15 8月, 2011 1 次提交
  29. 03 4月, 2011 1 次提交
  30. 30 3月, 2011 1 次提交
  31. 24 2月, 2011 1 次提交
  32. 19 2月, 2011 1 次提交
  33. 11 2月, 2011 1 次提交
  34. 10 2月, 2011 1 次提交
  35. 06 12月, 2010 1 次提交
  36. 22 11月, 2010 1 次提交
  37. 15 11月, 2010 1 次提交