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

Commit 0e826e86 authored by Oder Chiou's avatar Oder Chiou Committed by Mark Brown
Browse files

ASoC: add RT5677 CODEC driver



This patch adds the Realtek ALC5677 codec driver.

Signed-off-by: default avatarOder Chiou <oder_chiou@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 15f78ea6
Loading
Loading
Loading
Loading

include/sound/rt5677.h

0 → 100644
+21 −0
Original line number Diff line number Diff line
/*
 * linux/sound/rt5677.h -- Platform data for RT5677
 *
 * Copyright 2013 Realtek Semiconductor Corp.
 * Author: Oder Chiou <oder_chiou@realtek.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __LINUX_SND_RT5677_H
#define __LINUX_SND_RT5677_H

struct rt5677_platform_data {
	/* IN1 IN2 can optionally be differential */
	bool in1_diff;
	bool in2_diff;
};

#endif
+4 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ config SND_SOC_ALL_CODECS
	select SND_SOC_RT5640 if I2C
	select SND_SOC_RT5645 if I2C
	select SND_SOC_RT5651 if I2C
	select SND_SOC_RT5677 if I2C
	select SND_SOC_SGTL5000 if I2C
	select SND_SOC_SI476X if MFD_SI476X_CORE
	select SND_SOC_SIRF_AUDIO_CODEC
@@ -404,6 +405,9 @@ config SND_SOC_RT5645
config SND_SOC_RT5651
	tristate

config SND_SOC_RT5677
	tristate

#Freescale sgtl5000 codec
config SND_SOC_SGTL5000
	tristate "Freescale SGTL5000 CODEC"
+2 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ snd-soc-rt5631-objs := rt5631.o
snd-soc-rt5640-objs := rt5640.o
snd-soc-rt5645-objs := rt5645.o
snd-soc-rt5651-objs := rt5651.o
snd-soc-rt5677-objs := rt5677.o
snd-soc-sgtl5000-objs := sgtl5000.o
snd-soc-alc5623-objs := alc5623.o
snd-soc-alc5632-objs := alc5632.o
@@ -215,6 +216,7 @@ obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o
obj-$(CONFIG_SND_SOC_RT5640)	+= snd-soc-rt5640.o
obj-$(CONFIG_SND_SOC_RT5645)	+= snd-soc-rt5645.o
obj-$(CONFIG_SND_SOC_RT5651)	+= snd-soc-rt5651.o
obj-$(CONFIG_SND_SOC_RT5677)	+= snd-soc-rt5677.o
obj-$(CONFIG_SND_SOC_SGTL5000)  += snd-soc-sgtl5000.o
obj-$(CONFIG_SND_SOC_SIGMADSP)	+= snd-soc-sigmadsp.o
obj-$(CONFIG_SND_SOC_SI476X)	+= snd-soc-si476x.o
+3498 −0

File added.

Preview size limit exceeded, changes collapsed.

+1451 −0

File added.

Preview size limit exceeded, changes collapsed.