From: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
To: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: equalizer cfg in max98088 driver
Date: Tue, 5 Jul 2022 18:29:56 +0200 [thread overview]
Message-ID: <20220705162956.GA2676656@tom-ThinkPad-T14s-Gen-2i> (raw)
In-Reply-To: <YsQd7mub0KJdYUDw@sirena.org.uk>
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@amarulasolutions.com
__________________________________
Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info@amarulasolutions.com
www.amarulasolutions.com
next prev parent reply other threads:[~2022-07-05 16:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-05 7:55 Tommaso Merciai
2022-07-05 11:18 ` Mark Brown
2022-07-05 16:29 ` Tommaso Merciai [this message]
2022-07-05 16:32 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220705162956.GA2676656@tom-ThinkPad-T14s-Gen-2i \
--to=tommaso.merciai@amarulasolutions.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®