Skip to content

Commit

Permalink
ASoC: codec: es8326: New codec driver
Browse files Browse the repository at this point in the history
Based on ALSA SoF development branch.
Refer to:
Link: thesofproject#3393
Link: thesofproject#3508

Signed-off-by: Vasily Vinogradov <v.vinogradov@aq.ru>
Signed-off-by: Nikolai Kostrigin <nickel@altlinux.org>
  • Loading branch information
Vasily Vinogradov authored and asheplyakov committed Sep 7, 2022
1 parent 78a147f commit ec2072c
Show file tree
Hide file tree
Showing 9 changed files with 1,151 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sound/hda/intel-dsp-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ static const struct config_entry config_table[] = {

/* JasperLake */
#if IS_ENABLED(CONFIG_SND_SOC_SOF_JASPERLAKE)
{
.flags = FLAG_SOF,
.device = 0x4dc8,
.codec_hid = "ESSX8326",
},
{
.flags = FLAG_SOF,
.device = 0x4dc8,
Expand All @@ -333,6 +338,11 @@ static const struct config_entry config_table[] = {
{}
}
},
{
.flags = FLAG_SOF,
.device = 0xa0c8,
.codec_hid = "ESSX8326",
},
{
.flags = FLAG_SOF,
.device = 0xa0c8,
Expand Down
5 changes: 5 additions & 0 deletions sound/soc/codecs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ config SND_SOC_ALL_CODECS
imply SND_SOC_DA9055
imply SND_SOC_DMIC
imply SND_SOC_ES8316
imply SND_SOC_ES8326
imply SND_SOC_ES8328_SPI
imply SND_SOC_ES8328_I2C
imply SND_SOC_ES7134
Expand Down Expand Up @@ -825,6 +826,10 @@ config SND_SOC_ES8316
tristate "Everest Semi ES8316 CODEC"
depends on I2C

config SND_SOC_ES8326
tristate "Everest Semi ES8326 CODEC"
depends on I2C

config SND_SOC_ES8328
tristate

Expand Down
2 changes: 2 additions & 0 deletions sound/soc/codecs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ snd-soc-dmic-objs := dmic.o
snd-soc-es7134-objs := es7134.o
snd-soc-es7241-objs := es7241.o
snd-soc-es8316-objs := es8316.o
snd-soc-es8326-objs := es8326.o
snd-soc-es8328-objs := es8328.o
snd-soc-es8328-i2c-objs := es8328-i2c.o
snd-soc-es8328-spi-objs := es8328-spi.o
Expand Down Expand Up @@ -421,6 +422,7 @@ obj-$(CONFIG_SND_SOC_DMIC) += snd-soc-dmic.o
obj-$(CONFIG_SND_SOC_ES7134) += snd-soc-es7134.o
obj-$(CONFIG_SND_SOC_ES7241) += snd-soc-es7241.o
obj-$(CONFIG_SND_SOC_ES8316) += snd-soc-es8316.o
obj-$(CONFIG_SND_SOC_ES8326) += snd-soc-es8326.o
obj-$(CONFIG_SND_SOC_ES8328) += snd-soc-es8328.o
obj-$(CONFIG_SND_SOC_ES8328_I2C)+= snd-soc-es8328-i2c.o
obj-$(CONFIG_SND_SOC_ES8328_SPI)+= snd-soc-es8328-spi.o
Expand Down
Loading

0 comments on commit ec2072c

Please sign in to comment.