1. 23 11月, 2010 21 次提交
  2. 22 11月, 2010 5 次提交
  3. 19 11月, 2010 3 次提交
  4. 18 11月, 2010 3 次提交
    • J
      ASoC: Add support for MAX98089 CODEC · fb762a5b
      Jesse Marroquin 提交于
      This patch adds initial support for the MAX98089 CODEC.
      Signed-off-by: NJesse Marroquin <jesse.marroquin@maxim-ic.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      fb762a5b
    • C
      ASoC: davinci: fixes for multi-component · bedad0ca
      Chris Paulson-Ellis 提交于
      Multi-component commit f0fba2ad broke a few things which this patch should
      fix. Tested on the DM355 EVM. I've been as careful as I can, but it would be
      good if those with access to other Davinci boards could test.
      
      --
      
      The multi-component commit put the initialisation of
      snd_soc_dai.[capture|playback]_dma_data into snd_soc_dai_ops.hw_params of the
      McBSP, McASP & VCIF drivers (davinci-i2s.c, davinci-mcasp.c & davinci-vcif.c).
      The initialisation had to be moved from the probe function in these drivers
      because davinci_*_dai changed from snd_soc_dai to snd_soc_dai_driver.
      
      Unfortunately, the DMA params pointer is needed by davinci_pcm_open (in
      davinci-pcm.c) before hw_params is called. I have moved the initialisation to
      a new snd_soc_dai_ops.startup function in each of these drivers. This fix
      indicates that all platforms that use davinci-pcm must have been broken and
      need to test with this fix.
      
      --
      
      The multi-component commit also changed the McBSP driver name from
      "davinci-asp" to "davinci-i2s" in davinci-i2s.c without updating the board
      level references to the driver name. This change is understandable, as there
      is a similarly named "davinci-mcasp" driver in davinci-mcasp.c.
      
      There is probably no 'correct' name for this driver. The DM6446 datasheet
      calls it the "ASP" and describes it as a "specialised McBSP". The DM355
      datasheet calls it the "ASP" and describes it as a "specialised ASP". The
      DM365 datasheet calls it the "McBSP". Rather than fix this problem by
      reverting to "davinci-asp", I've elected to avoid future confusion with the
      "davinci-mcasp" driver by changing it to "davinci-mcbsp", which is also
      consistent with the names of the functions in the driver. There are other
      fixes required, so it was never going to be as simple as a revert anyway.
      
      --
      
      The DM365 only has one McBSP port (of the McBSP platforms, only the DM355 has
      2 ports), so I've changed the the id of the platform_device from 0 to -1.
      
      --
      
      In davinci-evm.c, the DM6446 EVM can no longer share a snd_soc_dai_link
      structure with the DM355 EVM as they use different cpu DAI names (the DM355
      has 2 ports and the EVM uses the second port, but the DM6446 only has 1 port).
      This also means that the 2 boards need different snd_soc_card structures.
      
      --
      
      The codec_name entries in davinci-evm.c didn't match the i2c ids in the board
      files. I have only checked and fixed the details of the names used for the
      McBSP based platforms. Someone with a McASP based platform (eg DA8xx) should
      check the others.
      Signed-off-by: NChris Paulson-Ellis <chris@edesix.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      bedad0ca
    • M
      ASoC: Fix register cache setup WM8994 for multi-component · 11e713a0
      Mark Brown 提交于
      During the multi-component conversion the WM8994 register cache init
      got lost.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      11e713a0
  5. 16 11月, 2010 7 次提交
  6. 15 11月, 2010 1 次提交
    • J
      ASoC: Add optional name_prefix for codec kcontrol, widget and route names · ead9b919
      Jarkko Nikula 提交于
      There is a need to prefix codec kcontrol, widget and internal route names in
      an ASoC machine that has multiple codecs with conflicting names. The name
      collision would occur when codec drivers try to registering kcontrols with
      the same name or when building audio paths.
      
      This patch introduces optional prefix_map into struct snd_soc_card. With it
      machine drivers can specify a unique name prefix to each codec that have
      conflicting names with anothers. Prefix to codec is matched with codec
      name.
      
      Following example illustrates a machine that has two same codec instances.
      Name collision from kcontrol registration is avoided by specifying a name
      prefix "foo" for the second codec. As the codec widget names are prefixed
      then second audio map for that codec shows a prefixed widget name.
      
      static const struct snd_soc_dapm_route map0[] = {
      	{"Spk", NULL, "MONO"},
      };
      
      static const struct snd_soc_dapm_route map1[] = {
      	{"Vibra", NULL, "foo MONO"},
      };
      
      static struct snd_soc_prefix_map codec_prefix[] = {
      	{
      		.dev_name = "codec.2",
      		.name_prefix = "foo",
      	},
      };
      
      static struct snd_soc_card card = {
      	...
      	.prefix_map = codec_prefix,
      	.num_prefixes = ARRAY_SIZE(codec_prefix),
      };
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      ead9b919