Hello
I try to make a driver for audio codec in OP PC sun8i.
I starting from sun4i-codec.c driver for A10-A20 SOC because H3 have major same
register related audiocodec datasheet.
I setup pll_audio, change some #define offset according to H3 datasheet audio
codec but for now i 'm facing to dmaengine problem.
When i start to play or record one file wav, the kernel hang on this function :
static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
in pcm_dmaengine.c, precisely at this instruction.
desc = dmaengine_prep_dma_cyclic(chan,
substream->runtime->dma_addr,
snd_pcm_lib_buffer_bytes(substream),
snd_pcm_lib_period_bytes(substream), direction, flags);
I have a null pointer (Unable to handle kernel NULL pointer dereference at
virtual address 00000000) and i don't know why :(
Here is my add in dtsi about codec :
codec: codec@01c22c00 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun4i-a10-codec";
reg = <0x01c22c00 0x40>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&bus_gates 64>;
clock-names = "apb";
dmas = <&dma 15>, <&dma 15>;
dma-names = "rx", "tx";
status = "disabled";
};
and my new template of sun4i-codec.c (will be sun8i-codec.c later) :
http://pastebin.com/rkgZxwSk
Thanks for your help
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.