Re: [alsa-devel] [PATCH 2/3] ASoC: Davinci: pcm: add support for sram-support-less platforms

2012-10-02 Thread Peter Ujfalusi
On 09/22/2012 06:33 PM, Mark Brown wrote: On Fri, Aug 31, 2012 at 06:20:58PM +0530, Hebbar, Gururaja wrote: +config SND_DAVINCI_HAVE_SRAM +bool +default y if ARCH_DAVINCI=y +default n if ARCH_OMAP=y + I've been sitting on this mostly since it seems like a step back from

Re: [alsa-devel] [PATCH 1/2] ASoC: tlv320aic3x: Convert mic bias to a supply widget

2013-01-31 Thread Peter Ujfalusi
On 01/30/2013 02:22 PM, Hebbar Gururaja wrote: @@ -1493,6 +1544,28 @@ static int aic3x_i2c_probe(struct i2c_client *i2c, aic3x-setup = ai3x_setup; } + if (!of_property_read_u32(np, ai3x-micbias-vg, value)) { + switch

[PATCH] ARM: davinci: Fix McASP mem resource names

2013-11-13 Thread Peter Ujfalusi
The ASoC McASP driver looks for the mem resources by name and: mpu and dat regions. Change/add the needed name for the mem resources so the driver can pick the correct resource. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- Hi, This is needed for 3.13. Regards, Peter arch/arm/mach

[PATCH 08/18] dma: edma: Implement device_slave_caps callback

2014-03-13 Thread Peter Ujfalusi
With the callback implemented omap-dma can provide information to client drivers regarding to supported address widths, directions, residue granularity, etc. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 18 ++ 1 file changed, 18 insertions(+) diff

[PATCH 11/18] dma: edma: Prefix debug prints where the text were identical in prep callbacks

2014-03-13 Thread Peter Ujfalusi
since all other error cases are dev_err and this failure is similarly fatal as the other ones. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index

[PATCH 17/18] ASoC: davinci-mcasp: Assign the dma_data earlier in dai_probe callback

2014-03-13 Thread Peter Ujfalusi
Remove the dai startup callback and do the dma_data setup for dmaengine in the dai_probe function. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/davinci/davinci-mcasp.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git

[PATCH 13/18] dma: edma: Print the direction value as well when it is not supported

2014-03-13 Thread Peter Ujfalusi
In case of not supported direction it is better to print the direction also. It is unlikely, but in such an event it helps with the debugging. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 18/18] ASoC: davinci-mcasp: Place constraint on the period size based on FIFO config

2014-03-13 Thread Peter Ujfalusi
-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/davinci/davinci-mcasp.c | 20 1 file changed, 20 insertions(+) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 958933614ca4..17d1112bce24 100644 --- a/sound/soc/davinci/davinci

Re: [alsa-devel] [PATCH 14/18] ASoC: davinci: Add edma dmaengine platform driver

