1. 03 Aug, 2011 1 commit
    • Wolfram Sang's avatar
      ASoC: sgtl5000: fix cache handling · 151798f8
      Wolfram Sang authored
      Cache handling in this driver is broken. The chip has 16-bit registers, yet the
      register numbers also increase by 2 per register, i.e.  there are only
      even-numbered registers. The cache in this driver, though, simply increments
      register numbers, so it does need some mapping as seen in
      sgtl5000_restore_regs(), note the '>> 1':
      
      	snd_soc_write(codec, SGTL5000_CHIP_LINREG_CTRL,
                              cache[SGTL5000_CHIP_LINREG_CTRL >> 1]);
      
      That, of course, won't work with snd_soc_update_bits(). (Thus, we won't even
      notice the missing register 0x1c in the default regs which shifted all follwing
      registers to wrong values.) Noticed on the MX28EVK where enabling the regulators
      simply locked up the chip.
      
      Refactor the routines and use a properly sized default_regs array which matches
      the register layout of the underlying chip, i.e. create a truly flat cache.
      This also saves some code which should make up for the bigger array a little.
      When soc-core will somewhen have another cache type which handles a step size,
      this conversion will also ease the transition.
      Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
      Tested-by: default avatarDong Aisheng <b29396@freescale.com>
      Tested-by: default avatarShawn Guo <shawn.guo@linaro.org>
      Acked-by: default avatarLiam Girdwood <lrg@ti.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@kernel.org
      151798f8
  2. 29 Jul, 2011 2 commits
    • Mark Brown's avatar
      ASoC: Disable wm_hubs periodic DC servo update · f9925d44
      Mark Brown authored
      This does not function correctly in all circumstances so disable the
      periodic updates unconditionally for stable; a future patch will reenable
      where appropriate.
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: default avatarLiam Girdwood <lrg@ti.com>
      f9925d44
    • Ralf Baechle's avatar
      ASoC: Fix txx9aclc.c build · 06132fdf
      Ralf Baechle authored
      552d1ef6 [ASoC: core - Optimise and refactor
      pcm_new() to pass only rtd] breaks compilation of txx9aclc.c:
      
        CC [M]  sound/soc/txx9/txx9aclc.o
      /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_new':
      /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: error: 'card' undeclared (first use in this function)
      /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: note: each undeclared identifier is reported only once for each function it appears in
      make[5]: *** [sound/soc/txx9/txx9aclc.o] Error 1
      
      Fixed by providing a definition for card.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      06132fdf
  3. 24 Jul, 2011 1 commit
  4. 20 Jul, 2011 7 commits
  5. 19 Jul, 2011 4 commits
  6. 17 Jul, 2011 6 commits
  7. 15 Jul, 2011 4 commits
  8. 14 Jul, 2011 2 commits
  9. 13 Jul, 2011 8 commits
  10. 09 Jul, 2011 5 commits