1. 18 Feb, 2009 4 commits
  2. 17 Feb, 2009 3 commits
  3. 13 Feb, 2009 5 commits
  4. 11 Feb, 2009 1 commit
  5. 10 Feb, 2009 2 commits
  6. 09 Feb, 2009 2 commits
  7. 08 Feb, 2009 5 commits
  8. 06 Feb, 2009 6 commits
  9. 04 Feb, 2009 2 commits
  10. 03 Feb, 2009 3 commits
  11. 02 Feb, 2009 4 commits
  12. 31 Jan, 2009 2 commits
  13. 30 Jan, 2009 1 commit
    • Timur Tabi's avatar
      ASoC: fix initialization order of the CS4270 codec driver · 04eb093c
      Timur Tabi authored
      ASoC codec drivers typically serve two masters: the I2C bus and ASoC itself.
      When a codec driver registers with ASoC, a probe function is called.  Most
      codec drivers call ASoC first, and then register with the I2C bus in the ASoC
      probe function.
      
      However, in order to support multiple codecs on one board, it's easier if the
      codec driver is probed via the I2C bus first.  This is because the call to
      i2c_add_driver() can result in the I2C probe function being called multiple
      times - once for each codec.  In the current design, the driver registers
      once with ASoC, and in the ASoC probe function, it calls i2c_add_driver().
      The results in the I2C probe function being called multiple times before the
      driver can register with ASoC again.
      
      The new design has the driver call i2c_add_driver() first.  In the I2C probe
      function, the driver registers with ASoC.  This allows the ASoC probe function
      to be called once per I2C device.
      
      Also add code to check if the I2C probe function is called more than once,
      since that is not supported with the current ASoC design.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      04eb093c