Re: [linux-sunxi] SATA on Banana Pi M2 Ultra (R40) broken

2020-09-21 Thread Danny Milosavljevic
Hi, On Thu, 30 Jan 2020 07:01:15 +0100 Corentin Labbe wrote: > My own bpi m2u is working fine on 5.5.0-rc2-next-20191220+ (doing luks on the > sata drive). > I will test some stable version on it. Did you find the time to do this? I really need a known-working SD card image for BPI M2U on

Re: [linux-sunxi] SATA on Banana Pi M2 Ultra (R40) broken

2020-03-09 Thread Danny Milosavljevic
Hi Corentin, On Thu, 30 Jan 2020 07:01:15 +0100 Corentin Labbe wrote: >My own bpi m2u is working fine on 5.5.0-rc2-next-20191220+ (doing luks on the >sata drive). That's good to know! Which config do you use? If it's not sunxi_defconfig, could I have the config you are using? BR, Danny

[linux-sunxi] SATA on Banana Pi M2 Ultra (R40) broken

2020-01-29 Thread Danny Milosavljevic
Hi, SATA seems to be broken on the mainline kernel for Banana Pi M2 Ultra (with sunxi_defconfig). Bisecting, I get: 4.19.99: broken (no sata, no ethernet) 5.2: broken (no working sata) 5.3: broken (no working sata) 5.4.4: broken (no working sata) 5.5: broken (no working sata) "No working sata"

[linux-sunxi] Using the new DRM support to connect a LCD panel

