All of lore.kernel.org
 help / color / mirror / Atom feed
* equalizer cfg in max98088 driver
@ 2022-07-05  7:55 ` Tommaso Merciai
  0 siblings, 0 replies; 8+ messages in thread
From: Tommaso Merciai @ 2022-07-05  7:55 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel

Hi Mark, All,
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?

Let me know.
Thanks in advance
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* equalizer cfg in max98088 driver
@ 2022-07-05  7:55 ` Tommaso Merciai
  0 siblings, 0 replies; 8+ messages in thread
From: Tommaso Merciai @ 2022-07-05  7:55 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel, alsa-devel, Takashi Iwai, Liam Girdwood

Hi Mark, All,
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?

Let me know.
Thanks in advance
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: equalizer cfg in max98088 driver
  2022-07-05  7:55 ` Tommaso Merciai
@ 2022-07-05 11:18   ` Mark Brown
  -1 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-07-05 11:18 UTC (permalink / raw)
  To: Tommaso Merciai
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: equalizer cfg in max98088 driver
@ 2022-07-05 11:18   ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-07-05 11:18 UTC (permalink / raw)
  To: Tommaso Merciai; +Cc: linux-kernel, alsa-devel, Takashi Iwai, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: equalizer cfg in max98088 driver
  2022-07-05 11:18   ` Mark Brown
@ 2022-07-05 16:29     ` Tommaso Merciai
  -1 siblings, 0 replies; 8+ messages in thread
From: Tommaso Merciai @ 2022-07-05 16:29 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: equalizer cfg in max98088 driver
@ 2022-07-05 16:29     ` Tommaso Merciai
  0 siblings, 0 replies; 8+ messages in thread
From: Tommaso Merciai @ 2022-07-05 16:29 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel, alsa-devel, Takashi Iwai, Liam Girdwood

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: equalizer cfg in max98088 driver
  2022-07-05 16:29     ` Tommaso Merciai
@ 2022-07-05 16:32       ` Mark Brown
  -1 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-07-05 16:32 UTC (permalink / raw)
  To: Tommaso Merciai
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

On Tue, Jul 05, 2022 at 06:29:56PM +0200, Tommaso Merciai wrote:
> On Tue, Jul 05, 2022 at 12:18:06PM +0100, Mark Brown wrote:

> > 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:

I understood what you meant, like I say this should be a runtime control.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: equalizer cfg in max98088 driver
@ 2022-07-05 16:32       ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-07-05 16:32 UTC (permalink / raw)
  To: Tommaso Merciai; +Cc: linux-kernel, alsa-devel, Takashi Iwai, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

On Tue, Jul 05, 2022 at 06:29:56PM +0200, Tommaso Merciai wrote:
> On Tue, Jul 05, 2022 at 12:18:06PM +0100, Mark Brown wrote:

> > 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:

I understood what you meant, like I say this should be a runtime control.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-05 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05  7:55 equalizer cfg in max98088 driver Tommaso Merciai
2022-07-05  7:55 ` Tommaso Merciai
2022-07-05 11:18 ` Mark Brown
2022-07-05 11:18   ` Mark Brown
2022-07-05 16:29   ` Tommaso Merciai
2022-07-05 16:29     ` Tommaso Merciai
2022-07-05 16:32     ` Mark Brown
2022-07-05 16:32       ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.