2014-03-13 Thread Peter Ujfalusi
On 03/13/2014 12:28 PM, Lars-Peter Clausen wrote: +int edma_pcm_platform_register(struct device *dev) +{ +if (dev-of_node) +return snd_dmaengine_pcm_register(dev, +edma_dmaengine_pcm_config, +SND_DMAENGINE_PCM_FLAG_NO_RESIDUE); Since the

Re: [PATCH 10/18] dma: edma: Reduce debug print verbosity for non verbose debugging

2014-03-13 Thread Peter Ujfalusi
On 03/13/2014 02:53 PM, Shevchenko, Andriy wrote: On Thu, 2014-03-13 at 11:18 +0200, Peter Ujfalusi wrote: Do not print the paRAM information when verbose debugging is not asked and also reduce the number of lines printed in edma_prep_dma_cyclic() Signed-off-by: Peter Ujfalusi peter.ujfal

Re: [alsa-devel] [PATCH 13/18] dma: edma: Print the direction value as well when it is not supported

2014-03-13 Thread Peter Ujfalusi
On 03/13/2014 03:03 PM, Shevchenko, Andriy wrote: On Thu, 2014-03-13 at 11:18 +0200, Peter Ujfalusi wrote: In case of not supported direction it is better to print the direction also. It is unlikely, but in such an event it helps with the debugging. Signed-off-by: Peter Ujfalusi peter.ujfal

Re: [PATCH 00/18] edma/ASoC: dmaengine PCM for AM335x and AM447x

2014-03-14 Thread Peter Ujfalusi
On 03/13/2014 03:46 PM, Mark Brown wrote: On Thu, Mar 13, 2014 at 11:18:22AM +0200, Peter Ujfalusi wrote: With this series AM335x and AM447x will use the dmaengine PCM for audio. The daVinci devices will keep using the davinci-pcm for now since I do not have means to test them but the code

[PATCH v2 02/14] dma: edma: Correct the handling of src/dst_maxburst == 0

2014-04-01 Thread Peter Ujfalusi
When clients asks for maxburst = 0 it is basically the same case as if they were asking for maxburst = 1 since in both case ASYNC need to be used and the eDMA is expected to write/read one word per DMA request. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 4

[PATCH v2 00/14] dma: edma: Fixes for cyclic (audio) operation

2014-04-01 Thread Peter Ujfalusi
have included some debug cleanups for the edma dmaengine driver also. Regards, Peter --- Peter Ujfalusi (14): platform_data: edma: Be precise with the paRAM struct dma: edma: Correct the handling of src/dst_maxburst == 0 dma: edma: Add support for DMA_PAUSE/RESUME operation dma: edma: Set

[PATCH v2 01/14] platform_data: edma: Be precise with the paRAM struct

2014-04-01 Thread Peter Ujfalusi
The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed to avoid any padding on non 32bit architectures. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/platform_data/edma.h

[PATCH v2 07/14] arm: common: edma: API to request non default queue for a channel

2014-04-01 Thread Peter Ujfalusi
, otherwise (when only one EQ/TC is available for the CC) the default queue is going to be used. For example: For optimal system performance the audio (cyclic) DMA should be placed to a separate queue which is different than what the rest of the system is using. Signed-off-by: Peter Ujfalusi

[PATCH v2 04/14] dma: edma: Set DMA_CYCLIC capability flag

2014-04-01 Thread Peter Ujfalusi
Indicate that the edma dmaengine driver has support for cyclic mode. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 1 + drivers/dma/edma.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index

[PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-01 Thread Peter Ujfalusi
Use the EVENTQ_1 for default and leave the EVENTQ_0 to be used by high priority channels, like audio. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common

[PATCH v2 03/14] dma: edma: Add support for DMA_PAUSE/RESUME operation

2014-04-01 Thread Peter Ujfalusi
Pause/Resume can be used by the audio stack when the stream is paused/resumed The edma platform code has support for this and the legacy audio stack used this. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 28 1 file changed, 28

[PATCH v2 06/14] arm: common: edma: Save the number of event queues/TCs

2014-04-01 Thread Peter Ujfalusi
For later use save the number of queues available for the CC. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 19520e2519d9..be267b2080be 100644 --- a/arch

[PATCH v2 09/14] dma: edma: Implement device_slave_caps callback

2014-04-01 Thread Peter Ujfalusi
With the callback implemented omap-dma can provide information to client drivers regarding to supported address widths, directions, residue granularity, etc. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 18 ++ 1 file changed, 18 insertions(+) diff

[PATCH v2 12/14] dma: edma: Prefix debug prints where the text were identical in prep callbacks

2014-04-01 Thread Peter Ujfalusi
since all other error cases are dev_err and this failure is similarly fatal as the other ones. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index

[PATCH v2 10/14] dma: edma: Simplify direction configuration in edma_config_pset()

2014-04-01 Thread Peter Ujfalusi
We only support DEV_TO_MEM or MEM_TO_DEV directions with edma driver and the check for the direction has been already done in the function calling edma_config_pset(). The error reporting is redundant and also the else if () can be removed. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com

[PATCH v2 08/14] DMA: edma: Use different eventq for cyclic channels

2014-04-01 Thread Peter Ujfalusi
-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 1dd9e8806975..10048b40fac8 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -628,6 +628,9 @@ static struct dma_async_tx_descriptor

[PATCH v2 11/14] dma: edma: Reduce debug print verbosity for non verbose debugging

2014-04-01 Thread Peter Ujfalusi
Do not print the paRAM information when verbose debugging is not asked and also reduce the number of lines printed in edma_prep_dma_cyclic() Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git

[PATCH v2 13/14] dma: edma: Add channel number to debug prints

2014-04-01 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma

[PATCH v2 14/14] dma: edma: Print the direction value as well when it is not supported

2014-04-01 Thread Peter Ujfalusi
In case of not supported direction it is better to print the direction also. It is unlikely, but in such an event it helps with the debugging. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 10/14] dma: edma: Simplify direction configuration in edma_config_pset()

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 01:40 AM, Joel Fernandes wrote: On 04/01/2014 08:06 AM, Peter Ujfalusi wrote: We only support DEV_TO_MEM or MEM_TO_DEV directions with edma driver and the check for the direction has been already done in the function calling edma_config_pset(). The error reporting is redundant

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 11:56 AM, Sekhar Nori wrote: On Friday 11 April 2014 02:20 PM, Peter Ujfalusi wrote: On 04/11/2014 11:17 AM, Sekhar Nori wrote: On Tuesday 01 April 2014 06:36 PM, Peter Ujfalusi wrote: Use the EVENTQ_1 for default and leave the EVENTQ_0 to be used by high priority channels, like

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
Hi Vinod, On 04/11/2014 12:42 PM, Vinod Koul wrote: On Fri, Apr 11, 2014 at 12:38:00PM +0300, Peter Ujfalusi wrote: On 04/11/2014 11:56 AM, Sekhar Nori wrote: On Friday 11 April 2014 02:20 PM, Peter Ujfalusi wrote: On 04/11/2014 11:17 AM, Sekhar Nori wrote: On Tuesday 01 April 2014 06:36 PM

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-11 Thread Peter Ujfalusi
On 04/11/2014 02:31 PM, Vinod Koul wrote: I would say that it is channel based config. I don't see the reason why would one mix different priorities on a configured channel between descriptors. If not then we can add this in dma_slave_config ? So adding to the struct for example: bool

[PATCH v3 00/10] dma: edma: Fixes for cyclic (audio) operation

2014-04-14 Thread Peter Ujfalusi
things sorted out I noticed that the debug was too verbose and the important information was hidden even when the we did not asked for verbose dmaengine debug. I have included some debug cleanups for the edma dmaengine driver also. Regards, Peter --- Peter Ujfalusi (10): platform_data: edma

[PATCH v3 02/10] arm: common: edma: Save the number of event queues/TCs

2014-04-14 Thread Peter Ujfalusi
For later use save the number of queues available for the CC. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- arch/arm/common/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index

[PATCH v3 04/10] dmaengine: edma: Add support for DMA_PAUSE/RESUME operation

2014-04-14 Thread Peter Ujfalusi
Pause/Resume can be used by the audio stack when the stream is paused/resumed The edma platform code has support for this and the legacy audio stack used this. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 28

[PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-04-14 Thread Peter Ujfalusi
The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed to avoid any padding on non 32bit architectures. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com

[PATCH v3 05/10] dmaengine: edma: Set DMA_CYCLIC capability flag

2014-04-14 Thread Peter Ujfalusi
Indicate that the edma dmaengine driver has support for cyclic mode. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- arch/arm/common/edma.c | 1 + drivers/dma/edma.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/common/edma.c b

[PATCH v3 03/10] dmaengine: edma: Correct the handling of src/dst_maxburst == 0

2014-04-14 Thread Peter Ujfalusi
When clients asks for maxburst = 0 it is basically the same case as if they were asking for maxburst = 1 since in both case ASYNC need to be used and the eDMA is expected to write/read one word per DMA request. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo

[PATCH v3 07/10] dmaengine: edma: Reduce debug print verbosity for non verbose debugging

2014-04-14 Thread Peter Ujfalusi
Do not print the paRAM information when verbose debugging is not asked and also reduce the number of lines printed in edma_prep_dma_cyclic() Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 11 +-- 1 file changed, 5

[PATCH v3 10/10] dmaengine: edma: Print the direction value as well when it is not supported

2014-04-14 Thread Peter Ujfalusi
In case of not supported direction it is better to print the direction also. It is unlikely, but in such an event it helps with the debugging. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v3 09/10] dmaengine: edma: Add channel number to debug prints

2014-04-14 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH v3 08/10] dmaengine: edma: Prefix debug prints where the text were identical in prep callbacks