2018-05-20 Thread Danny Milosavljevic
Hi, how does one use the new DRM support? I'm trying to connect an LCD panel to an A20 and I've added/modified some nodes to the device tree (see ), notably: * panel * pio * * * * _out When I boot (using 4.17.0-rc5-g943f4b1-dirty, broonie's

[linux-sunxi] Re: [PATCH v14 8/8] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select

2018-05-05 Thread Danny Milosavljevic
Hi Maxime, On Thu, 3 May 2018 16:54:08 +0200 Maxime Ripard wrote: > > +static const char * const sun4i_codec_capture_source[] = { > > + "Line", > > + "FM", > > + "Mic1", > > + "Mic2", > > + "Mic1,Mic2", > > + "Mic1+Mic2", > > + "Output Mixer", > > +

[linux-sunxi] Re: [PATCH v14 2/8] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume

2018-05-05 Thread Danny Milosavljevic
Hi Maxime, On Thu, 3 May 2018 16:33:19 +0200 Maxime Ripard wrote: > > +struct sun4i_codec_quirks { > > + const struct regmap_config *regmap_config; > > + const struct snd_soc_component_driver *codec; > > + struct snd_soc_card * (*create_card)(struct device

[linux-sunxi] Re: [PATCH v14 3/8] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls

2018-05-05 Thread Danny Milosavljevic
Hi Maxime, On Thu, 3 May 2018 16:46:19 +0200 Maxime Ripard wrote: > Doesn't that mean that the controls will be shared between the right > and left mixers now, which wasn't the case before? Yes. However Chen-Yu said that except for debugfs that cannot be observed by

[linux-sunxi] [PATCH v14 8/8] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select

2018-05-02 Thread Danny Milosavljevic
Add Left Capture Select and Right Capture Select for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/sound/soc

[linux-sunxi] [PATCH v14 1/8] ASoC: sun4i-codec: Add MIC2 Pre-Amplifier, Mic2, Mic Playback Volume

2018-05-02 Thread Danny Milosavljevic
Add MIC2 Pre-Amplifier, Mic2 input and Mic Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b

[linux-sunxi] [PATCH v14 3/8] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls

2018-05-02 Thread Danny Milosavljevic
Since it's now possible to have a DAPM mixer control with multiple channels, use it to cut down the total number of controls. Keep "Left Mixer Left DAC Playback Switch" and "Right Mixer Right DAC Playback Switch" name & layout the same as before for compatibilit

[linux-sunxi] [PATCH v14 4/8] ASoC: sun4i-codec: Add Mic1 Playback Switch, Mic2 Playback Switch

2018-05-02 Thread Danny Milosavljevic
Add Mic1 Playback Switch and Mic2 Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc

[linux-sunxi] [PATCH v14 7/8] ASoC: sun4i-codec: Add Differential Line Source

2018-05-02 Thread Danny Milosavljevic
Add Differential Line Source for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi

[linux-sunxi] [PATCH v14 0/8] ASoC: sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2018-05-02 Thread Danny Milosavljevic
added Mic1-In, Mac2-In. - added Mic1 and Mic2 Pre-Amplifiers. v3 changes compared to v2 are: - added DAPM routes. v2 changes compared to v1 are: - moved Line-In and FM-In playback switches to their respective sun4i_codec_*_mixer_controls. v1 changes: - added linein, fmin output volumes a

[linux-sunxi] [PATCH v14 6/8] ASoC: sun4i-codec: Add Line Playback Volume, Line Boost Volume, Line Right, Line Left, Line Playback Switch

2018-05-02 Thread Danny Milosavljevic
Add Line Playback Volume for Allwinner A10 and Allwinner A20. Add Line Boost Volume for Allwinner A10 and Allwinner A20. Add Line Right, Line Left, Line Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi

[linux-sunxi] [PATCH v14 2/8] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume

2018-05-02 Thread Danny Milosavljevic
Add Mic1 Boost Volume and Mic2 Boost Volume for Allwinner A10 and Allwinner A20. Also add support for extra controls to the sun4i_codec_quirks because the A10 and A20 have Mic1 Boost Volume at different places (likewise for Mic2 Boost Volume). Signed-off-by: Danny Milosavljevic <

[linux-sunxi] [PATCH v14 5/8] ASoC: sun4i-codec: Add FM Playback Volume, FM Left, FM Right, FM Playback Switch

2018-05-02 Thread Danny Milosavljevic
Add FM Playback Volume for Allwinner A10 and Allwinner A20. Add FM Left, FM Right, FM Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 15 +++ 1 file changed, 15 insertions(+)

Re: [linux-sunxi] Re: [PATCH v13 05/14] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls.

2017-06-28 Thread Danny Milosavljevic
Hi, > > > -static const struct snd_kcontrol_new sun4i_codec_left_mixer_controls[] = > > > { > > > - SOC_DAPM_SINGLE("Left DAC Playback Switch", SUN4I_CODEC_DAC_ACTL, > > > - SUN4I_CODEC_DAC_ACTL_LDACLMIXS, 1, 0), > > > -}; > > > - > > > -static const struct

[linux-sunxi] [PATCH v13 07/14] ASoC: sun4i-codec: Add FM Playback Volume.

2017-06-24 Thread Danny Milosavljevic
Add FM Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 55687f9..5

[linux-sunxi] [PATCH v13 01/14] ASoC: sun4i-codec: Add MIC2 Pre-Amplifier, Mic2.

2017-06-24 Thread Danny Milosavljevic
Add MIC2 Pre-Amplifier and Mic2 for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c

[linux-sunxi] [PATCH v13 08/14] ASoC: sun4i-codec: Add FM Left, FM Right, FM Playback Switch.

2017-06-24 Thread Danny Milosavljevic
Add FM Left, FM Right, FM Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-c

[linux-sunxi] [PATCH v13 12/14] ASoC: sun4i-codec: Add Differential Line Source.

2017-06-24 Thread Danny Milosavljevic
Add Differential Line Source for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi

[linux-sunxi] [PATCH v13 02/14] ASoC: sun4i-codec: Add Mic Playback Volume.

2017-06-24 Thread Danny Milosavljevic
Add Mic Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index f

[linux-sunxi] [PATCH v13 06/14] ASoC: sun4i-codec: Add Mic1 Playback Switch, Mic2 Playback Switch.

2017-06-24 Thread Danny Milosavljevic
Add Mic1 Playback Switch and Mic2 Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc

[linux-sunxi] [PATCH v13 13/14] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select.

2017-06-24 Thread Danny Milosavljevic
Add Left Capture Select and Right Capture Select for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/sound/soc

[linux-sunxi] [PATCH v13 09/14] ASoC: sun4i-codec: Add Line Playback Volume.

2017-06-24 Thread Danny Milosavljevic
Add Line Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 2

[linux-sunxi] [PATCH v13 14/14] ASoC: sun4i-codec: Add Capture Volume.

2017-06-24 Thread Danny Milosavljevic
Add Capture Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 65a4685..a

[linux-sunxi] [PATCH v13 04/14] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume.

2017-06-24 Thread Danny Milosavljevic
Add Mic1 Boost Volume and Mic2 Boost Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/soc/sunxi/sun4i-cod

[linux-sunxi] [PATCH v13 05/14] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls.

2017-06-24 Thread Danny Milosavljevic
Since it's now possible to have a DAPM mixer control with multiple channels, use it to cut down the total number of controls. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 27 --- 1 file changed, 12 insertions(

[linux-sunxi] [PATCH v13 03/14] ASoC: sun4i-codec: Add support for extra controls to struct sun4i_codec_quirks and use them.

2017-06-24 Thread Danny Milosavljevic
Some controls use different registers depending on which Allwinner chip it is. Provide a means of specifying and adding those controls. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 33 +++-- 1 file chang

[linux-sunxi] [PATCH v13 00/14] ASoC: sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2017-06-24 Thread Danny Milosavljevic
f the input are not uppercase anymore. - bit index constants are now named as in the A20 user manual v1.4. - added Mic1-In, Mac2-In. - added Mic1 and Mic2 Pre-Amplifiers. v3 changes compared to v2 are: - added DAPM routes. v2 changes compared to v1 are: - moved Line-In and FM-In playback switches

[linux-sunxi] [PATCH v13 11/14] ASoC: sun4i-codec: Add Line Right, Line Left, Line Playback Switch.

2017-06-24 Thread Danny Milosavljevic
Add Line Right, Line Left, Line Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi

Re: [linux-sunxi] SPI in Linux 4.8.0-rc6: Weird dip in SCLK right when slave select goes low

2017-05-23 Thread Danny Milosavljevic
> Next, I'll try to disable CS manual mode in drivers/spi/spi-sun4i.c and test > - still with nothing but the resistor connected. Let's see... I've done that and it changed nothing wrt SCLK. Good to know... diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index c5cd635..3e9e7b6

Re: [linux-sunxi] SPI in Linux 4.8.0-rc6: Weird dip in SCLK right when slave select goes low

2017-05-23 Thread Danny Milosavljevic
Hi Maxime, Hi Siarhei, On Mon, 26 Sep 2016 21:24:28 +0200 Maxime Ripard wrote: > Yes, I guess apart from all the tests Siarhei suggested already, > disconnecting the device entirely and trying to make some transfers > would be a good test. I did that now. I

[linux-sunxi] Fw: [WIP PATCH] Add preliminary support for Banana Pi M2U.

2017-02-14 Thread Danny Milosavljevic
This adds preliminary support for Banana Pi M2U (and R40). Unfortunately, I get the following error message in the end: binman: Device tree 'u-boot.dtb' does not have a 'binman' node Makefile:1091: recipe for target 'u-boot-sunxi-with-spl.bin' failed make: *** [u-boot-sunxi-with-spl.bin] Error 1

Re: [linux-sunxi] SPI in Linux 4.8.0-rc6: Weird dip in SCLK right when slave select goes low

2016-09-25 Thread Danny Milosavljevic
On Fri, 23 Sep 2016 04:03:57 +0300 Siarhei Siamashka wrote: > I'm not sure, but something like this might be somehow related: > https://patchwork.kernel.org/patch/7960811/ > > As a random thing to check, I would also advise to verify the > pull-up/pull-down

Re: [linux-sunxi] SPI in Linux 4.8.0-rc6: Weird dip in SCLK right when slave select goes low

2016-09-25 Thread Danny Milosavljevic
Hi Maxime, On Fri, 23 Sep 2016 10:34:04 +0300 Maxime Ripard wrote: > That's weird indeed. Is it a regression, or is it something you just > noticed? I only just noticed it. This is also the first device I use ever to have CPOL=1 CPHA=1 (a TSS463AA).

Re: [linux-sunxi] [PATCH v6 0/3] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-25 Thread Danny Milosavljevic
The only changes here are the commit summary in the cover letter (it's correct now) and the commit message of patch 1. I see that the v5 patches 2 and 3 have already been applied in the mean time - and the functional content in v6 is identical. Therefore, the only thing that needs to be

[linux-sunxi] [PATCH v6 1/3] ASoC: sun4i-codec: Rename sun4i_codec_widgets for consistency

2016-09-24 Thread Danny Milosavljevic
Rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sou

[linux-sunxi] [PATCH v6 2/3] ASoC: sun4i-codec: Rename some sun7i-only registers

2016-09-24 Thread Danny Milosavljevic
Some of the registers defined in the driver are only usable on the A20. Rename these registers. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-cod

[linux-sunxi] [PATCH v6 3/3] ASoC: sun4i-codec: Add custom regmap configs

2016-09-24 Thread Danny Milosavljevic
The A20 has a few extra registers that the A10 doesn't have. Therefore, use different regmaps for A10 as compared to A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 38 +++--- 1 file changed, 35 insertions

[linux-sunxi] [PATCH v6 0/3] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-24 Thread Danny Milosavljevic
SUN4I_CODEC_AC_SYS_VERI to SUN7I_CODEC_AC_DAC_CAL and rename SUN4I_CODEC_AC_MIC_PHONE_CAL to SUN7I_CODEC_AC_MIC_PHONE_CAL because these are actually not present on Allwinner A10. Handle quirks by regmap config and codec and select the correct quirks automatically. Danny Milosavljevic (3): ASoC: sun4i-codec

[linux-sunxi] SPI in Linux 4.8.0-rc6: Weird dip in SCLK right when slave select goes low

2016-09-22 Thread Danny Milosavljevic
Hello, when using SPI on Allwinner A20 with CPOL=1 and CPHA=1 with Linux 4.8.0-rc6 Psychotic Stoned Sheep I see a weird dip in the beginning (which also confuses the slave) on the SCLK line right when SSEL goes low - see attachment. The lines are, starting from the top, SCLK MOSI MISO SSEL.

[linux-sunxi] [PATCH v5 2/3] ASoC: sun4i-codec: Rename some sun7i-only registers

2016-09-22 Thread Danny Milosavljevic
Some of the registers defined in the driver are only usable on the A20. Rename these registers. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-cod

[linux-sunxi] [PATCH v5 0/3] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-22 Thread Danny Milosavljevic
SUN4I_CODEC_AC_SYS_VERI to SUN7I_CODEC_AC_DAC_CAL and renamed SUN4I_CODEC_AC_MIC_PHONE_CAL to SUN7I_CODEC_AC_MIC_PHONE_CAL because these are actually not present on Allwinner A10. Handle quirks by regmap config and codec and select the correct quirks automatically. Danny Milosavljevic (3

[linux-sunxi] [PATCH v5 3/3] ASoC: sun4i-codec: Add custom regmap configs

2016-09-22 Thread Danny Milosavljevic
The A20 has a few extra registers that the A10 doesn't have. Therefore, use different regmaps for A10 as compared to A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 38 +++--- 1 file changed, 35 insertions

[linux-sunxi] [PATCH v5 1/3] ASoC: sun4i-codec: Rename sun4i_codec_widgets for consistency

2016-09-22 Thread Danny Milosavljevic
ASoC: sun4i-codec: Rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[linux-sunxi] [PATCH v4 1/3] ASoC: sun4i-codec: rename sun4i_codec_widgets for consistency

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: Rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[linux-sunxi] [PATCH v4 3/3] ASoC: sun4i-codec: Add custom regmap configs

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: The A20 has a few extra registers that the A10 doesn't have. Therefore, use different regmaps for A10 as compared to A20. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 33 ++--- 1 file chang

[linux-sunxi] [PATCH v4 0/3] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-15 Thread Danny Milosavljevic
SUN4I_CODEC_AC_SYS_VERI to SUN7I_CODEC_AC_DAC_CAL and renamed SUN4I_CODEC_AC_MIC_PHONE_CAL to SUN7I_CODEC_AC_MIC_PHONE_CAL because these are actually not present on Allwinner A10. Handle quirks by regmap config and codec and select the correct quirks automatically. Danny Milosavljevic (3

[linux-sunxi] [PATCH v4 2/3] ASoC: rename some sun7i-only registers

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: Some of the registers are sun7i-only. Therefore rename "SUN4I_CODEC_SYS_VERI" to "SUN7I_CODEC_AC_DAC_CAL" and rename "SUN4I_CODEC_AC_MIC_PHONE_CAL" to "SUN7I_CODEC_AC_MIC_PHONE_CAL". Signed-off-by: Danny Milosavljevic <dan...@scratchp

[linux-sunxi] [PATCH v3 1/3] ASoC: sun4i-codec: rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name.

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[linux-sunxi] [PATCH v3 3/3] ASoC: sun4i-codec: Add custom regmap configs for the A10 and A20 variants.

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: Add custom regmap configs for the A10 and A20 variants. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi

[linux-sunxi] [PATCH v3 2/3] ASoC: rename "SUN4I_CODEC_SYS_VERI" to "SUN7I_CODEC_AC_DAC_CAL"; rename "SUN4I_CODEC_AC_MIC_PHONE_CAL" to "SUN7I_CODEC_AC_MIC_PHONE_CAL".

2016-09-15 Thread Danny Milosavljevic
This patch renames some sun7i-only registers to reflect that fact. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-c

[linux-sunxi] [PATCH v3 0/3] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-15 Thread Danny Milosavljevic
SUN4I_CODEC_AC_SYS_VERI to SUN7I_CODEC_AC_DAC_CAL and renamed SUN4I_CODEC_AC_MIC_PHONE_CAL to SUN7I_CODEC_AC_MIC_PHONE_CAL because these are actually not present on Allwinner A10. Handle quirks by regmap config and codec and select the correct quirks automatically. Danny Milosavljevic (3): ASoC: sun4i-codec

[linux-sunxi] sun4i SPI 9 bits per word

2016-09-09 Thread Danny Milosavljevic
Hi, is it possible to use 9 bits per word on Allwinner A20? (i.e. 9 clock pulses). -- 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

[linux-sunxi] [PATCH v2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-08 Thread Danny Milosavljevic
-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 78 --- 1 file changed, 58 insertions(+), 20 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 0e19c50..239e330

[linux-sunxi] [PATCH] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-05 Thread Danny Milosavljevic
Here's just the part that allows distinguishing sun4i from sun7i. Since I'm waiting for Chen-Yu's DAPM_DOUBLE patch series I figured I'd post the preliminaries in the mean time which will not change and can be applied independently without problems. Danny Milosavljevic (1): ASoC: sun4i-codec

[linux-sunxi] [PATCH] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-05 Thread Danny Milosavljevic
and select the correct quirks automatically. Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> --- sound/soc/sunxi/sun4i-codec.c | 66 +++ 1 file changed, 54 insertions(+), 12 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sou

[linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-09-01 Thread Danny Milosavljevic
Hi Chen-Yu, > I have a few patches that introduce SOC_DAPM_DOUBLE, so you can share a > control between left/right channels. IMHO it makes the userspace mixer > less confusing. I definitely agree that cutting down on the number of sliders would be good. I do a double-take every time I open

Re: [linux-sunxi] Re: [PATCH v9 1/2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-08-31 Thread Danny Milosavljevic
Hi Maxime, On Wed, 31 Aug 2016 19:46:23 +0200 Maxime Ripard wrote: > > -#define SUN4I_CODEC_AC_SYS_VERI(0x38) > > -#define SUN4I_CODEC_AC_MIC_PHONE_CAL (0x3c) > > + > > +#define SUN7I_CODEC_AC_DAC_CAL (0x38)

Re: [linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Danny Milosavljevic
Hi Chen-Yu, > My apologies. I didn't notice that VMIC was already in the driver. > In that your original patch did everything right. Don't worry about it :) But I have a question: If I replace DAPM_INPUT by DAPM_MIC it wants a callback that is supposed to fiddle with the bias. Do I provide

Re: [linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Danny Milosavljevic
> And what about microphone bias? Would this be OK? static int sun4i_codec_handle_mic_bias_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *k, int event) { struct sun4i_codec *scodec = snd_soc_card_get_drvdata(w->dapm->card);

[linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Danny Milosavljevic
Hi Chen-Yu, > > +static const char * const sun4i_codec_difflinein_capture_source[] = { > > + "Non-Differential", > > + "Differential", > > How about "Stereo"? And possibly "Mono Differential"? or just "Mono". > A differential input can be used single-ended by grounding one side.

Re: [linux-sunxi] [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-30 Thread Danny Milosavljevic
Hi CK, On Tue, 30 Aug 2016 08:49:40 +0200 Code Kipper <codekip...@gmail.com> wrote: > On 29 August 2016 at 20:03, Danny Milosavljevic <dan...@scratchpost.org> > wrote: > I think this should be delivered in a series of patches like what I've > attempted to do here > ht

Re: [linux-sunxi] Re: [PATCH v9 0/2] sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2016-08-30 Thread Danny Milosavljevic
On Tue, 30 Aug 2016 09:12:48 -0400 Stefan Monnier wrote: > > - rename "Line-In" to "Line". > > Curious: why? Documentation/sound/alsa/ControlNames.txt line 49 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To

[linux-sunxi] [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-29 Thread Danny Milosavljevic
Note: Mic1 Capture Volume is in a different register on A20 than on A10. Note: Mic2 Capture Volume is in a different register on A20 than on A10. --- sound/soc/sunxi/sun4i-codec.c | 256 ++ 1 file changed, 236 insertions(+), 20 deletions(-) diff --git

[linux-sunxi] [PATCH v9 0/2] sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2016-08-29 Thread Danny Milosavljevic
and Mic2 Pre-Amplifiers. v3 changes compared to v2 are: - added DAPM routes. v2 changes compared to v1 are: - moved Line-In and FM-In playback switches to their respective sun4i_codec_*_mixer_controls. v1 changes: - added linein, fmin output volumes and switches. Danny Milosavljevic (2):

[linux-sunxi] [PATCH v9 1/2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-08-29 Thread Danny Milosavljevic
This distinguishes sun4i from sun7i. It is necessary because they use different registers for the audio mixer. --- sound/soc/sunxi/sun4i-codec.c | 44 +-- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c

[linux-sunxi] [PATCH v9 0/2] sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2016-08-29 Thread Danny Milosavljevic
and Mic2 Pre-Amplifiers. v3 changes compared to v2 are: - added DAPM routes. v2 changes compared to v1 are: - moved Line-In and FM-In playback switches to their respective sun4i_codec_*_mixer_controls. v1 changes: - added linein, fmin output volumes and switches. Danny Milosavljevic (2): A

[linux-sunxi] [PATCH v9 1/2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-08-29 Thread Danny Milosavljevic
This distinguishes sun4i from sun7i. It is necessary because they use different registers for the audio mixer. --- sound/soc/sunxi/sun4i-codec.c | 44 +-- 1 file changed, 34 insertions(+), 10 deletions(-) -- You received this message because you are

[linux-sunxi] [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-29 Thread Danny Milosavljevic
Note: Mic1 Capture Volume is in a different register on A20 than on A10. Note: Mic2 Capture Volume is in a different register on A20 than on A10. --- sound/soc/sunxi/sun4i-codec.c | 256 ++ 1 file changed, 236 insertions(+), 20 deletions(-) -- You

[linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-04-21 Thread Danny Milosavljevic
Hi Maxime, On Mon, 21 Mar 2016 18:54:36 +0100 Maxime Ripard wrote: > As I recall it, we were mostly discussing the how to deal with the ADC > muxer that muxes both left and right at the same time (so shared > controls), but with different source on each

Re: [linux-sunxi] [PATCH 2/2] ARM: dtsi: sun7i: Enable sun4i_can on Olinuxino-a20-Lime2

2016-04-20 Thread Danny Milosavljevic
On Wed, 20 Apr 2016 21:50:26 +0200 Johannes Kuhn wrote: > figure out how the overlay thing works. As far as I know overlays (CONFIG_OF_OVERLAY) don't work on sunxi. If you want to find out where they are used, grep for "of_overlay_create" (which would create and

Re: [linux-sunxi] sun4i audio updates

2016-03-20 Thread Danny Milosavljevic
Hi CK, >I've been playing with the audio on sun4i for some time now and have placed a >branch on my github with all my changes > https://github.com/codekipper/linux-sunxi/commits/kevin. Good to hear! On which branch? I checked

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-19 Thread Danny Milosavljevic
Hi Maxime, > IIRC, in order to have shared controls, you just needed to share the > controls structure. Yeah. I did this and it actually works in a way, but in doesn't do all that I want. There are two different kinds of sharing I mean: The one kind with the controls structure causes the

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-11 Thread Danny Milosavljevic
Hi, does anyone know the answer to the questions below? > The other direction (making two controls which both do the same and update > each other's value) doesn't seem to be easily available. > Should I write a _put handler that does it manually? > (Or should that be handled by alsa-lib

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

2016-02-09 Thread Danny Milosavljevic
Hi, On Mon, 8 Feb 2016 11:55:43 +1100 Julian Calaby wrote: > I believe that device tree overlays are the generally recommended method. I agree. But last time I tried, the device tree compiler didn't support overlays - neither in Debian nor in the in-kernel dtc ("-@"

Re: [linux-sunxi] Banana Pi mainline ALSA support

2016-01-31 Thread Danny Milosavljevic
Hi Dan, On Tue, 19 Jan 2016 22:49:32 + Dan MacDonald wrote: > Despite the fact that alsamixer sees the BPi audio device, it is (mostly) > working and its also visible under /proc/asound/cards and > /proc/asound/devices, dmesg says there are no ALSA devices: > > [

Re: [linux-sunxi] Banana Pi mainline ALSA support

2016-01-18 Thread Danny Milosavljevic
Hi Dan, On Mon, 18 Jan 2016 14:32:48 -0800 (PST) Dan MacDonald wrote: > I recently asked about the status of ALSA audio for the BPi in mainline on > the lemaker forums and I was pointed towards this patch: > >

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-01-09 Thread Danny Milosavljevic
Hi Maxime, Hi Mark, On Wed, 6 Jan 2016 23:09:08 +0100 Maxime Ripard wrote: > I find the sun4i_*_a10 and sun4i highly redundant. If there the same > define for sun7i, then you know that it's not meant to be used for the > A20, and that's it. > > My point is

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2015-12-30 Thread Danny Milosavljevic
Hi, check the Dec 2015 linux-sunxi archives, topic "Jpeg Encoding" for a proof-of-concept. (I didn't run it, but did compile it. The file "picture.c" contains the picture to encode) Regards, Danny -- You received this message because you are subscribed to the Google Groups "linux-sunxi"

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-27 Thread Danny Milosavljevic
Hi Maxime, On Sun, 27 Dec 2015 19:21:57 +0100 Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Dec 21, 2015 at 12:34:16PM +0100, Danny Milosavljevic wrote: > > This is the second part, actually adding FM, Line and Mic inputs. > > Again, having a meaningful

Re: [linux-sunxi] Re: [PATCH v8 0/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-22 Thread Danny Milosavljevic
Hi Yassin, On Mon, 21 Dec 2015 18:16:35 -0800 (PST) Yassin Jaffer wrote: > You don't seem to provide the full gain scale for most of the inputs any > reason for that (Please check the user manual)? I got the scales from the user manuals. Did I make a mistake? Just

Re: [linux-sunxi] Re: [PATCH v6] sun4i-codec: Add FM, Line and Mic inputs

2015-12-21 Thread Danny Milosavljevic
Hi Maxime, On Fri, 18 Dec 2015 11:19:43 +0100 Maxime Ripard wrote: > It would also be a good idea to open a github issue on allwinner's > documentation repo to make them know that the register name doesn't > match between the register list and the register

[linux-sunxi] [PATCH v8 0/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-21 Thread Danny Milosavljevic
Hi, this is the eighth version of the patch set that adds inputs to sun4i-codec. Changes compared to v7 are: - fix the routes for line and mic capturing. The patches are on top of the branch "sunxi-next" in . Regards, Danny --- Danny Milosavljevic (2): sun4i-codec: Add FM, Li

[linux-sunxi] [PATCH v8 1/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-21 Thread Danny Milosavljevic
This is the first part: sun4i-codec: make it possible to use different codec_widgets for A10 and A20. Signed-off-by: Danny Milosavljevic <danny...@scratchpost.org> --- b/sound/soc/sunxi/sun4i-codec.c | 45 ++-- 1 file changed, 34 insertions(

[linux-sunxi] [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-21 Thread Danny Milosavljevic
This is the second part, actually adding FM, Line and Mic inputs. Signed-off-by: Danny Milosavljevic <danny...@scratchpost.org> --- b/sound/soc/sunxi/sun4i-codec.c | 185 +++- 1 file changed, 181 insertions(+), 4 deletions(-) diff --git a/sound/soc

[linux-sunxi] [PATCH v7 0/2] sun4i-codec: Add FM, Line and Mic inputs

2015-12-18 Thread Danny Milosavljevic
grouped-together. The patches are on top of the branch "sunxi-next" in . Regards, Danny --- Danny Milosavljevic (2): sun4i-codec: Add FM, Line and Mic inputs sun4i-codec: make it possible to use different codec_widgets for A10 and A20. sound/soc/sunxi/sun4i-code

[linux-sunxi] [PATCH v7 2/2] sun4i-codec: Add FM, Line and Mic inputs

2015-12-18 Thread Danny Milosavljevic
This is the second part, actually adding FM, Line and Mic inputs. Signed-off-by: Danny Milosavljevic <danny...@scratchpost.org> --- b/sound/soc/sunxi/sun4i-codec.c | 182 +++- 1 file changed, 178 insertions(+), 4 deletions(-) diff --git a/sound/soc

[linux-sunxi] [PATCH v7 1/2] sun4i-codec: Add FM, Line and Mic inputs

2015-12-18 Thread Danny Milosavljevic
This is the first part: sun4i-codec: make it possible to use different codec_widgets for A10 and A20. Signed-off-by: Danny Milosavljevic <danny...@scratchpost.org> --- b/sound/soc/sunxi/sun4i-codec.c | 45 ++-- 1 file changed, 34 insertions(

Re: [linux-sunxi] Re: [PATCH v6] sun4i-codec: Add FM, Line and Mic inputs

2015-12-16 Thread Danny Milosavljevic
Hi Maxime, On Wed, 16 Dec 2015 11:47:36 +0100 Maxime Ripard wrote: > > Because SUN4I_CODEC_AC_MIC_PHONE_CAL is sun7i-specific. > > Yet, you're using it in both cases (A10 vs A20). Yes. I'm trying to keep complexity and duplication down. I figured it wouldn't

[linux-sunxi] Re: [PATCH v6] sun4i-codec: Add FM, Line and Mic inputs

2015-12-14 Thread Danny Milosavljevic
Hi Maxime, On Sun, 13 Dec 2015 21:58:39 +0100 Maxime Ripard wrote: > This is not the branch you should be basing your patch on. This is an > ASoC patch, base it on the ASoC tree. Okay, will do. To the branch "sunxi-next" in , right? [...] > > -static const

Re: [linux-sunxi] [PATCH v4] sun4i-codec: add inputs

2015-12-11 Thread Danny Milosavljevic
Hi CK, Hi Mark, (I've added Mark - since he committed the original soc-ops line of code below - and the list) On Mon, 7 Dec 2015 07:30:07 +0100 Code Kipper wrote: [...] > > +static DECLARE_TLV_DB_SCALE(sun4i_codec_linein_output_volume_scale, -150, > > 150, 0); > These

Re: [linux-sunxi] [PATCH v4] sun4i-codec: add inputs

2015-12-11 Thread Danny Milosavljevic
Hi Chen-Yu, On Fri, 11 Dec 2015 11:23:33 +0800 Chen-Yu Tsai wrote: > If everything is known beforehand, having 2 separate read only tables is > probably better. No need for maintainers / reviewers to squint. :) Yeah, that's what v6 already does. Suggestion 4 was to copy it at

[linux-sunxi] [PATCH v6] sun4i-codec: Add FM, Line and Mic inputs

2015-12-09 Thread Danny Milosavljevic
Add inputs to sun4i-codec: - FM-in Left and Right - Line-in Left and Right - Mic1-in - Mic2-in Signed-off-by: Danny Milosavljevic <danny...@scratchpost.org> Tested-by: Danny Milosavljevic <danny...@scratchpost.org> (ONLY ON A20!) --- Hi, this is the sixth version of the pat

[linux-sunxi] alsamixer selem control creation

2015-12-09 Thread Danny Milosavljevic
Hi CK, > > How does ALSA (or alsamixer) know which controls are "Capture"? > I'm also curious to know how to seperate capture from playback. I digged into alsa-lib 1.0.28 some more and found out how control creation and grouping works (I hope indentation will not get messed up in the

Re: [linux-sunxi] [PATCH v4] sun4i-codec: add inputs

2015-12-08 Thread Danny Milosavljevic
Hi Maxime, On Tue, 8 Dec 2015 10:09:50 +0100 Maxime Ripard wrote: > > Now I added an ugly hack to make Mic Gain work on A10 as well - but I don't > > have > > A10 hardware. Let's see what they say. > > That I really prefer having nothing over an "ugly hack"

[linux-sunxi] [PATCH v5] sun4i-codec: add inputs

2015-12-07 Thread Danny Milosavljevic
Danny Danny (1): b/sound/soc/sunxi/sun4i-codec.c | 153 +++- 1 file changed, 150 insertions(+), 3 deletions(-) Signed-off-by: Danny Milosavljevic <danny...@scratchpost.org> --- diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c ind

Re: [linux-sunxi] Mainline Linux git setup and usage

2015-12-06 Thread Danny Milosavljevic
Hi, On Sun, 06 Dec 2015 09:18:44 +0200 Priit Laes <pl...@plaes.org> wrote: > On Sun, 2015-12-06 at 00:45 +0100, Danny Milosavljevic wrote: > > Hello, > > > > when trying to setup a build environment for mainline Linux I ran > > into some problems: > >

Re: [linux-sunxi] [PATCH v3 1/2] sun4i-codec: add "FM-In" and "Line-In" playback controls (volume and muting switch).

2015-12-06 Thread Danny Milosavljevic
Hi, On Sun, 6 Dec 2015 08:06:20 +0100 Code Kipper wrote: >I would start by sticking to the original define formats which matches >what's in the User Manual. Yeah, I changed these now. > These aren't really playback controls but gains for the capture stage. Hmm...

  1   2   >