* [PATCH 00/10] Add support for img AXD audio hardware decoder
@ 2015-08-24 12:39 Qais Yousef
2015-08-24 12:39 ` [PATCH 02/10] dt: add img,axd.txt device tree binding document Qais Yousef
2015-08-26 18:04 ` [PATCH 00/10] Add support for img AXD audio hardware decoder Mark Brown
0 siblings, 2 replies; 6+ messages in thread
From: Qais Yousef @ 2015-08-24 12:39 UTC (permalink / raw)
To: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw
Cc: Qais Yousef, Thomas Gleixner, Jason Cooper, Marc Zyngier,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-mips-6z/3iImG2C8G8FEW9MqTrA, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
devicetree-u79uwXL29TY76Z2rM5mHXA, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai
This patch series adds AXD Alsa Compress Offload SoC driver.
AXD is an audio hardware based on MIPS architecture that supports decoding,
encoding, GEQ, resampling, mixing and synchronisation. At the moment only
decoding support is added in hope to add the rest of the functionality on
top of that once this is accepted.
I divided the files into separate patches by functionality in hope it'll
make the reviewing process easier. Worth noting that a lot of the cmd interface
helper funtions in patch 7 are not used yet but will be as support for more
functionality is added later.
At the moment this code has been tested on Pistachio SoC using gstreamer patched
with the code in this link
https://bugzilla.gnome.org/show_bug.cgi?id=743192
Qais Yousef (10):
irqchip: irq-mips-gic: export gic_send_ipi
dt: add img,axd.txt device tree binding document
ALSA: add AXD Audio Processing IP alsa driver
ALSA: axd: add fw binary header manipulation files
ALSA: axd: add buffers manipulation files
ALSA: axd: add basic files for sending/receiving axd cmds
ALSA: axd: add cmd interface helper functions
ALSA: axd: add low level AXD platform setup files
ALSA: axd: add alsa compress offload operations
ALSA: axd: add Makefile
.../devicetree/bindings/sound/img,axd.txt | 34 +
drivers/irqchip/irq-mips-gic.c | 1 +
sound/soc/Kconfig | 1 +
sound/soc/Makefile | 1 +
sound/soc/img/Kconfig | 11 +
sound/soc/img/Makefile | 1 +
sound/soc/img/axd/Makefile | 13 +
sound/soc/img/axd/axd_alsa_ops.c | 211 ++
sound/soc/img/axd/axd_api.h | 649 ++++
sound/soc/img/axd/axd_buffers.c | 243 ++
sound/soc/img/axd/axd_buffers.h | 74 +
sound/soc/img/axd/axd_cmds.c | 102 +
sound/soc/img/axd/axd_cmds.h | 532 ++++
sound/soc/img/axd/axd_cmds_config.c | 1235 ++++++++
sound/soc/img/axd/axd_cmds_decoder_config.c | 422 +++
sound/soc/img/axd/axd_cmds_info.c | 1249 ++++++++
sound/soc/img/axd/axd_cmds_internal.c | 3264 ++++++++++++++++++++
sound/soc/img/axd/axd_cmds_internal.h | 317 ++
sound/soc/img/axd/axd_cmds_pipes.c | 1387 +++++++++
sound/soc/img/axd/axd_hdr.c | 64 +
sound/soc/img/axd/axd_hdr.h | 24 +
sound/soc/img/axd/axd_module.c | 742 +++++
sound/soc/img/axd/axd_module.h | 83 +
sound/soc/img/axd/axd_platform.h | 35 +
sound/soc/img/axd/axd_platform_mips.c | 416 +++
25 files changed, 11111 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/img,axd.txt
create mode 100644 sound/soc/img/Kconfig
create mode 100644 sound/soc/img/Makefile
create mode 100644 sound/soc/img/axd/Makefile
create mode 100644 sound/soc/img/axd/axd_alsa_ops.c
create mode 100644 sound/soc/img/axd/axd_api.h
create mode 100644 sound/soc/img/axd/axd_buffers.c
create mode 100644 sound/soc/img/axd/axd_buffers.h
create mode 100644 sound/soc/img/axd/axd_cmds.c
create mode 100644 sound/soc/img/axd/axd_cmds.h
create mode 100644 sound/soc/img/axd/axd_cmds_config.c
create mode 100644 sound/soc/img/axd/axd_cmds_decoder_config.c
create mode 100644 sound/soc/img/axd/axd_cmds_info.c
create mode 100644 sound/soc/img/axd/axd_cmds_internal.c
create mode 100644 sound/soc/img/axd/axd_cmds_internal.h
create mode 100644 sound/soc/img/axd/axd_cmds_pipes.c
create mode 100644 sound/soc/img/axd/axd_hdr.c
create mode 100644 sound/soc/img/axd/axd_hdr.h
create mode 100644 sound/soc/img/axd/axd_module.c
create mode 100644 sound/soc/img/axd/axd_module.h
create mode 100644 sound/soc/img/axd/axd_platform.h
create mode 100644 sound/soc/img/axd/axd_platform_mips.c
Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
Cc: Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
Cc: Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>
Cc: Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Jaroslav Kysela <perex-/Fr2/VpizcU@public.gmane.org>
Cc: Takashi Iwai <tiwai-IBi9RG/b67k@public.gmane.org>
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 02/10] dt: add img,axd.txt device tree binding document
2015-08-24 12:39 [PATCH 00/10] Add support for img AXD audio hardware decoder Qais Yousef
@ 2015-08-24 12:39 ` Qais Yousef
[not found] ` <1440419959-14315-3-git-send-email-qais.yousef-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-08-26 18:04 ` [PATCH 00/10] Add support for img AXD audio hardware decoder Mark Brown
1 sibling, 1 reply; 6+ messages in thread
From: Qais Yousef @ 2015-08-24 12:39 UTC (permalink / raw)
To: alsa-devel
Cc: Qais Yousef, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
Kumar Gala, devicetree, linux-kernel
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
.../devicetree/bindings/sound/img,axd.txt | 34 ++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/img,axd.txt
diff --git a/Documentation/devicetree/bindings/sound/img,axd.txt b/Documentation/devicetree/bindings/sound/img,axd.txt
new file mode 100644
index 000000000000..6a8764a79d01
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/img,axd.txt
@@ -0,0 +1,34 @@
+* AXD Audio Processing IP Binding *
+
+Required properties:
+- compatible: "img,axd"
+- clocks: phandle for the clock that drives AXD.
+- interrupts: the GIC interrupt where AXD is connected
+- gic-irq: it takes two non-zero values, the first one is the host hwirq and
+ the second one is AXD's. Host's hwirq should match the value in
+ interrupts.
+
+Optional properties:
+- vpe: VPE number on which AXD should start. Must be provided if AXD is
+ running as a single VPE along Linux on the same core.
+ It can't be VPE0.
+ The VPE will be offlined before AXD is loaded.
+- inbuf-size: size of shared input buffers area. By default it's 0x7800 bytes.
+- outbuf-size: size of shared output buffers area. By default it's 0x3c000 bytes.
+
+
+Example:
+
+ axdclk: axdclk@400M {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <400000000>;
+ };
+
+ axd {
+ compatible = "img,axd";
+ clocks = <&axdclk>;
+ interrupts = <36 IRQ_TYPE_EDGE_RISING>;
+ gic-irq = <36 37>;
+ vpe = <1>;
+ };
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 00/10] Add support for img AXD audio hardware decoder
2015-08-24 12:39 [PATCH 00/10] Add support for img AXD audio hardware decoder Qais Yousef
2015-08-24 12:39 ` [PATCH 02/10] dt: add img,axd.txt device tree binding document Qais Yousef
@ 2015-08-26 18:04 ` Mark Brown
2015-08-27 9:07 ` Qais Yousef
1 sibling, 1 reply; 6+ messages in thread
From: Mark Brown @ 2015-08-26 18:04 UTC (permalink / raw)
To: Qais Yousef
Cc: Mark Rutland, linux-mips, alsa-devel, Jason Cooper, Pawel Moll,
Ian Campbell, Marc Zyngier, Takashi Iwai, linux-kernel,
Liam Girdwood, devicetree, Rob Herring, Kumar Gala,
Thomas Gleixner
[-- Attachment #1.1: Type: text/plain, Size: 745 bytes --]
On Mon, Aug 24, 2015 at 01:39:09PM +0100, Qais Yousef wrote:
> Qais Yousef (10):
> irqchip: irq-mips-gic: export gic_send_ipi
> dt: add img,axd.txt device tree binding document
> ALSA: add AXD Audio Processing IP alsa driver
> ALSA: axd: add fw binary header manipulation files
> ALSA: axd: add buffers manipulation files
> ALSA: axd: add basic files for sending/receiving axd cmds
> ALSA: axd: add cmd interface helper functions
> ALSA: axd: add low level AXD platform setup files
> ALSA: axd: add alsa compress offload operations
> ALSA: axd: add Makefile
Please try to use subject lines matching the style for the subsystem, I
very nearly deleted this unread because it looks like an ALSA patch
series, not an ASoC one.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 00/10] Add support for img AXD audio hardware decoder
2015-08-26 18:04 ` [PATCH 00/10] Add support for img AXD audio hardware decoder Mark Brown
@ 2015-08-27 9:07 ` Qais Yousef
0 siblings, 0 replies; 6+ messages in thread
From: Qais Yousef @ 2015-08-27 9:07 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Thomas Gleixner, Jason Cooper, Marc Zyngier,
linux-kernel, linux-mips, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, devicetree, Liam Girdwood,
Jaroslav Kysela, Takashi Iwai
On 08/26/2015 07:04 PM, Mark Brown wrote:
> On Mon, Aug 24, 2015 at 01:39:09PM +0100, Qais Yousef wrote:
>
>> Qais Yousef (10):
>> irqchip: irq-mips-gic: export gic_send_ipi
>> dt: add img,axd.txt device tree binding document
>> ALSA: add AXD Audio Processing IP alsa driver
>> ALSA: axd: add fw binary header manipulation files
>> ALSA: axd: add buffers manipulation files
>> ALSA: axd: add basic files for sending/receiving axd cmds
>> ALSA: axd: add cmd interface helper functions
>> ALSA: axd: add low level AXD platform setup files
>> ALSA: axd: add alsa compress offload operations
>> ALSA: axd: add Makefile
> Please try to use subject lines matching the style for the subsystem, I
> very nearly deleted this unread because it looks like an ALSA patch
> series, not an ASoC one.
OK sorry about that. I'll fix this in the next series.
Thanks,
Qais
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-27 9:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24 12:39 [PATCH 00/10] Add support for img AXD audio hardware decoder Qais Yousef
2015-08-24 12:39 ` [PATCH 02/10] dt: add img,axd.txt device tree binding document Qais Yousef
[not found] ` <1440419959-14315-3-git-send-email-qais.yousef-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-08-24 13:26 ` Mark Rutland
2015-08-24 13:49 ` Qais Yousef
2015-08-26 18:04 ` [PATCH 00/10] Add support for img AXD audio hardware decoder Mark Brown
2015-08-27 9:07 ` Qais Yousef
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).