[linux-sunxi] Re: [PATCH v2 06/14] ASoC: sun4i-codec: Add support for A31 playback through headphone output

2016-11-03 Thread Chen-Yu Tsai
On Fri, Nov 4, 2016 at 1:36 AM, Maxime Ripard wrote: > Hi, > > On Thu, Nov 03, 2016 at 03:55:48PM +0800, Chen-Yu Tsai wrote: >> +/* headphone controls */ >> +static const char * const sun6i_codec_hp_src_enum_text[] = { >> + "DAC", "Mixer", >> +}; >> + >>

[linux-sunxi] Applied "ASoC: sun4i-codec: Increase DMA max burst to 8" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: sun4i-codec: Increase DMA max burst to 8 has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

[linux-sunxi] Applied "ASoC: sun4i-codec: Expand quirks to handle register offsets and card creation" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: sun4i-codec: Expand quirks to handle register offsets and card creation has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

[linux-sunxi] Applied "ASoC: sun4i-codec: Add support for A31 playback through headphone output" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: sun4i-codec: Add support for A31 playback through headphone output has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

[linux-sunxi] Applied "ASoC: sun4i-codec: Add support for A31 Line In playback" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: sun4i-codec: Add support for A31 Line In playback has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

[linux-sunxi] Applied "ASoC: sun4i-codec: Revise comments for register definition macros" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: sun4i-codec: Revise comments for register definition macros has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

[linux-sunxi] Re: [PATCH v2 06/14] ASoC: sun4i-codec: Add support for A31 playback through headphone output

