1. 29 7月, 2015 1 次提交
  2. 22 7月, 2015 1 次提交
  3. 17 6月, 2015 2 次提交
  4. 12 6月, 2015 1 次提交
  5. 11 6月, 2015 5 次提交
  6. 04 6月, 2015 3 次提交
    • L
      ALSA: topology: Export ID types for TLV controls. · 932ae880
      Liam Girdwood 提交于
      Make sure userspace can define TLV controls for topology using the correct
      type numbers and channel mappings.
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Acked-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      932ae880
    • L
      ASoC: topology: Add topology core · 8a978234
      Liam Girdwood 提交于
      The topology core parses the FW topology file for known block types and
      instanciates any common ALSA/ASoC objects that it discovers. The core
      also passes any block that is does not understand to client component
      drivers for enumeration.
      
      The core exports some APIs to client drivers in order to load and unload
      firmware topology data as use case require.
      
      Currently the core deals with the following object types :-
      
       o kcontrols. This includes TLV, enumerated and bytes controls.
       o DAPM widgets. All types with any associated kcontrol.
       o DAPM graph.
       o FE PCM. FE PCM capabilities and configuration can be defined.
       o BE DAI Link. BE DAI link capabilities and configuration can be defined.
       o Codec <-> codec style links capabilities and configuration.
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      8a978234
    • L
      ASoC: topology: Add topology UAPI header · c147c0e1
      Liam Girdwood 提交于
       The ASoC topology UAPI header defines the structures
       required to define any DSP firmware audio topology and control objects from
       userspace.
      
      The following objects are supported :-
       o kcontrols including TLV controls.
       o DAPM widgets and graph elements
       o Vendor bespoke objects.
       o Coefficient data
       o FE PCM capabilities and config.
       o BE link capabilities and config.
       o Codec <-> codec link capabilities and config.
       o Topology object manifest.
      
      The file format is simple and divided into blocks for each object type and
      each block has a header that defines it's size and type. Blocks can be in
      any order of type and can either all be in a single file or spread across
      more than one file. Blocks also have a group identifier ID so that they can
      be loaded and unloaded by ID.
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c147c0e1
  7. 03 6月, 2015 2 次提交
  8. 29 5月, 2015 1 次提交
  9. 28 5月, 2015 1 次提交
  10. 22 5月, 2015 3 次提交
  11. 20 5月, 2015 1 次提交
    • M
      ALSA: hda - Move hda_i915.c from sound/pci/hda to sound/hda · 98d8fc6c
      Mengdong Lin 提交于
      The file is moved to hda core and renamed to hdac_i915.c, so can be used
      by both legacy HDA driver and new Skylake audio driver.
      
      - Add snd_hdac_ prefix to the public APIs.
      - The i915 audio component is moved to core bus and dynamically allocated.
      - A static pointer hdac_acomp is used to help bind/unbind callbacks to get
        this component, because the sound card's private_data is used by the azx
        chip pointer, which is a legacy structure. It could be removed if private
        _data changes to some core structure which can be extended to find the
        bus.
      - snd_hdac_get_display_clk() is added to get the display core clock for
        HSW/BDW.
      - haswell_set_bclk() is moved to hda_intel.c because it needs to write the
        controller registers EM4/EM5, and only legacy HD-A needs it for HSW/BDW.
      - Move definition of HSW/BDW-specific registers EM4/EM5 to hda_register.h
        and rename them to HSW_EM4/HSW_EM5, because other HD-A controllers have
        different layout for the extended mode registers.
      Signed-off-by: NMengdong Lin <mengdong.lin@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      98d8fc6c
  12. 12 5月, 2015 1 次提交
    • C
      ASoC: dapm: Add cache to speed up adding of routes · 45a110a1
      Charles Keepax 提交于
      Some CODECs have a significant number of DAPM routes and for each route,
      when it is added to the card, the entire card widget list must be
      searched. When adding routes it is very likely, however, that adjacent
      routes will require adjacent widgets. For example all the routes for a
      mux are likely added in a block and the sink widget will be the same
      each time and it is also quite likely that the source widgets are
      sequential located in the widget list.
      
      This patch adds a cache to the DAPM context, this cache will hold the
      source and sink widgets from the last call to snd_soc_dapm_add_route for
      that context. A small search of the widget list will be made from those
      points for both the sink and source. Currently this search only checks
      both the last widget and the one adjacent to it.
      
      On wm8280 which has approximately 500 widgets and 30000 routes (one of
      the largest CODECs in mainline), the number of paths that hit the cache
      is 24000, which significantly improves probe time.
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      45a110a1
  13. 07 5月, 2015 4 次提交
  14. 29 4月, 2015 2 次提交
  15. 28 4月, 2015 9 次提交
    • R
      ASoC: Update email-id of Rajeev Kumar · 9d7dd6cd
      Rajeev Kumar 提交于
      rajeev-dlh.kumar@st.com email-id doesn't exist anymore as I have left the
      company.  Replace ST's id with Rajeev Kumar <rajeevkumar.linux@gmail.com>
      Signed-off-by: NRajeev Kumar <rajeevkumar.linux@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      9d7dd6cd
    • L
      ASoC: Add helper functions bias level management · fa880775
      Lars-Peter Clausen 提交于
      Currently drivers are responsible for managing the bias_level field of
      their DAPM context. The DAPM state itself is managed by the DAPM core
      though and the core has certain expectations on how and when the bias_level
      field should be updated. If drivers don't adhere to these undefined
      behavior can occur.
      
      This patch adds a few helper functions for manipulating the DAPM context
      state, each function with a description on when it should be used and what
      its effects are. This will also help us to move more of the bias_level
      management from drivers to the DAPM core.
      
      For convenience also add snd_soc_codec_* wrappers around these helpers.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      fa880775
    • L
      ASoC: Add helper function getting CODEC's DAPM context · 39ed68c8
      Lars-Peter Clausen 提交于
      The DAPM context in the snd_soc_codec struct is redundant and scheduled to
      be replaced by the DAPM context in the snd_soc_component struct. This patch
      introduces a new helper function snd_soc_codec_get_dapm() which should be
      used for getting the DAPM context for a CODEC rather then directly
      accessing the dapm field. Once there are no more direct users of the dapm
      field left it is possible to transparently switch all drivers to the
      component DAPM context by updating snd_soc_codec_get_dapm() function.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      39ed68c8
    • K
      ASoC: soc.h: tidyup struct snd_soc_dai_link definition order · 2dc0f16b
      Kuninori Morimoto 提交于
      Current struct snd_soc_dai_link has many members, but definition order
      was random. Especially, bool / bit field are defined randomly.
      This patch tidyups these definition order to calculate data alignment
      easy.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      2dc0f16b
    • J
      ALSA: hda - Update to use the new jack kctls method · 2ba2dfa1
      Jie Yang 提交于
      Jack snd_kcontrols can now be created during snd_jack_new()
      or by later calling snd_jack_add_new_kctls().
      
      This patch creates the jacks during the initialisation stage
      for both phantom and non phantom jacks.
      Signed-off-by: NJie Yang <yang.jie@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2ba2dfa1
    • J
      ALSA: jack: extend snd_jack_new to support phantom jack · 4e3f0dc6
      Jie Yang 提交于
      Dont create input devices for phantom jacks.
      
      Here, we extend snd_jack_new() to support phantom jack creating:
      pass in a bool param for [non-]phantom flag, and a bool param
      initial_jack to indicate whether we need to create a kctl at
      this stage.
      
      We can also add a kctl to the jack after its created meaning we
      can now integrate the HDA and ASoC jacks.
      Signed-off-by: NJie Yang <yang.jie@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4e3f0dc6
    • J
      ALSA: Jack: handle jack embedded kcontrol creating within ctljack · b8dd0866
      Jie Yang 提交于
      This patch adds a static method get_available_index() to
      allocate the index of new jack kcontrols and also adds
      jack_kctl_name_gen() which is used to ensure compatibility
      with jack naming by removing " Jack" from some incorrectly
      passed names.
      Signed-off-by: NJie Yang <yang.jie@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b8dd0866
    • J
      ALSA: jack: implement kctl creating for jack devices · 9058cbe1
      Jie Yang 提交于
      Currently the ALSA jack core registers only input devices for each jack
      registered. These jack input devices are not readable by userspace devices
      that run as non root. This patch series will implement kctls inside the
      core jack part, including kctls creating, status changing report, for both
      HD-Audio and ASoC jack. This allows non root userspace to read jack status
      and act on it.
      
      This patch adds a new API called snd_jack_add_new_kctl(), which will create
      a kcontrol, add it to the card, and also attach it to the jack kctl list.
      
      This patch also initialises the jack kctl list after jack is newed, and
      reports kctl status when jack insertion/removal events occur.
      
      snd_jack_new() is updated in the following patches to also support creating
      phantom jacks and jack kcontrols. We then remove these duplicated features
      from HDA jack and have jack kctls handled by core throughout HDA and ASoC.
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Modified-by: NJie Yang <yang.jie@intel.com>
      Signed-off-by: NJie Yang <yang.jie@intel.com>
      Reveiwed-by: NMark Brown <broonie@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9058cbe1
    • L
      ASoC: dmaengine_pcm: Make FLAG_NO_RESIDUE internal · acde50a7
      Lars-Peter Clausen 提交于
      Whether residue can be reported or not is not a property of the audio
      controller but of the DMA controller. The FLAG_NO_RESIDUE was initially
      added when the DMAengine framework had no support for describing the residue
      reporting capabilities of the controller. Support for this was added quite a
      while ago and recently the DMAengine framework started to complain if a
      driver does not describe its capabilities and a lot of patches have been
      merged that add support for this where it was missing. So it should be safe
      to assume that driver on actively used platforms properly implement the DMA
      capabilities API.
      
      This patch makes the FLAG_NO_RESIDUE internal and no longer allows audio
      controller drivers to manually set the flag. If a DMA driver against
      expectations does not support reporting its capabilities for now the generic
      DMAengine PCM driver will now emit a warning and simply assume that residue
      reporting is not supported. In the future this might be changed to aborting
      with an error.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      acde50a7
  16. 27 4月, 2015 2 次提交
  17. 24 4月, 2015 1 次提交