All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Intel: sof_rt5682: remove quirk flag
@ 2023-07-26 14:08 Brent Lu
  2023-07-26 14:08 ` [PATCH v2 1/2] ASoC: Intel: maxim-common: get codec number from ACPI Brent Lu
  2023-07-26 14:08 ` [PATCH v2 2/2] ASoC: Intel: sof_rt5682: remove SOF_MAX98390_TWEETER_SPEAKER_PRESENT flag Brent Lu
  0 siblings, 2 replies; 9+ messages in thread
From: Brent Lu @ 2023-07-26 14:08 UTC (permalink / raw)
  To: alsa-devel
  Cc: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood,
	Peter Ujfalusi, Bard Liao, Ranjani Sridharan, Kai Vehmanen,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, Brent Lu, linux-kernel,
	Ajye Huang, Yong Zhi, Terry Cheong, Uday M Bhat, Mac Chiang,
	Dharageswari . R, Kuninori Morimoto, ye xingchen, Andy Shevchenko

We add a helper function to detect amplifier number according to device instance
in ACPI table so the SOF_MAX98390_TWEETER_SPEAKER_PRESENT flag and a dmi quirk
for 4-amplifier configuration could be safely removed.

Also refactor the max_98390_hw_params() function to use an array to handle the
TDM parameter.

Amplifier number detection and TDM parameter are tested on two Chromebooks. One
with 2 MAX98390 and one with 4 MAX98390 amplifier.

V2 Changes:
- fix some typos in cover letter
- use for_each_acpi_dev_match() macro to simplify the codec
- use 'unsign int' for codec number variable

Brent Lu (2):
  ASoC: Intel: maxim-common: get codec number from ACPI
  ASoC: Intel: sof_rt5682: remove SOF_MAX98390_TWEETER_SPEAKER_PRESENT
    flag

 sound/soc/intel/boards/sof_maxim_common.c | 171 +++++++++++++---------
 sound/soc/intel/boards/sof_maxim_common.h |  21 ++-
 sound/soc/intel/boards/sof_rt5682.c       |  37 +----
 3 files changed, 112 insertions(+), 117 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-07-27  3:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26 14:08 [PATCH v2 0/2] Intel: sof_rt5682: remove quirk flag Brent Lu
2023-07-26 14:08 ` [PATCH v2 1/2] ASoC: Intel: maxim-common: get codec number from ACPI Brent Lu
2023-07-26  8:15   ` Pierre-Louis Bossart
2023-07-26  8:33     ` Lu, Brent
2023-07-26  8:52       ` Pierre-Louis Bossart
2023-07-26  9:03         ` Lu, Brent
2023-07-26 16:27   ` Andy Shevchenko
2023-07-27  3:18     ` Lu, Brent
2023-07-26 14:08 ` [PATCH v2 2/2] ASoC: Intel: sof_rt5682: remove SOF_MAX98390_TWEETER_SPEAKER_PRESENT flag Brent Lu

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.