1. 15 9月, 2015 1 次提交
  2. 21 7月, 2015 1 次提交
  3. 18 7月, 2015 2 次提交
  4. 17 7月, 2015 9 次提交
  5. 16 6月, 2015 10 次提交
  6. 22 5月, 2015 1 次提交
    • K
      ASoC: rsnd: spin lock for interrupt handler · 02299d98
      Kuninori Morimoto 提交于
      Renesas R-Car driver interrupt handler was not locked before.
      But now, SSI/SRC interrupt handler calls restart function
      which should be called under spin lock.
      Below error might happen witout this patch.
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000048
      pgd = edfac000
      [00000048] *pgd=6e0f0831, *pte=00000000, *ppte=00000000
      Internal error: Oops: 17 [#1] SMP ARM
      CPU: 0 PID: 2009 Comm: aplay Not tainted 4.1.0-rc2-dirty #4
      Hardware name: Generic R8A7790 (Flattened Device Tree)
      task: eeac9040 ti: eebe8000 task.ti: eebe8000
      PC is at rsnd_get_adinr+0x28/0x60
      LR is at rsnd_src_ssiu_start+0xdc/0x19c
      pc : [<c0409790>]    lr : [<c040c068>]    psr: a0000193
      sp : eebe9e58  ip : eebe9e68  fp : eebe9e64
      r10: c06ed9d0  r9 : ee919d10  r8 : 00000001
      r7 : 00000001  r6 : ee1cb090  r5 : 00000000  r4 : edcaa418
      r3 : 00000000  r2 : eea8ce00  r1 : 80000193  r0 : edcaa418
      ...
      Reported-by: NCao Minh Hiep <cm-hiep@jinso.co.jp>
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Tested-by: NKeita Kobayashi <keita.kobayashi.ym@renesas.com>
      Tested by: Cao Minh Hiep <cm-hiep@jinso.co.jp>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      02299d98
  7. 21 5月, 2015 1 次提交
  8. 12 5月, 2015 1 次提交
  9. 28 4月, 2015 3 次提交
  10. 01 4月, 2015 1 次提交
  11. 28 3月, 2015 2 次提交
  12. 23 3月, 2015 3 次提交
  13. 07 3月, 2015 5 次提交
    • K
      ASoC: rsnd: 1st DMAC dma-names cares subnode · 72adc61f
      Kuninori Morimoto 提交于
      Renesas R-Car sound (= rsnd) needs 2 DMAC which are called as
      Audio DMAC (= 1st DMAC) and Audio DMAC peri peri (2nd DMAC).
      And rsnd had assumed that 1st / 2nd DMACs are implemented as DMAEngine.
      But, in result of DMA ML discussion, 2nd DMAC was concluded that it is
      not a general purpose DMAC (2nd DMAC is for Device to Device inside
      sound system). Additionally, current DMAEngine can't support Device to
      Device, and we don't have correct DT bindings for it at this point.
      So the easiest solution for it is that move it from DMAEngine to rsnd
      driver.
      
      dma-names on DT was implemented as no difference between 1st / 2nd
      DMAC's, since rsnd had assumed that both DMACs are implemented as
      DMAEngine. That style was "src_dst". But now, 2nd DMAC was implemented
      as non DMAEngine, and it doesn't need dma-names anymore. So, this
      dma-names rule is no longer needed.
      
      And additionally, dma-names was assumed that it has all
      (= SSI/SSIU/SRC/DVC) nodes under sound node.
      
      In upstream code, no SoC/platform is supporting DMA for rsnd driver yet.
      This means there is no compatible issue if this patch changes
      dma-names's rule of DT.
      
      This patch assumes dma-names for 1st DMAC are tx/rx base, and listed
      in each SSI/SRC/DVC subnode
      ex)
      	rcar_sound,dvc {
      		dvc0: dvc@0 {
      			dmas = <&audma0 0xbc>;
      			dma-names = "tx";
      		};
      	...
      
      	rcar_sound,src {
      		src0: src@0 {
      			...
      			dmas = <&audma0 0x85>, <&audma1 0x9a>;
      			dma-names = "rx", "tx";
      		};
      	...
      
      	rcar_sound,ssi {
      		ssi0: ssi@0 {
      			...
      			dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>;
      			dma-names = "rx", "tx", "rxu", "txu";
      		};
      	...
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      72adc61f
    • K
      ASoC: rsnd: add Audio DMAC peri peri support rework · 288f392e
      Kuninori Morimoto 提交于
      Renesas R-Car sound (= rsnd) needs 2 DMAC which are called as
      Audio DMAC (= 1st DMAC) and Audio DMAC peri peri (2nd DMAC).
      And rsnd had assumed that 1st / 2nd DMACs are implemented as DMAEngine.
      But, in result of DMA ML discussion, 2nd DMAC was concluded that it is
      not a general purpose DMAC (2nd DMAC is for Device to Device inside
      sound system). Additionally, current DMAEngine can't support Device to
      Device, and we don't have correct DT bindings for it at this point.
      So the easiest solution for it is that move it from DMAEngine to rsnd
      driver.
      Audio DMAC peri peri is controlled from sound driver without DMAEngine
      by this patch.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      288f392e
    • K
      ASoC: rsnd: add dma.c for Audio DMAC / Audio DMAC peri peri · bfe834be
      Kuninori Morimoto 提交于
      Renesas sound driver had been assumed that Audio DMAC /
      Audio DMAC peri peri are implemented by DMAEngine. But, result of DMA
      ML discussion, it was concluded that it is not a general purpose DMAC.
      And it should be moved from current DMAEngine to rsnd driver.
      So, Audio DMAC peri peri become non DMAEngine.
      
      OTOH, ALSA SoC has soc-generic-dmaengine-pcm implementation. but it
      seems difficult to use this generic implementation on rsnd driver at
      this point, since it needs to fallback to PIO mode if DMA can't use.
      and additionally it needs 2 DMAC (= Audio DMAC / Audio DMAC peri peri).
      These are not "generic" feature.
      
      Of course I will try to use this generic dmaengine in the future somehow,
      but just use current style at this point until it can formally use 2 DMACs.
      This patch adds new dma.c and moves current dma code to dma.c from core.c.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bfe834be
    • K
      ASoC: rsnd: remove un-needed parameter from rsnd_dma_quit() · 8a2ff426
      Kuninori Morimoto 提交于
      priv is not used on rsnd_dma_quit()
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      8a2ff426
    • K
      ASoC: rsnd: remove unused rsnd_dma_available() · 9c706ab2
      Kuninori Morimoto 提交于
      rsnd_dma_available() is not used. Let's remove it.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      9c706ab2