[PATCH] ALSA: pcm: Enable MMAP status and control for ARMv7 and ARMv8

2019-04-17 Thread twischer
From: Timo Wischer Since ARMv7 hardware cache coherence is supported. "The SCU maintains coherency between the individual data caches in the Cortex-A5 MPCore processor using a variation of the MOESI protocol" [1]. Therefore this patch enables the MMAP access to the status and control

[PATCH 10/10] ALSA: aloop: Use timer of linked card if chosen

2019-03-26 Thread twischer
From: Timo Wischer If there is a hardware sound card linked to the loopback device the sound timer of the hardware sound card will be used for this loopback device. Such a link will be created when snd_pcm_link() was called. Linked dummy and loopback devices will be ignored. This feature can be

[PATCH 07/10] ALSA: aloop: Move CABLE_VALID_BOTH to the top of file

2019-03-26 Thread twischer
From: Timo Wischer so all functions can use the same. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 3105757..85a1519 100644 --- a/sound/drivers/aloop.c +++

[PATCH 06/10] ALSA: aloop: Rename all jiffies timer specific functions

2019-03-26 Thread twischer
From: Timo Wischer This commit does not change the behaviour. It only seperates the jiffies timer specific implementation from the generic part. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff

[PATCH 08/10] ALSA: aloop: Support selection of snd_timer instead of jiffies

2019-03-26 Thread twischer
From: Timo Wischer to do synchronous audio forwarding between hardware sound card and aloop devices. Such an audio route could look like the following: Sound card -> Loopback application -> ALSA loop device -> arecord In this case the loopback device should use the sound timer of the sound

[PATCH 09/10] ALSA: pcm: Add snd_pcm_ops for snd_pcm_link()

2019-03-26 Thread twischer
From: Timo Wischer snd_pcm_link() can be called by the user as long as the device is not yet started. Therefore currently a driver which wants to iterate over the linked substreams has to do this at the start trigger. But the start trigger should not block for a long time. Therefore there is no

[PATCH 05/10] ALSA: aloop: Use callback functions for timer specific implementations

2019-03-26 Thread twischer
From: Timo Wischer This commit only refectors the implementation. It does not change the behaviour. It is required to support other timers (e.g sound timer). Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 113 +- 1 file changed, 94

[PATCH 04/10] ALSA: aloop: Use always spin_lock_irqsave() for cable->lock

2019-03-25 Thread twischer
From: Timo Wischer to allow the usage of timer callbacks from interrupt context. For example the sound timer. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/sound/drivers/aloop.c

[PATCH 01/10] ALSA: aloop: Describe units of variables

2019-03-25 Thread twischer
From: Timo Wischer Describe the unit of the variables used to calculate the hw pointer depending on jiffies ticks. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c

[PATCH 03/10] ALSA: aloop: loopback_timer_stop: Support return of error code

2019-03-25 Thread twischer
From: Timo Wischer This is required for additional timer implementations which could detect errors and want to throw them. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/sound/drivers/aloop.c

[PATCH 02/10] ALSA: aloop: loopback_timer_start: Support return of error code

2019-03-25 Thread twischer
From: Timo Wischer This is required for additional timer implementations which could detect errors and want to throw them. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sound/drivers/aloop.c

[PATCH 00/10] ALSA: aloop: Support selection of snd_timer

2019-03-25 Thread twischer
With the following patch set any sound timer can be used as timer source for the aloop devices if selected. It can be select by the additional timer_source kernel module parameter: -2 the jiffies timer will be used as done without this patch (default) -1 the sound timer will be selected

[PATCH] ALSA: aloop: Support S24 sample formats

2019-03-25 Thread twischer
From: Timo Wischer Currently snd_aloop supports only S16 and S32 audio sample formats. With this patch the S24 formats are also supported. Signed-off-by: Timo Wischer --- sound/drivers/aloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/drivers/aloop.c

[PATCH v2] arm64: dts: renesas: r8a77965: add SSIU support for sound

2019-02-25 Thread twischer
From: Jiada Wang rsnd driver supports SSIU now, let's use it. Then, BUSIF DMA settings on rcar_sound,ssi (= rxu, txu) are no longer needed. Applies commit 8d14bfa074db ("arm64: dts: renesas: r8a7796: add SSIU support for sound") and commit 10bd03fa896e ("arm64: dts: renesas: r8a7796: remove

[PATCH v2] ASoC: rsnd: gen: fix SSI9 4/5/6/7 busif related register address

2019-02-25 Thread twischer
From: Jiada Wang Currently each SSI unit 's busif mode/adinr/dalign address is registered by: (in busif4 case) RSND_GEN_M_REG(SSI_BUSIF4_MODE, 0x500, 0x80) RSND_GEN_M_REG(SSI_BUSIF4_ADINR,0x504, 0x80) RSND_GEN_M_REG(SSI_BUSIF4_DALIGN, 0x508, 0x80) But according to user manual 41.1.4 Register

[PATCH] arm64: dts: renesas: r8a77965: add SSIU support for sound

2019-02-22 Thread twischer
From: Jiada Wang rsnd driver supports SSIU now, let's use it. Then, BUSIF DMA settings on rcar_sound,ssi (= rxu, txu) are no longer needed. Applies commit 8d14bfa074db ("arm64: dts: renesas: r8a7796: add SSIU support for sound") for r8a77965. Signed-off-by: Jiada Wang Signed-off-by: Timo

[PATCH] arm64: dts: renesas: r8a7796: remove unneeded sound #address/size-cells

2019-02-22 Thread twischer
From: Jiada Wang commit 78bc93b3ffb2 ("arm64: dts: renesas: r8a7796: Add address properties to rcar_sound port nodes") added missing #address-cells and #size-cells for sound ports. But, these are based on platform, not on SoC. This patch cleanups it. Signed-off-by: Jiada Wang Signed-off-by:

[PATCH] ASoC: rsnd: gen: fix SSI9 4/5/6/7 busif related register address

2019-02-22 Thread twischer
From: Jiada Wang Currently each SSI unit 's busif mode/adinr/dalign address is registered by: (in busif4 case) RSND_GEN_M_REG(SSI_BUSIF4_MODE, 0x500, 0x80) RSND_GEN_M_REG(SSI_BUSIF4_ADINR,0x504, 0x80) RSND_GEN_M_REG(SSI_BUSIF4_DALIGN, 0x508, 0x80) But according to user manual 41.1.4 Register

[PATCH] ASoC: rsnd: dma: fix SSI9 4/5/6/7 busif dma address

2019-02-22 Thread twischer
From: Jiada Wang Currently each SSI unit 's busif dma address is calculated by following calculation formulation: 0xec54 + 0x1000 * id + busif / 4 * 0xA000 + busif % 4 * 0x400 But according to user manual 41.1.4 Register Configuration ssi9 4/5/6/7 busif data register address