2014-04-14 Thread Peter Ujfalusi
since all other error cases are dev_err and this failure is similarly fatal as the other ones. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/dma

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Peter Ujfalusi
Hi Vinod, On 04/11/2014 03:46 PM, Vinod Koul wrote: I think the number shouldn't be viewed in absolute terms. If we decide that (lets say) 0-7, then any controller should map 0 to lowest and 7 to highest. For your case you can do this and then intermediate numbers would be medium

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Peter Ujfalusi
On 04/14/2014 03:12 PM, Sekhar Nori wrote: On Monday 14 April 2014 05:26 PM, Peter Ujfalusi wrote: Hi Vinod, On 04/11/2014 03:46 PM, Vinod Koul wrote: I think the number shouldn't be viewed in absolute terms. If we decide that (lets say) 0-7, then any controller should map 0 to lowest

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-16 Thread Peter Ujfalusi
On 04/14/2014 05:32 PM, Sekhar Nori wrote: Yes, you can. But as soon as you have other devices using the same priority (with eDMA3 at least) and asks for a 'long' transfer it can ruin the audio. During audio playback/capture you execute a long MMC read for example can introduce a glitch.

[RESEND] dmaengine: edma: Add channel number to debug prints

2014-04-24 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Acked-by: Joel Fernandes jo...@ti.com --- Hi Vinod, rebased on: git://git.infradead.org/users/vkoul/slave-dma.git next On top

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-24 Thread Peter Ujfalusi
On 04/16/2014 07:05 PM, Joel Fernandes wrote: On 04/16/2014 07:59 AM, Peter Ujfalusi wrote: [..] If the dma-priority is missing we should assume lowest priority (0). The highest priority depends on the platform. For eDMA3 in AM335x it is three level. For designware controller you might have

