1. 19 8月, 2011 1 次提交
  2. 17 8月, 2011 1 次提交
    • S
      ASoC: Fix check for symmetric rate enforcement · 25b76791
      Sascha Hauer 提交于
      The ASoC core tries to not enforce symmetric rates when
      two streams open simultaneously. It does so by checking
      rtd->rate being zero. This works exactly once after booting
      because it is not set to zero again when the streams close.
      Fix this by setting rtd->rate when no active stream is left.
      
      [This leads to lots of warnings about not enforcing the symmetry in some
      situations as there's a race in the userspace API where we know we've
      got two applications but don't know what rates they want to set.
      -- broonie ]
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      25b76791
  3. 15 8月, 2011 7 次提交
  4. 14 8月, 2011 3 次提交
    • V
      ASoC: rx1950: Fix compilation error due to missing header · b8487928
      Vasily Khoruzhick 提交于
      Add linux/types.h to fix this compilation error:
      
      In file included from arch/arm/mach-s3c2410/include/mach/gpio-fns.h:27:0,
                       from arch/arm/mach-s3c2410/include/mach/gpio.h:27,
                       from /home/anarsoul/work/pda-linux/linux-next/arch/arm/include/asm/gpio.h:5,
                       from include/linux/gpio.h:18,
                       from sound/soc/samsung/rx1950_uda1380.c:20:
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:29:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:30:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s5p_gpio_drvstr_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:57:2: error: expected specifier-qualifier-list before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:148:47: error: expected declaration specifiers or ‘...’ before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:156:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s3c_gpio_getpull’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:175:24: error: expected declaration specifiers or ‘...’ before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h: In function ‘s3c_gpio_cfgrange_nopull’:
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: error: ‘s3c_gpio_pull_t’ undeclared (first use in this function)
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: note: each undeclared identifier is reported only once for each function it appears in
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: error: expected ‘)’ before numeric constant
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: error: too many arguments to function ‘s3c_gpio_cfgall_range’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:174:12: note: declared here
      arch/arm/plat-samsung/include/plat/gpio-cfg.h: At top level:
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:199:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s5p_gpio_get_drvstr’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:210:50: error: expected declaration specifiers or ‘...’ before ‘s5p_gpio_drvstr_t’
      Signed-off-by: NVasily Khoruzhick <anarsoul@gmail.com>
      Acked-by: NJassi Brar <jassisinghbrar@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      b8487928
    • V
      ASoC: h1940: Fix compilation error due to missing header · fd049755
      Vasily Khoruzhick 提交于
      Add linux/types.h to fix this compilation error:
      
      In file included from arch/arm/mach-s3c2410/include/mach/gpio-fns.h:27:0,
                       from arch/arm/mach-s3c2410/include/mach/gpio.h:27,
                       from /home/anarsoul/work/pda-linux/linux-next/arch/arm/include/asm/gpio.h:5,
                       from include/linux/gpio.h:18,
                       from sound/soc/samsung/rx1950_uda1380.c:20:
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:29:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:30:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s5p_gpio_drvstr_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:57:2: error: expected specifier-qualifier-list before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:148:47: error: expected declaration specifiers or ‘...’ before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:156:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s3c_gpio_getpull’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:175:24: error: expected declaration specifiers or ‘...’ before ‘s3c_gpio_pull_t’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h: In function ‘s3c_gpio_cfgrange_nopull’:
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: error: ‘s3c_gpio_pull_t’ undeclared (first use in this function)
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: note: each undeclared identifier is reported only once for each function it appears in
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: error: expected ‘)’ before numeric constant
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:180:47: error: too many arguments to function ‘s3c_gpio_cfgall_range’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:174:12: note: declared here
      arch/arm/plat-samsung/include/plat/gpio-cfg.h: At top level:
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:199:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s5p_gpio_get_drvstr’
      arch/arm/plat-samsung/include/plat/gpio-cfg.h:210:50: error: expected declaration specifiers or ‘...’ before ‘s5p_gpio_drvstr_t’
      Signed-off-by: NVasily Khoruzhick <anarsoul@gmail.com>
      Acked-by: NJassi Brar <jassisinghbrar@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      fd049755
    • M
      ASoC: Move WM8962 CLKREG_OVD earlier · a115c728
      Mark Brown 提交于
      When the clocking registers are not overriden some of the registers are
      not writable.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      Cc: stable@kernel.org
      a115c728
  5. 13 8月, 2011 1 次提交
    • T
      ASoC: Fix compile warning in wm8750.c · f6b864a9
      Takashi Iwai 提交于
      sound/soc/codecs/wm8750.c:784:2: warning: missing braces around initializer
      sound/soc/codecs/wm8750.c:784:2: warning: (near initialization for ‘wm8750_spi_ids[2].name’)
      
      It's because struct spi_device_id.name is a char array, not a pointer,
      while the driver initializes explicitly with 0.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f6b864a9
  6. 12 8月, 2011 2 次提交
  7. 11 8月, 2011 2 次提交
  8. 10 8月, 2011 1 次提交
  9. 09 8月, 2011 6 次提交
  10. 08 8月, 2011 2 次提交
  11. 03 8月, 2011 1 次提交
    • W
      ASoC: sgtl5000: fix cache handling · 151798f8
      Wolfram Sang 提交于
      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: NWolfram Sang <w.sang@pengutronix.de>
      Tested-by: NDong Aisheng <b29396@freescale.com>
      Tested-by: NShawn Guo <shawn.guo@linaro.org>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@kernel.org
      151798f8
  12. 29 7月, 2011 2 次提交
  13. 25 7月, 2011 1 次提交
  14. 21 7月, 2011 6 次提交
  15. 19 7月, 2011 4 次提交