1. 26 6月, 2016 1 次提交
  2. 27 1月, 2016 1 次提交
    • A
      ASoC: s3c24xx: use const snd_soc_component_driver pointer · ba4bc32e
      Arnd Bergmann 提交于
      An older patch to convert the API in the s3c i2s driver
      ended up passing a const pointer into a function that takes
      a non-const pointer, so we now get a warning:
      
      sound/soc/samsung/s3c2412-i2s.c: In function 's3c2412_iis_dev_probe':
      sound/soc/samsung/s3c2412-i2s.c:172:9: error: passing argument 3 of 's3c_i2sv2_register_component' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
      
      However, the s3c_i2sv2_register_component() function again
      passes the pointer into another function taking a const, so
      we just need to change its prototype.
      
      Fixes: eca3b01d ("ASoC: switch over to use snd_soc_register_component() on s3c i2s")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      ba4bc32e
  3. 15 7月, 2014 1 次提交
  4. 24 6月, 2014 1 次提交
  5. 27 5月, 2014 1 次提交
  6. 22 5月, 2014 1 次提交
  7. 23 1月, 2014 1 次提交
  8. 06 10月, 2013 1 次提交
  9. 04 7月, 2013 1 次提交
  10. 27 3月, 2013 1 次提交
  11. 04 10月, 2011 1 次提交
    • A
      ASoC: samsung: s3c-i2s-v2.c needs module.h · f3a54a28
      Axel Lin 提交于
      Include <linux/module.h> to fix below build error:
      
        CC      sound/soc/samsung/s3c-i2s-v2.o
      sound/soc/samsung/s3c-i2s-v2.c:573: warning: data definition has no type or storage class
      sound/soc/samsung/s3c-i2s-v2.c:573: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
      sound/soc/samsung/s3c-i2s-v2.c:573: warning: parameter names (without types) in function declaration
      sound/soc/samsung/s3c-i2s-v2.c:638: warning: data definition has no type or storage class
      sound/soc/samsung/s3c-i2s-v2.c:638: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
      sound/soc/samsung/s3c-i2s-v2.c:638: warning: parameter names (without types) in function declaration
      sound/soc/samsung/s3c-i2s-v2.c:677: warning: data definition has no type or storage class
      sound/soc/samsung/s3c-i2s-v2.c:677: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
      sound/soc/samsung/s3c-i2s-v2.c:677: warning: parameter names (without types) in function declaration
      sound/soc/samsung/s3c-i2s-v2.c: In function 's3c_i2sv2_register_dai':
      sound/soc/samsung/s3c-i2s-v2.c:736: warning: initialization discards qualifiers from pointer target type
      sound/soc/samsung/s3c-i2s-v2.c: At top level:
      sound/soc/samsung/s3c-i2s-v2.c:754: warning: data definition has no type or storage class
      sound/soc/samsung/s3c-i2s-v2.c:754: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
      sound/soc/samsung/s3c-i2s-v2.c:754: warning: parameter names (without types) in function declaration
      sound/soc/samsung/s3c-i2s-v2.c:756: error: expected declaration specifiers or '...' before string constant
      sound/soc/samsung/s3c-i2s-v2.c:756: warning: data definition has no type or storage class
      sound/soc/samsung/s3c-i2s-v2.c:756: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      sound/soc/samsung/s3c-i2s-v2.c:756: warning: function declaration isn't a prototype
      make[3]: *** [sound/soc/samsung/s3c-i2s-v2.o] Error 1
      make[2]: *** [sound/soc/samsung] Error 2
      make[1]: *** [sound/soc] Error 2
      make: *** [sound] Error 2
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f3a54a28
  12. 11 1月, 2011 1 次提交
  13. 23 11月, 2010 2 次提交
  14. 12 8月, 2010 2 次提交
    • C
      ASoC: multi-component - Add Aquila sound driver · 3782a528
      Chanwoo Choi 提交于
      This patch add sound support for the Aquila board based on S5PC110.
      
      The Aquila board is based on Samsung SoC(S5PC110) and include
      WM8994 codec over I2S to support sound. This uses the I2Sv4 driver
      compatible with I2Sv5 to run sound.
      
      The kind of jack is below states :
      * SND_JACK_HEADPHONE
      * SND_JACK_HEADSET
      * SND_JACK_MECHANICAL
        : When TV-OUT cable is inserted on Aquila board,
        the TV-OUT cable isn't connected to television.
      * SND_JACK_AVOUT
        : When TV-OUT cable is inserted on Aquila board,
        the TV-OUT cable is connected to television.
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      
      ASoC: multi-component: SAMSUNG: Fix wrong field name on Aquila board
      
      This patch modify the wrong field name on Aquila board.
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      3782a528
    • L
      ASoC: multi-component - ASoC Multi-Component Support · f0fba2ad
      Liam Girdwood 提交于
      This patch extends the ASoC API to allow sound cards to have more than one
      CODEC and more than one platform DMA controller. This is achieved by dividing
      some current ASoC structures that contain both driver data and device data into
      structures that only either contain device data or driver data. i.e.
      
       struct snd_soc_codec    --->  struct snd_soc_codec (device data)
                                +->  struct snd_soc_codec_driver (driver data)
      
       struct snd_soc_platform --->  struct snd_soc_platform (device data)
                                +->  struct snd_soc_platform_driver (driver data)
      
       struct snd_soc_dai      --->  struct snd_soc_dai (device data)
                                +->  struct snd_soc_dai_driver (driver data)
      
       struct snd_soc_device   --->  deleted
      
      This now allows ASoC to be more tightly aligned with the Linux driver model and
      also means that every ASoC codec, platform and (platform) DAI is a kernel
      device. ASoC component private data is now stored as device private data.
      
      The ASoC sound card struct snd_soc_card has also been updated to store lists
      of it's components rather than a pointer to a codec and platform. The PCM
      runtime struct soc_pcm_runtime now has pointers to all its components.
      
      This patch adds DAPM support for ASoC multi-component and removes struct
      snd_soc_socdev from DAPM core. All DAPM calls are now made on a card, codec
      or runtime PCM level basis rather than using snd_soc_socdev.
      
      Other notable multi-component changes:-
      
       * Stream operations now de-reference less structures.
       * close_delayed work() now runs on a DAI basis rather than looping all DAIs
         in a card.
       * PM suspend()/resume() operations can now handle N CODECs and Platforms
         per sound card.
       * Added soc_bind_dai_link() to bind the component devices to the sound card.
       * Added soc_dai_link_probe() and soc_dai_link_remove() to probe and remove
         DAI link components.
       * sysfs entries can now be registered per component per card.
       * snd_soc_new_pcms() functionailty rolled into dai_link_probe().
       * snd_soc_register_codec() now does all the codec list and mutex init.
      
      This patch changes the probe() and remove() of the CODEC drivers as follows:-
      
       o Make CODEC driver a platform driver
       o Moved all struct snd_soc_codec list, mutex, etc initialiasation to core.
       o Removed all static codec pointers (drivers now support > 1 codec dev)
       o snd_soc_register_pcms() now done by core.
       o snd_soc_register_dai() folded into snd_soc_register_codec().
      
      CS4270 portions:
      Acked-by: NTimur Tabi <timur@freescale.com>
      
      Some TLV320aic23 and Cirrus platform fixes.
      Signed-off-by: NRyan Mallon <ryan@bluewatersys.com>
      
      TI CODEC and OMAP fixes
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      
      Samsung platform and misc fixes :-
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NJassi Brar <jassi.brar@samsung.com>
      Signed-off-by: NSeungwhan Youn <sw.youn@samsung.com>
      
      MPC8610 and PPC fixes.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      
      i.MX fixes and some core fixes.
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      
      J4740 platform fixes:-
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      
      CC: Tony Lindgren <tony@atomide.com>
      CC: Nicolas Ferre <nicolas.ferre@atmel.com>
      CC: Kevin Hilman <khilman@deeprootsystems.com>
      CC: Sascha Hauer <s.hauer@pengutronix.de>
      CC: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
      CC: Kuninori Morimoto <morimoto.kuninori@renesas.com>
      CC: Daniel Gloeckner <dg@emlix.com>
      CC: Manuel Lauss <mano@roarinelk.homelinux.net>
      CC: Mike Frysinger <vapier.adi@gmail.com>
      CC: Arnaud Patard <apatard@mandriva.com>
      CC: Wan ZongShun <mcuos.com@gmail.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      f0fba2ad
  15. 20 7月, 2010 1 次提交
  16. 05 5月, 2010 4 次提交
  17. 06 4月, 2010 1 次提交
  18. 20 3月, 2010 1 次提交
  19. 11 3月, 2010 2 次提交
  20. 10 3月, 2010 3 次提交
  21. 04 3月, 2010 1 次提交
  22. 18 11月, 2009 2 次提交
  23. 13 10月, 2009 1 次提交
  24. 15 9月, 2009 2 次提交
  25. 26 8月, 2009 1 次提交
  26. 25 8月, 2009 1 次提交
    • S
      ASoC: S3C platform: Fix s3c2410_dma_started() called at improper time · faf907c7
      Shine Liu 提交于
      s3c24xx dma has the auto reload feature, when the the trnasfer is done,
      CURR_TC(DSTAT[19:0], current value of transfer count) reaches 0, and DMA
      ACK becomes 1, and then, TC(DCON[19:0]) will be loaded into CURR_TC. So
      the transmission is repeated.
      
      IRQ is issued while auto reload occurs. We change the DISRC and
      DCON[19:0] in the ISR, but at this time, the auto reload has been
      performed already. The first block is being re-transmitted by the DMA.
      
      So we need rewrite the DISRC and DCON[19:0] for the next block
      immediatly after the this block has been started to be transported.
      
      The function s3c2410_dma_started() is for this perpose, which is called
      in the form of "s3c2410_dma_ctrl(prtd->params->channel,
      S3C2410_DMAOP_STARTED);" in s3c24xx_pcm_trigger().
      
      But it is not correct. DMA transmission won't start until DMA REQ signal
      arrived, it is the time s3c24xx_snd_txctrl(1) or s3c24xx_snd_rxctrl(1)
      is called in s3c24xx_i2s_trigger().
      
      In the current framework, s3c24xx_pcm_trigger() is always called before
      s3c24xx_pcm_trigger(). So the s3c2410_dma_started() should be called in
      s3c24xx_pcm_trigger() after s3c24xx_snd_txctrl(1) or
      s3c24xx_snd_rxctrl(1) is called in this function.
      
      However, s3c2410_dma_started() is dma related, to call this function we
      should provide the channel number, which is given by
      substream->runtime->private_data->params->channel. The private_data
      points to a struct s3c24xx_runtime_data object, which is define in
      s3c24xx_pcm.c, so s3c2410_dma_started() can't be called in s3c24xx_i2s.c
      
      Fix this by moving the call to signal the DMA started to the DAI
      drivers.
      Signed-off-by: NShine Liu <liuxian@redflag-linux.com>
      Signed-off-by: NShine Liu <shinel@foxmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      faf907c7
  27. 18 8月, 2009 1 次提交
  28. 28 5月, 2009 1 次提交
  29. 30 4月, 2009 2 次提交