Re: [PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-05-27 Thread Peter Ujfalusi
On 05/27/2014 12:32 AM, Olof Johansson wrote: Hi, On Mon, Apr 14, 2014 at 4:41 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed

Re: [PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-05-28 Thread Peter Ujfalusi
On 05/27/2014 06:03 PM, Joel Fernandes wrote: On 05/27/2014 05:22 AM, Peter Ujfalusi wrote: On 05/27/2014 12:32 AM, Olof Johansson wrote: [..] I came across this patch when I was looking at a pull request from Sekhar for EDMA cleanups, and it made me look closer at the contents of this file

[PATCH 3/3] dma: edma: Serve cyclic (audio) channels with high priority queue

2014-07-08 Thread Peter Ujfalusi
Move the DMA channel used in cyclic mode (audio) to the highest priority event queue which helps to reduce audio problems. When the channel is terminated, move it back to the default queue. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 8 1 file changed, 8

[PATCH 0/3] ARM/dma: edma: Serve cyclic clients via high priority queue

2014-07-08 Thread Peter Ujfalusi
priority. In the dmaengine driver we move the cyclic channel to queue0 (highest priority) and move it back to default queue when the channel is terminated. Regards, Peter --- Peter Ujfalusi (3): ARM: edma: Set default queue to lowest priority ARM: edma: Add edma_assign_channel_eventq() to move

[PATCH 1/3] ARM: edma: Set default queue to lowest priority

2014-07-08 Thread Peter Ujfalusi
Use the lowest priority queue as default for clients. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 485be42519b9..f834aae7720f 100644

[PATCH 2/3] ARM: edma: Add edma_assign_channel_eventq() to move channel to a give queue

2014-07-08 Thread Peter Ujfalusi
In some cases it is desired to move a channel to a specific event queue. Such a use case is audio, where it is preferred that it is served with highest priority compared to other DMA clients. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 28

[PATCH 2/2] dma: edma: Support to suppress the period interrupts in cyclic mode

2014-07-16 Thread Peter Ujfalusi
If the client (audio) does not request interrupts for every period we can disable them. With updated audio driver stack we can play audio w/o the need to process any edma interrupts. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 6 +++--- 1 file changed, 3

[PATCH 1/2] dma: edma: Update caps-residue_granularity to match with reality

2014-07-16 Thread Peter Ujfalusi
The edma can report accurate DMA position so update the residue_granularity to DMA_RESIDUE_GRANULARITY_BURST. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH 0/2] dma: edma: Allow to disable eDMA IRQ during cyclic transfer

2014-07-16 Thread Peter Ujfalusi
pulse some_music.mp3 # yet another terminal to monitor the interrupts watch cat /proc/interrupts # note the non increasing number of edma interrupts ;) Regards, Peter --- Peter Ujfalusi (2): dma: edma: Update caps-residue_granularity to match with reality dma: edma: Support to suppress

Re: [PATCH 0/2] dma: edma: Allow to disable eDMA IRQ during cyclic transfer

2014-07-28 Thread Peter Ujfalusi
On 07/16/2014 03:29 PM, Peter Ujfalusi wrote: Hi, After this series clients can ask to not receive notifications after each period. In this case we can disable the completion interrupt since the position reporting does not rely on it for cyclic mode. Patchset for ASoC part has been sent

[PATCH 1/2] ARM: davinci: board-da850-evm: Mark dcdc2 of TPS65070 as always_on

2014-07-28 Thread Peter Ujfalusi
DCDC2 should not be turned off since it is powering the CPU among other things. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/board-da850-evm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci

[PATCH 2/2] ARM: davinci: board-da850-evm: Add needed regulators for tlv320aic3106 codec

2014-07-28 Thread Peter Ujfalusi
IOVDD: tps65070's dcdc2 AVDD and DRVDD: fixed regulator derived from 5V via TPS73701DCQ DVDD: fixed regulator derived from 5V via TPS73701DCQ This patch needed to be able to probe the audio codec. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/board-da850-evm.c

[PATCH 1/2] dmaengine: edma: Do not change the error code returned from edma_alloc_slot

2014-07-31 Thread Peter Ujfalusi
In case of edma_alloc_slot() failure during probe we should return the error unchanged to make debugging easier. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH 2/2] dmaengine: edma: Do not register second device when booted with DT

