[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220705162956.GA2676656@tom-ThinkPad-T14s-Gen-2i>
Date: Tue, 5 Jul 2022 18:29:56 +0200
From: Tommaso Merciai <tommaso.merciai@...rulasolutions.com>
To: Mark Brown <broonie@...nel.org>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: equalizer cfg in max98088 driver
Hi Mark,
On Tue, Jul 05, 2022 at 12:18:06PM +0100, Mark Brown wrote:
> On Tue, Jul 05, 2022 at 09:55:00AM +0200, Tommaso Merciai wrote:
>
> > Just a question. Can you explain me the proper way to configure eq1 and
> > eq2 of max98089 using sound/soc/codecs/max98088.c driver?
> > Could be a valid solution fetching eq1, eq2 bands params from dts?
>
> There's plenty of examples of equalisers in the code already. I don't
> know how this specific device works but generally these are either
> exposed as a series of volume like sliders or as binary controls. This
> doesn't restrict people to settings from the firmware, making
> development of new configuraitons much easier.
Thanks for your reply.
I meant somethings like this:
max98089: codec@10 {
#sound-dai-cells = <0>;
compatible = "maxim,max98089", "maxim,max98088";
reg = <0x10>;
clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
clock-names = "mclk";
/* eq1 cfg params */
eq1-cfg-dt-en;
eq1-band1 = /bits/ 16 <0x2000 0xC001 0x4000 0x005D 0x0000>;
eq1-band2 = /bits/ 16 <0x2C30 0xC01F 0x3DAA 0x03EC 0x111E>;
eq1-band3 = /bits/ 16 <0x0C41 0xC0BE 0x29AA 0x09B5 0x3094>;
eq1-band4 = /bits/ 16 <0x6671 0xC655 0x3036 0x1BC0 0x2A16>;
eq1-band5 = /bits/ 16 <0x538D 0xD64E 0x23BD 0x308D 0x3517>;
};
Regards,
Tommaso
--
Tommaso Merciai
Embedded Linux Engineer
tommaso.merciai@...rulasolutions.com
__________________________________
Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info@...rulasolutions.com
www.amarulasolutions.com
Powered by blists - more mailing lists