2016-11-03 Thread Maxime Ripard
Hi, On Thu, Nov 03, 2016 at 03:55:48PM +0800, Chen-Yu Tsai wrote: > +/* headphone controls */ > +static const char * const sun6i_codec_hp_src_enum_text[] = { > + "DAC", "Mixer", > +}; > + > +static SOC_ENUM_DOUBLE_DECL(sun6i_codec_hp_src_enum, > +

[linux-sunxi] Re: [PATCH v2 02/14] ASoC: sun4i-codec: Expand quirks to handle register offsets and card creation

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:44PM +0800, Chen-Yu Tsai wrote: > The A31 has a similar codec to the A10/A20. The PCM parts are very > similar, with just different register offsets. The analog paths are > very different. There are more inputs and outputs. > > The A31s, A23, and H3 have a similar

[linux-sunxi] Applied "ASoC: sun4i-codec: Move data structures to add create_card call to quirks" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: sun4i-codec: Move data structures to add create_card call to quirks has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

[linux-sunxi] Re: [PATCH v2 13/14] ARM: dts: sun6i: hummingbird: Enable internal audio codec

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:55PM +0800, Chen-Yu Tsai wrote: > The Hummingbird A31 has headset and line in audio jacks and an onboard > mic routed to the pins for the SoC's internal codec. The line out pins > are routed to an onboard speaker amp, whose output is available on a > pin header. > >

Re: [linux-sunxi] [PATCH v2 04/14] ASoC: sun4i-codec: Increase DMA max burst to 8

2016-11-03 Thread Priit Laes
On Thu, 2016-11-03 at 15:55 +0800, Chen-Yu Tsai wrote: > According to the DMA engine API documentation, maxburst denotes the > largest possible size of a single transfer, so as not to overflow > destination FIFOs as explained in this excerpt from dmaengine.h > >  * @src_maxburst: the maximum

[linux-sunxi] Re: [PATCH v2 11/14] ASoC: sun4i-codec: Add support for A31 board level audio routing

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:53PM +0800, Chen-Yu Tsai wrote: > The A31 SoC's codec has various inputs, outputs and microphone bias > supplies. These can be routed on the board in different ways, such as: > > - HPCOM may be connected to have the headphone DC coupled. > > - Microphones all

[linux-sunxi] Re: [PATCH v2 10/14] ASoC: sun4i-codec: Add support for A31 ADC capture path

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:52PM +0800, Chen-Yu Tsai wrote: > The A31's internal codec capture path has a mixer in front of the ADC > for each channel, capable of selecting various inputs, including > microphones, line in, phone in, and the main output mixer. > > This patch adds the various

[linux-sunxi] Re: [PATCH v2 07/14] ASoC: sun4i-codec: Add support for A31 Line In playback

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:49PM +0800, Chen-Yu Tsai wrote: > The A31 integrated codec has a stereo "Line In" input. Add support for > it to the playback paths. > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks, Maxime --

[linux-sunxi] Re: [PATCH v2 05/14] ASoC: sun4i-codec: Add support for optional reset control to quirks

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:47PM +0800, Chen-Yu Tsai wrote: > The later Allwinner SoCs have a dedicated reset controller, and > peripherals have dedicated reset controls which need to be deasserted > before the associated peripheral can be used. > > Add support for this to the quirks structure

[linux-sunxi] Re: [PATCH v2 04/14] ASoC: sun4i-codec: Increase DMA max burst to 8

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:46PM +0800, Chen-Yu Tsai wrote: > According to the DMA engine API documentation, maxburst denotes the > largest possible size of a single transfer, so as not to overflow > destination FIFOs as explained in this excerpt from dmaengine.h > > * @src_maxburst: the

[linux-sunxi] Re: [PATCH v2 03/14] ASoC: sun4i-codec: Revise comments for register definition macros

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:45PM +0800, Chen-Yu Tsai wrote: > This revises existing comments in the register definition macros > section, and adds a few more, so that readers can clearly identify > the types of control registers. > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime

[linux-sunxi] Re: [PATCH v2 01/14] ASoC: sun4i-codec: Move data structures to add create_card call to quirks

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 03:55:43PM +0800, Chen-Yu Tsai wrote: > The audio codec on later Allwinner SoCs have a different layout and > audio path compared to the A10/A20. However the PCM parts are still > the same. > > The different layout and audio paths mean we need a different > create_card

[linux-sunxi] Re: [PATCH v6 1/4] clk: sunxi-ng: Add A64 clocks

2016-11-03 Thread Maxime Ripard
On Thu, Nov 03, 2016 at 09:52:26AM +0800, Chen-Yu Tsai wrote: > On Thu, Nov 3, 2016 at 5:50 AM, Maxime Ripard > wrote: > > Add the A64 CCU clocks set. > > > > Acked-by: Rob Herring > > Signed-off-by: Maxime Ripard

[linux-sunxi] Re: [PATCH v6 4/4] arm64: dts: add Pine64 support

2016-11-03 Thread Maxime Ripard
On Wed, Nov 02, 2016 at 10:05:09PM +, André Przywara wrote: > On 02/11/16 21:50, Maxime Ripard wrote: > > From: Andre Przywara > > > > The Pine64 is a cost-efficient development board based on the > > Allwinner A64 SoC. > > There are three models: the basic version

[linux-sunxi] [PATCH v2 01/14] ASoC: sun4i-codec: Move data structures to add create_card call to quirks

2016-11-03 Thread Chen-Yu Tsai
The audio codec on later Allwinner SoCs have a different layout and audio path compared to the A10/A20. However the PCM parts are still the same. The different layout and audio paths mean we need a different create_card function for different families, so they can create DAPM endpoint widgets and

[linux-sunxi] [PATCH v2 12/14] ARM: dts: sun6i: Add audio codec device node

2016-11-03 Thread Chen-Yu Tsai
The A31 SoC includes the Allwinner audio codec, capable of 24-bit playback up to 192 kHz and 24-bit capture up to 48 kHz. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git

[linux-sunxi] [PATCH v2 14/14] ARM: dts: sun6i: sina31s: Enable internal audio codec

2016-11-03 Thread Chen-Yu Tsai
The SinA31s routes the SoC's LINEOUT pins to a line out jack, and MIC1 to a microphone jack, with MBIAS providing phantom power. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31s-sina31s.dts | 8 1 file changed, 8 insertions(+) diff --git

[linux-sunxi] [PATCH v2 07/14] ASoC: sun4i-codec: Add support for A31 Line In playback

2016-11-03 Thread Chen-Yu Tsai
The A31 integrated codec has a stereo "Line In" input. Add support for it to the playback paths. Signed-off-by: Chen-Yu Tsai --- sound/soc/sunxi/sun4i-codec.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c

[linux-sunxi] [PATCH v2 10/14] ASoC: sun4i-codec: Add support for A31 ADC capture path

2016-11-03 Thread Chen-Yu Tsai
The A31's internal codec capture path has a mixer in front of the ADC for each channel, capable of selecting various inputs, including microphones, line in, phone in, and the main output mixer. This patch adds the various controls, widgets and routes needed for audio capture from the already

[linux-sunxi] [PATCH v2 08/14] ASoC: sun4i-codec: Add support for A31 Line Out playback

2016-11-03 Thread Chen-Yu Tsai
The A31 integrated codec has a second "Line Out" output which does not include an integrated amplifier in its path. This path does have a separate volume control. This patch adds support for the playback path from the DAC to the Line Out pins. Signed-off-by: Chen-Yu Tsai ---

[linux-sunxi] [PATCH v2 03/14] ASoC: sun4i-codec: Revise comments for register definition macros

2016-11-03 Thread Chen-Yu Tsai
This revises existing comments in the register definition macros section, and adds a few more, so that readers can clearly identify the types of control registers. Signed-off-by: Chen-Yu Tsai --- sound/soc/sunxi/sun4i-codec.c | 14 +++--- 1 file changed, 11 insertions(+),

[linux-sunxi] [PATCH v2 06/14] ASoC: sun4i-codec: Add support for A31 playback through headphone output

2016-11-03 Thread Chen-Yu Tsai
The A31 has a similar codec to the A10/A20. The PCM parts are very similar, with different register offsets. The analog paths are very different. There are more inputs and outputs. The ADC mux has been replaced with a proper mixer. This patch adds support for the basic playback path of the A31

[linux-sunxi] [PATCH v2 04/14] ASoC: sun4i-codec: Increase DMA max burst to 8

2016-11-03 Thread Chen-Yu Tsai
According to the DMA engine API documentation, maxburst denotes the largest possible size of a single transfer, so as not to overflow destination FIFOs as explained in this excerpt from dmaengine.h * @src_maxburst: the maximum number of words (note: words, as in * units of the src_addr_width

[linux-sunxi] [PATCH v2 09/14] ASoC: sun4i-codec: Add support for A31 analog microphone inputs

2016-11-03 Thread Chen-Yu Tsai
The A31 internal codec has 3 microphone outputs, of which MIC2 and MIC3 are muxed internally. The resulting two microphone inputs have separate gain controls and mixer inputs. The codec also has 2 microphone bias pins. HBIAS is specifically for the headphone jack, which also supports headphone

[linux-sunxi] [PATCH v2 00/14] ASoC: sun4i-codec: Add support for A31 Codec

2016-11-03 Thread Chen-Yu Tsai
Hi everyone, This is v2 of my Allwinner A31 audio codec support series. The ASoC DAPM stereo control patches in v1 were split out and merged already. These remaining patches depend on them. The A31's internal codec is similar (in terms of DMA, interface and control layouts) to the one found in