2014-07-31 Thread Peter Ujfalusi
DT boot does not yet support more than one edma device. To avoid issues at runtime we should not register the second device when the kernel is booted with DT. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/dma/edma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0

2014-07-31 Thread Peter Ujfalusi
Add OF_DEV_AUXDATA for mcasp to be able to use clocks. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index ed1928740b5f..f703d82f08a8

[PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot

2014-07-31 Thread Peter Ujfalusi
Hi, The following series will enable audio via simple card on the board when booted with DT. For edma one patch is needed to have working dma: http://marc.info/?l=linux-omapm=140680159327749w=2 Regards, Peter --- Peter Ujfalusi (6): ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0

[PATCH 6/6] ARM: DTS: da850-evm: Enable audio via simple-card

2014-07-31 Thread Peter Ujfalusi
The audio on the board is using McASP - tlv320aic3106 codec and we have LineIn and LineOut jacks. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/da850

[PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-07-31 Thread Peter Ujfalusi
The board uses aic3106 for audio. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 09118c72e83f..b9ef2be0b145 100644

[PATCH 2/6] ARM: DTS: da850: Add node for edma0

2014-07-31 Thread Peter Ujfalusi
Add DT node for edma0. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index b695548dbb4e..41ce4e8bf227 100644 --- a/arch/arm/boot/dts/da850

[PATCH 4/6] ARM: DTS: da850-evm: Enable McASP via DT boot

2014-07-31 Thread Peter Ujfalusi
Add pinctrl nodes for the McASP0 pins and configure McASP to the desired mode for the board. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/da850

[PATCH 3/6] ARM: DTS: da850: Add node for McASP

2014-07-31 Thread Peter Ujfalusi
Node for mcasp0 Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 41ce4e8bf227..0bd98cd00816 100644 --- a/arch/arm/boot/dts

Re: [PATCH 2/6] ARM: DTS: da850: Add node for edma0

2014-07-31 Thread Peter Ujfalusi
On 07/31/2014 05:26 PM, Sergei Shtylyov wrote: On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: Add DT node for edma0. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-07-31 Thread Peter Ujfalusi
On 07/31/2014 05:24 PM, Sergei Shtylyov wrote: Hello. On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: The board uses aic3106 for audio. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 14 ++ 1 file changed, 14 insertions

[PATCH v2 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot

2014-08-01 Thread Peter Ujfalusi
working dma: http://marc.info/?l=linux-omapm=140680159327749w=2 Regards, Peter --- Peter Ujfalusi (6): ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 ARM: DTS: da850: Add node for edma0 ARM: DTS: da850: Add node for McASP ARM: DTS: da850-evm: Enable McASP via DT boot ARM: DTS

[PATCH v2 2/6] ARM: DTS: da850: Add node for edma0

2014-08-01 Thread Peter Ujfalusi
Add DT node for edma0. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index b695548dbb4e..41ce4e8bf227 100644 --- a/arch/arm/boot/dts/da850

[PATCH v2 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0

2014-08-01 Thread Peter Ujfalusi
Add OF_DEV_AUXDATA for mcasp to be able to use clocks. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index ed1928740b5f..f703d82f08a8

[PATCH v2 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-01 Thread Peter Ujfalusi
The board uses aic3106 for audio. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 1422c311af4c..41715b495861 100644

[PATCH v2 4/6] ARM: DTS: da850-evm: Enable McASP via DT boot

2014-08-01 Thread Peter Ujfalusi
Add pinctrl nodes for the McASP0 pins and configure McASP to the desired mode for the board. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts

[PATCH v2 6/6] ARM: DTS: da850-evm: Enable audio via simple-card

2014-08-01 Thread Peter Ujfalusi
The audio on the board is using McASP - tlv320aic3106 codec and we have LineIn and LineOut jacks. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850-evm.dts | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/da850

[PATCH v2 3/6] ARM: DTS: da850: Add node for McASP

2014-08-01 Thread Peter Ujfalusi
Node for mcasp0 Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/boot/dts/da850.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 41ce4e8bf227..0bd98cd00816 100644 --- a/arch/arm/boot/dts

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-01 Thread Peter Ujfalusi
On 08/01/2014 03:49 PM, Sergei Shtylyov wrote: I do. We should follow the standard consistently. Why not call the node sound-codec? Well, there is _zero_ cases when the audio codec node is named as sound-codec in linux-next but we have wm, tlv, twl, max etc. Yeah, there are

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-01 Thread Peter Ujfalusi
Hi, On 08/01/2014 04:13 PM, Sergei Shtylyov wrote: Hello. On 08/01/2014 05:02 PM, Peter Ujfalusi wrote: I do. We should follow the standard consistently. Why not call the node sound-codec? Well, there is _zero_ cases when the audio codec node is named as sound-codec in linux-next

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-04 Thread Peter Ujfalusi
On 08/01/2014 04:34 PM, Peter Ujfalusi wrote: Hi, On 08/01/2014 04:13 PM, Sergei Shtylyov wrote: Hello. On 08/01/2014 05:02 PM, Peter Ujfalusi wrote: I do. We should follow the standard consistently. Why not call the node sound-codec? Well, there is _zero_ cases when the audio

[PATCH] ARM: edma: Fix configuration parsing for SoCs with multiple eDMA3 CC

2014-08-04 Thread Peter Ujfalusi
# 3.16 Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/common/edma.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 88099175fc56..d86771abbf57 100644 --- a/arch/arm/common/edma.c +++ b/arch/arm

Re: [PATCH] ARM: edma: Fix configuration parsing for SoCs with multiple eDMA3 CC

2014-08-11 Thread Peter Ujfalusi
On 08/05/2014 07:32 PM, Vinod Koul wrote: On Mon, Aug 04, 2014 at 03:26:56PM +0300, Peter Ujfalusi wrote: The edma_setup_from_hw() should know about the CC number when parsing the CCCFG register - when it reads the register to be precise. The base addresses for CCs stored in an array and we