1. 30 6月, 2017 1 次提交
  2. 25 4月, 2017 1 次提交
  3. 22 4月, 2017 1 次提交
  4. 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
  5. 07 4月, 2017 2 次提交
  6. 03 4月, 2017 2 次提交
  7. 25 3月, 2017 2 次提交
  8. 14 3月, 2017 1 次提交
  9. 07 3月, 2017 1 次提交
  10. 02 3月, 2017 1 次提交
  11. 26 2月, 2017 1 次提交
  12. 05 2月, 2017 1 次提交
  13. 27 1月, 2017 4 次提交
  14. 24 1月, 2017 2 次提交
  15. 20 1月, 2017 1 次提交
  16. 18 1月, 2017 1 次提交
    • L
      ASoC: core: Add API to use DMI name in sound card long name · 345233d7
      Liam Girdwood 提交于
      Intel DSP platform drivers are used by many different devices but are
      difficult for userspace to differentiate. This patch adds an API to allow
      the DMI name to be used in the sound card long name, thereby helping
      userspace load the correct UCM configuration. Usually machine drivers
      uses their own name as the sound card name (short name), and leave the
      long name and driver name blank. This API will use the DMI info like
      vendor, product and board to make up the card long name. If the machine
      driver has already explicitly set the long name, this API will do nothing.
      
      This patch also allows for further differentiation as many devices that
      share the same DMI name i.e. Minnowboards, UP boards may be configured
      with different codecs or firmwares. The API supports flavoring the DMI
      name into the card longname to provide the extra differentiation required
      for these devices.
      
      For Use Case Manager (UCM) in the user space, changing card long name by
      this API is backward compatible, since the card name does not change. For
      a given sound card, even if there is no device-specific UCM configuration
      file that uses the card long name, UCM will fall back to load the default
      configuration file that uses the card name.
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Signed-off-by: NMengdong Lin <mengdong.lin@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      345233d7
  17. 12 1月, 2017 2 次提交
  18. 10 1月, 2017 3 次提交
  19. 01 1月, 2017 1 次提交
    • S
      ASoC: Fix binding and probing of auxiliary components · d2e3a135
      Sylwester Nawrocki 提交于
      Currently binding of auxiliary devices doesn't work as in
      soc_bind_aux_dev() function a bound component is not being added
      to any list and in soc_probe_aux_devices() we are trying to walk
      the component_dev_list list to probe auxiliary components but
      at that time this list doesn't contain any auxiliary components
      since they are being added to the card only in soc_probe_component().
      
      This patch adds a list to the card where are stored bound but not
      probed auxiliary devices, so that all aux devices can be probed.
      
      Fixes: 1a653aa4 "ASoC: core: replace aux_comp_list to component_dev_list"
      Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      d2e3a135
  20. 16 12月, 2016 2 次提交
    • T
      ASoC: hdmi-codec: use unsigned type to structure members with bit-field · 9e4d59ad
      Takashi Sakamoto 提交于
      This is a fix for Linux 4.10-rc1.
      
      In C language specification, a bit-field is interpreted as a signed or
      unsigned integer type consisting of the specified number of bits.
      
      In GCC manual, the range of a signed bit field of N bits is from
      -(2^N) / 2 to ((2^N) / 2) - 1
      https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#Bit-Fields
      
      Therefore, when defined as 1 bit-field with signed type, variables can
      represents -1 and 0.
      
      The snd-soc-hdmi-codec module includes a structure which has signed type
      members with bit-fields. Codes of this module assign 0 and 1 to the
      members. This seems to result in implementation-dependent behaviours.
      
      As of v4.10-rc1 merge window, outside of sound subsystem, this structure
      is referred by below GPU modules.
       - tda998x
       - sti-drm
       - mediatek-drm-hdmi
       - msm
      
      As long as I review their codes relevant to the structure, the structure
      members are used just for condition statements and printk formats.
      My proposal of change is a bit intrusive to the printk formats but this
      may be acceptable.
      
      Totally, it's reasonable to use unsigned type for the structure members.
      This bug is detected by Sparse, static code analyzer with below warnings.
      
      ./include/sound/hdmi-codec.h:39:26: error: dubious one-bit signed bitfield
      ./include/sound/hdmi-codec.h:40:28: error: dubious one-bit signed bitfield
      ./include/sound/hdmi-codec.h:41:29: error: dubious one-bit signed bitfield
      ./include/sound/hdmi-codec.h:42:31: error: dubious one-bit signed bitfield
      
      Fixes: 09184118 ("ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders")
      Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Acked-by: NArnaud Pouliquen <arnaud.pouliquen@st.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      CC: stable@vger.kernel.org
      9e4d59ad
    • K
      ASoC: add Component level pcm_new/pcm_free · 99b04f4c
      Kuninori Morimoto 提交于
      In current ALSA SoC, Platform only has pcm_new/pcm_free feature,
      but it should be supported on Component level. This patch adds it.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      99b04f4c
  21. 05 12月, 2016 2 次提交
  22. 02 12月, 2016 3 次提交
  23. 01 12月, 2016 1 次提交
    • R
      ASoC: core: Add component pin control functions · 1b4d9c22
      Richard Fitzgerald 提交于
      It's often the case that a codec driver will need to control its
      own pins. However, if a name_prefix has been applied to this codec it
      must be included in the name passed to any of the snd_soc_dapm_x_pin()
      functions.
      
      The behaviour of the existing pin control functions is reasonable, since
      you may want to search for a fully-specified name within the scope of an
      entire card. This means that we can't apply the prefix in these functions
      because it will break card-scope searches.
      
      Constructing a prefixed string "manually" in codec drivers leads to a lot
      of repetition of the same code.
      
      To make this tidier in codec drivers this patch adds a new set of
      equivalent functions that take a struct snd_soc_component instead of a
      dapm context and automatically add the component's name_prefix to the
      given name. This makes it a simple change in codec drivers to be
      prefix-safe.
      
      The new functions are not quite trivial enough to be inlines and the
      compiler won't be able to compile-away any part of them.
      
      Although it looks somewhat inefficient to have to allocate a temporary
      buffer and combine strings, the current design of the widget list
      doesn't lend itself to a more optimized implementation - it's a single
      list of all widgets on a card and is searched linearly for a matching
      string. As pin state changes are generally low-frequency events it's
      unlikely to be a significant issue - at least not enough to rewrite the
      widget list handling just for this.
      Signed-off-by: NRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1b4d9c22
  24. 15 11月, 2016 3 次提交
    • T
      ALSA: emu10k1: Use workqueue instead of kthread for emu1010 fw polling · aeaa6203
      Takashi Iwai 提交于
      This patch is a cleanup of EMU1010 dock probing code in emu10k1 driver
      to use work instead of kthread in a loop.  The work is lighter and
      easier to control than kthread, in general.
      
      Instead of a loop with the explicit sleep, we do simply
      delayed-schedule the work.  At suspend/resume callbacks, the work is
      canceled and restarted, respectively.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      aeaa6203
    • T
      ALSA: core: Fix kernel-doc warnings · 43e575fa
      Takashi Iwai 提交于
      Several lines in sound/core.h get the kernel-doc warnings like
      
        ./include/sound/core.h:323: warning: No description found for parameter '...'
      
      where we use define like foo(x, args...) and "args" isn't mentioned in
      the comments.  As an easy workaround, use simple __VA_ARGS__ for VLA
      in macros.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      43e575fa
    • T
      ALSA: compress: Fix kernel-doc warnings · f84551e4
      Takashi Iwai 提交于
      Some fields in struct snd_compr have no corresponding comments, and
      the kernel-doc complains like:
      
        ./include/sound/compress_driver.h:162: warning: No description found for parameter 'id[64]'
        ./include/sound/compress_driver.h:162: warning: No description found for parameter 'proc_root'
        ./include/sound/compress_driver.h:162: warning: No description found for parameter 'proc_info_entry'
      
      Actually all these are internal elements, just put "private:" comment
      so that they will be ignored.
      Acked-by: NVinod Koul <vinod.koul@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f84551e4