Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82a5a936 authored by Peter Hsiang's avatar Peter Hsiang Committed by Mark Brown
Browse files

ASoC: Add max98095 CODEC driver



This patch adds the MAX98095 CODEC driver.

Signed-off-by: default avatarPeter Hsiang <peter.hsiang@maxim-ic.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent fa880004
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
/*
 * Platform data for MAX98095
 *
 * Copyright 2011 Maxim Integrated Products
 *
 *  This program is free software; you can redistribute  it and/or modify it
 *  under  the terms of  the GNU General  Public License as published by the
 *  Free Software Foundation;  either version 2 of the  License, or (at your
 *  option) any later version.
 *
 */

#ifndef __SOUND_MAX98095_PDATA_H__
#define __SOUND_MAX98095_PDATA_H__

/* codec platform data */
struct max98095_pdata {
	/* Analog/digital microphone configuration:
	 * 0 = analog microphone input (normal setting)
	 * 1 = digital microphone input
	 */
	unsigned int digmic_left_mode:1;
	unsigned int digmic_right_mode:1;
};

#endif
+4 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ config SND_SOC_ALL_CODECS
	select SND_SOC_JZ4740_CODEC if SOC_JZ4740
	select SND_SOC_LM4857 if I2C
	select SND_SOC_MAX98088 if I2C
	select SND_SOC_MAX98095 if I2C
	select SND_SOC_MAX9850 if I2C
	select SND_SOC_MAX9877 if I2C
	select SND_SOC_PCM3008
@@ -187,6 +188,9 @@ config SND_SOC_DMIC
config SND_SOC_MAX98088
       tristate

config SND_SOC_MAX98095
       tristate

config SND_SOC_MAX9850
	tristate

+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ snd-soc-dfbmcs320-objs := dfbmcs320.o
snd-soc-dmic-objs := dmic.o
snd-soc-l3-objs := l3.o
snd-soc-max98088-objs := max98088.o
snd-soc-max98095-objs := max98095.o
snd-soc-max9850-objs := max9850.o
snd-soc-pcm3008-objs := pcm3008.o
snd-soc-sgtl5000-objs := sgtl5000.o
@@ -108,6 +109,7 @@ obj-$(CONFIG_SND_SOC_DMIC) += snd-soc-dmic.o
obj-$(CONFIG_SND_SOC_L3)	+= snd-soc-l3.o
obj-$(CONFIG_SND_SOC_JZ4740_CODEC)	+= snd-soc-jz4740-codec.o
obj-$(CONFIG_SND_SOC_MAX98088)	+= snd-soc-max98088.o
obj-$(CONFIG_SND_SOC_MAX98095)	+= snd-soc-max98095.o
obj-$(CONFIG_SND_SOC_MAX9850)	+= snd-soc-max9850.o
obj-$(CONFIG_SND_SOC_PCM3008)	+= snd-soc-pcm3008.o
obj-$(CONFIG_SND_SOC_SGTL5000)  += snd-soc-sgtl5000.o