Skip to content

Commit 8d0872f

Browse files
macchianbroonie
authored andcommitted
ASoC: Intel: add sof-nau8825 machine driver
The machine driver is a generic machine driver for SOF with nau8825 codec w or w/o speaker additionally. Depending on the SOC HDMI, DMIC, Bluetooth offload support are added dynamically. Only add information related to SOF since the machine driver was only tested with SOF. There are currently 4 i2s machine variants of ADL. This supports the headphone NUA8825(SSP0) alone or with smart or dumb speakers. Board 2,3,4 use SSP2 for Bluetooth offload support except board 1. Board 1 : NAU8825 + RT1019P(SSP2) Board 2 : NAU8825 + MAX98373(SSP1) Board 3 : NAU8825 + MAX98360A(SSP1) Board 4 : NAU8825 Signed-off-by: David Lin <CTLIN0@nuvoton.com> Co-developed-by: Mac Chiang <mac.chiang@intel.com> Signed-off-by: Mac Chiang <mac.chiang@intel.com> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211109133808.8729-1-mac.chiang@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 95cead0 commit 8d0872f

File tree

4 files changed

+707
-0
lines changed

4 files changed

+707
-0
lines changed

sound/soc/intel/boards/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,25 @@ config SND_SOC_INTEL_SOF_ES8336_MACH
527527
Say Y if you have such a device.
528528
If unsure select "N".
529529

530+
config SND_SOC_INTEL_SOF_NAU8825_MACH
531+
tristate "SOF with nau8825 codec in I2S Mode"
532+
depends on I2C && ACPI && GPIOLIB
533+
depends on ((SND_HDA_CODEC_HDMI && SND_SOC_SOF_HDA_AUDIO_CODEC) &&\
534+
(MFD_INTEL_LPSS || COMPILE_TEST))
535+
select SND_SOC_NAU8825
536+
select SND_SOC_RT1015P
537+
select SND_SOC_MAX98373_I2C
538+
select SND_SOC_MAX98357A
539+
select SND_SOC_DMIC
540+
select SND_SOC_HDAC_HDMI
541+
select SND_SOC_INTEL_HDA_DSP_COMMON
542+
select SND_SOC_INTEL_SOF_MAXIM_COMMON
543+
help
544+
This adds support for ASoC machine driver for SOF platforms
545+
with nau8825 codec.
546+
Say Y if you have such a device.
547+
If unsure select "N".
548+
530549
endif ## SND_SOC_SOF_HDA_LINK || SND_SOC_SOF_BAYTRAIL
531550

532551
if (SND_SOC_SOF_COMETLAKE && SND_SOC_SOF_HDA_LINK)

sound/soc/intel/boards/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ snd-soc-sst-byt-cht-nocodec-objs := bytcht_nocodec.o
2222
snd-soc-sof_rt5682-objs := sof_rt5682.o sof_realtek_common.o
2323
snd-soc-sof_cs42l42-objs := sof_cs42l42.o
2424
snd-soc-sof_es8336-objs := sof_es8336.o
25+
snd-soc-sof_nau8825-objs := sof_nau8825.o sof_realtek_common.o
2526
snd-soc-cml_rt1011_rt5682-objs := cml_rt1011_rt5682.o
2627
snd-soc-kbl_da7219_max98357a-objs := kbl_da7219_max98357a.o
2728
snd-soc-kbl_da7219_max98927-objs := kbl_da7219_max98927.o
@@ -44,6 +45,7 @@ snd-soc-sof-sdw-objs += sof_sdw.o \
4445
obj-$(CONFIG_SND_SOC_INTEL_SOF_RT5682_MACH) += snd-soc-sof_rt5682.o
4546
obj-$(CONFIG_SND_SOC_INTEL_SOF_CS42L42_MACH) += snd-soc-sof_cs42l42.o
4647
obj-$(CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH) += snd-soc-sof_es8336.o
48+
obj-$(CONFIG_SND_SOC_INTEL_SOF_NAU8825_MACH) += snd-soc-sof_nau8825.o
4749
obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o
4850
obj-$(CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_COMMON) += snd-soc-sst-bxt-da7219_max98357a.o
4951
obj-$(CONFIG_SND_SOC_INTEL_BXT_RT298_MACH) += snd-soc-sst-bxt-rt298.o

0 commit comments

Comments
 (0)