[alsa-devel] iMX6UL EVK with kernel 4.6
Fabio Estevam
festevam at gmail.com
Mon May 2 15:17:08 CEST 2016
Hi Petr,
On Mon, May 2, 2016 at 9:43 AM, Fabio Estevam <festevam at gmail.com> wrote:
> Ok, managed to unmute these options in alsamixer and now I get audio
> with NXP 3.14 kernel.
>
> Will try with mainline now.
I can get audio with mainline now, but it plays with an incorrect pitch.
Here is a quick hack to allow MCLK to be driven:
--- a/arch/arm/mach-imx/mach-imx6ul.c
+++ b/arch/arm/mach-imx/mach-imx6ul.c
@@ -22,9 +22,12 @@ static void __init imx6ul_enet_clk_init(void)
struct regmap *gpr;
gpr = syscon_regmap_lookup_by_compatible("fsl,imx6ul-iomuxc-gpr");
- if (!IS_ERR(gpr))
+ if (!IS_ERR(gpr)) {
regmap_update_bits(gpr, IOMUXC_GPR1, IMX6UL_GPR1_ENET_CLK_DIR,
IMX6UL_GPR1_ENET_CLK_OUTPUT);
+ regmap_update_bits(gpr, IOMUXC_GPR1, (1 << 20), (1 << 20));
+
+ }
else
pr_err("failed to find fsl,imx6ul-iomux-gpr regmap\n");
As next steps we need:
1. Fix the sound pitch
2. Find a proper way to enable MCLK.
Let me know if you get any progress so that we can upstream audio on this board.
More information about the Alsa-devel
mailing list