1. 30 Jan, 2014 2 commits
  2. 24 Jan, 2014 3 commits
  3. 23 Jan, 2014 1 commit
    • Sachin Kamat's avatar
      ASoC: samsung: Fix Kconfig dependency · 4a9eee01
      Sachin Kamat authored
      Select S3C24XX_DMA instead of S3C2410_DMA to avoid following dependency issues
      and build errors:
      
      warning: (CPU_S3C2410 && CPU_S3C2442 && SND_SOC_SAMSUNG && SND_S3C24XX_I2S && SND_S3C2412_SOC_I2S && SND_SOC_SAMSUNG_SMDK2443_WM9710 && SND_SOC_SAMSUNG_LN2440SBC_ALC650) selects S3C2410_DMA which has unmet direct dependencies (ARCH_S3C24XX && S3C24XX_DMA && (CPU_S3C2410 || CPU_S3C2442))
      warning: (CPU_S3C2410 && CPU_S3C2442 && SND_SOC_SAMSUNG && SND_S3C24XX_I2S && SND_S3C2412_SOC_I2S && SND_SOC_SAMSUNG_SMDK2443_WM9710 && SND_SOC_SAMSUNG_LN2440SBC_ALC650) selects S3C2410_DMA which has unmet direct dependencies (ARCH_S3C24XX && S3C24XX_DMA && (CPU_S3C2410 || CPU_S3C2442))
      
      arch/arm/mach-s3c24xx/built-in.o: In function `s3c2410_dma_add':
      arch/arm/mach-s3c24xx/dma-s3c2410.c:134: undefined reference to `s3c2410_dma_init'
      arch/arm/mach-s3c24xx/dma-s3c2410.c:135: undefined reference to `s3c24xx_dma_order_set'
      arch/arm/mach-s3c24xx/dma-s3c2410.c:136: undefined reference to `s3c24xx_dma_init_map'
      arch/arm/plat-samsung/include/plat/dma-ops.h:60: undefined reference to `s3c_dma_get_ops'
      sound/soc/samsung/s3c24xx-i2s.c:293: undefined reference to `s3c2410_dma_ctrl'
      arch/arm/plat-samsung/include/plat/dma-ops.h:60: undefined reference to `s3c_dma_get_ops'
      arch/arm/plat-samsung/include/plat/dma-ops.h:60: undefined reference to `s3c_dma_get_ops'
      sound/built-in.o: In function `s3c2412_i2s_trigger':
      sound/soc/samsung/s3c-i2s-v2.c:432: undefined reference to `s3c2410_dma_ctrl'
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      4a9eee01
  4. 22 Jan, 2014 3 commits
    • Sachin Kamat's avatar
      ASoC: samsung: smdk_wm8994: Fix build error · f83183ca
      Sachin Kamat authored
      Fixes the following build error and warning when OF is not defined:
      sound/soc/samsung/smdk_wm8994.c:191:23: error: ‘samsung_wm8994_of_match’ undeclared (first use in this function)
      sound/soc/samsung/smdk_wm8994.c:47:32: warning: ‘smdk_board_data’ defined but not used [-Wunused-variable]
      
      of_match_ptr() is used so that samsung_wm8994_of_match gets dropped (as unused)
      by the compiler when OF is not defined.
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      f83183ca
    • Sachin Kamat's avatar
      ASoC: Samsung: s3c-i2s-v2: Fix build error · 9eeb9572
      Sachin Kamat authored
      Fixes the following error introduced by commit eca3b01d
      ("ASoC: switch over to use snd_soc_register_component() on s3c i2s"):
      sound/soc/samsung/s3c-i2s-v2.c:732:32: error: ‘drv’ undeclared (first use in this function)
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      9eeb9572
    • Sachin Kamat's avatar
      ASoC: samsung: Fix build regressions due to gpio re-org · abffae64
      Sachin Kamat authored
      Recent changes through commits c67d0f29 ("ARM: s3c24xx: get rid
      of custom <mach/gpio.h>"), b0161caa ("ARM: S3C[24|64]xx: move includes
      back under <mach/> scope"), 36437412 ("ARM: s3c24xx: explicit
      dependency on <plat/gpio-cfg.h>") and 41c3548e ("ARM: s3c64xx: get rid
      of custom <mach/gpio.h>") caused build regressions due to broken
      dependencies. Fix the following errors by including the necessary header
      files explicitly:
      
      sound/soc/samsung/h1940_uda1380.c:56:3: error: implicit declaration of function ‘S3C2410_GPG’
      sound/soc/samsung/h1940_uda1380.c:149:18: error: ‘S3C_GPIO_END’ undeclared (first use in this function)
      sound/soc/samsung/h1940_uda1380.c:234:21: error: ‘S3C_GPIO_END’ undeclared (first use in this function)
      sound/soc/samsung/h1940_uda1380.c:270:12: error: ‘S3C_GPIO_END’ undeclared (first use in this function)
      sound/soc/samsung/neo1973_wm8753.c:239:2: error: implicit declaration of function ‘S3C2410_GPJ’
      sound/soc/samsung/rx1950_uda1380.c:67:3: error: implicit declaration of function ‘S3C2410_GPG’
      sound/soc/samsung/s3c2412-i2s.c:86:2: error: implicit declaration of function ‘s3c_gpio_cfgall_range’
      sound/soc/samsung/s3c2412-i2s.c:86:2: error: implicit declaration of function ‘S3C2410_GPE’
      sound/soc/samsung/s3c2412-i2s.c:86:2: error: implicit declaration of function ‘S3C_GPIO_SFN’
      sound/soc/samsung/s3c2412-i2s.c:87:10: error: ‘S3C_GPIO_PULL_NONE’ undeclared
      sound/soc/samsung/s3c24xx-i2s.c:394:2: error: implicit declaration of function ‘s3c_gpio_cfgall_range’
      sound/soc/samsung/s3c24xx-i2s.c:394:2: error: implicit declaration of function ‘S3C2410_GPE’
      sound/soc/samsung/s3c24xx-i2s.c:394:2: error: implicit declaration of function ‘S3C_GPIO_SFN’
      sound/soc/samsung/s3c24xx-i2s.c:395:10: error: ‘S3C_GPIO_PULL_NONE’ undeclared
      sound/soc/samsung/smartq_wm8987.c:112:3: error: implicit declaration of function ‘S3C64XX_GPL’
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      abffae64
  5. 20 Jan, 2014 5 commits
  6. 17 Jan, 2014 3 commits
  7. 16 Jan, 2014 12 commits
  8. 15 Jan, 2014 3 commits
  9. 14 Jan, 2014 8 commits
    • Lars-Peter Clausen's avatar
      ASoC: samsung: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag · d70e861a
      Lars-Peter Clausen authored
      The Samsung dmaengine ASoC driver is used with two different dmaengine drivers.
      The pl80x, which properly supports residue reporting and the pl330, which
      reports that it does not support residue reporting. So there is no need to
      manually set the NO_RESIDUE flag. This has the advantage that a proper (race
      condition free) PCM pointer() implementation is used when the pl80x driver is
      used. Also once the pl330 driver supports residue reporting the ASoC PCM driver
      will automatically start using it.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      d70e861a
    • Lars-Peter Clausen's avatar
      ASoC: axi-{spdif,i2s}: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag · 153e66f5
      Lars-Peter Clausen authored
      The pl330 driver properly reports that it does not have residue reporting
      support, which means the PCM dmanegine driver is able to figure this out on its
      own. So there is no need to set the flag manually. Removing the flag has the
      advantage that once the pl330 driver gains support for residue reporting it will
      automatically be used by the generic dmaengine PCM driver.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      153e66f5
    • Lars-Peter Clausen's avatar
      ASoC: generic-dmaengine-pcm: Check DMA residue granularity · 478028e0
      Lars-Peter Clausen authored
      The dmaengine framework now exposes the granularity with which it is able to
      report the transfer residue for a certain DMA channel. Check the granularity in
      the generic dmaengine PCM driver and
      	a) Set the SNDRV_PCM_INFO_BATCH if the granularity is per period or worse.
      	b) Fallback to the (race condition prone) period counting if the driver does
      	not support any residue reporting.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      478028e0
    • Lars-Peter Clausen's avatar
      ASoC: generic-dmaengine-pcm: Check NO_RESIDUE flag at runtime · 93b943ed
      Lars-Peter Clausen authored
      Currently we have two different snd_soc_platform_driver structs in the generic
      dmaengine PCM driver. One for dmaengine drivers that support residue reporting
      and one for those which do not. When registering the PCM component we check
      whether the NO_RESIDUE flag is set or not and use the corresponding
      snd_soc_platform_driver. This patch modifies the driver to only have one
      snd_soc_platform_driver struct where the pointer() callback checks the
      NO_RESIDUE flag at runtime. This allows us to set the NO_RESIDUE flag after the
      PCM component has been registered. This becomes necessary when querying whether
      the dmaengine driver supports residue reporting from the dmaengine driver itself
      since the DMA channel might only be requested after the PCM component has been
      registered.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      93b943ed
    • Lars-Peter Clausen's avatar
      dma: pl330: Set residue_granularity · bfb9bb42
      Lars-Peter Clausen authored
      The pl330 driver currently does not support residue reporting, so set the
      residue granularity to DMA_RESIDUE_GRANULARITY_DESCRIPTOR.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      bfb9bb42
    • Lars-Peter Clausen's avatar
      dma: Indicate residue granularity in dma_slave_caps · 50720563
      Lars-Peter Clausen authored
      This patch adds a new field to the dma_slave_caps struct which indicates the
      granularity with which the driver is able to update the residue field of the
      dma_tx_state struct. Making this information available to dmaengine users allows
      them to make better decisions on how to operate. E.g. for audio certain features
      like wakeup less operation or timer based scheduling only make sense and work
      correctly if the reported residue is fine-grained enough.
      
      Right now four different levels of granularity are supported:
      	* DESCRIPTOR: The DMA channel is only able to tell whether a descriptor has
      	  been completed or not, which means residue reporting is not supported by
      	  this channel. The residue field of the dma_tx_state field will always be
      	  0.
      	* SEGMENT: The DMA channel updates the residue field after each successfully
      	  completed segment of the transfer (For cyclic transfers this is after each
      	  period). This is typically implemented by having the hardware generate an
      	  interrupt after each transferred segment and then the drivers updates the
      	  outstanding residue by the size of the segment. Another possibility is if
      	  the hardware supports SG and the segment descriptor has a field which gets
      	  set after the segment has been completed. The driver then counts the
      	  number of segments without the flag set to compute the residue.
      	* BURST: The DMA channel updates the residue field after each transferred
      	  burst. This is typically only supported if the hardware has a progress
      	  register of some sort (E.g. a register with the current read/write address
      	  or a register with the amount of bursts/beats/bytes that have been
      	  transferred or still need to be transferred).
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      50720563
    • Mark Brown's avatar
      Merge branch 'topic/samsung' of... · 8e6714ac
      Mark Brown authored
      Merge branch 'topic/samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-dma
      8e6714ac
    • Mark Brown's avatar
      Merge branch 'topic/axi' of... · 67c2fe2f
      Mark Brown authored
      Merge branch 'topic/axi' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-dma
      67c2fe2f