1. 08 6月, 2012 1 次提交
  2. 03 6月, 2012 1 次提交
    • S
      ASoC: make snd_soc_dai_link more symmetrical · bc92657a
      Stephen Warren 提交于
      Prior to this patch, the CPU side of a DAI link was specified using a
      single name. Often, this was the result of calling dev_name() on the
      device providing the DAI, but in the case of a CPU DAI driver that
      provided multiple DAIs, it needed to mix together both the device name
      and some device-relative name, in order to form a single globally unique
      name.
      
      However, the CODEC side of the DAI link was specified using separate
      fields for device (name or OF node) and device-relative DAI name.
      
      This patch allows the CPU side of a DAI link to be specified in the same
      way as the CODEC side, separating concepts of device and device-relative
      DAI name.
      
      I believe this will be important in multi-codec and/or dynamic PCM
      scenarios, where a single CPU driver provides multiple DAIs, while also
      booting using device tree, with accompanying desire not to hard-code the
      CPU side device's name into the original .cpu_dai_name field.
      
      Ideally, both the CPU DAI and CODEC DAI loops in soc_bind_dai_link()
      would now be identical. However, two things prevent that at present:
      
      1) The need to save rtd->codec for the CODEC side, which means we have
      to search for the CODEC explicitly, and not just the CODEC side DAI.
      
      2) Since we know the CODEC side DAI is part of a codec, and not just
      a standalone DAI, it's slightly more efficient to convert .codec_name/
      .codec_of_node into a codec first, and then compare each DAI's .codec
      field, since this avoids strcmp() on each DAI's CODEC's name within
      the loop.
      
      However, the two loops are essentially semantically equivalent.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      bc92657a
  3. 01 5月, 2012 1 次提交
  4. 07 4月, 2012 1 次提交
  5. 01 4月, 2012 2 次提交
  6. 23 12月, 2011 1 次提交
  7. 08 12月, 2011 1 次提交
    • S
      ASoC: Tegra: Move DAS configuration into DAS driver · 7b9b5e11
      Stephen Warren 提交于
      Move DAS routing setup into the DAS driver itself. This removes the need
      to duplicate this in each machine driver, of which we'll soon have three.
      
      An added advantage is that the machine drivers no longer call the Tegra20-
      specific DAS functions by name, so the machine driver no longer needs to
      be split up into Tegra20 and Tegra30 versions.
      
      If individual machine drivers need a different routing setup to this
      default, they can still call the DAS functions to set that up.
      
      Long-term, DAS will be a codec driver, and user-space will be able to
      control its routing, possibly within constraints that the machine driver
      sets up. Configuring the DAS routing from the DAS driver is a very slight
      move in that direction.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      7b9b5e11
  8. 24 11月, 2011 1 次提交
  9. 23 11月, 2011 2 次提交
  10. 08 10月, 2011 1 次提交
  11. 04 5月, 2011 1 次提交