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

Commit bfe617d3 authored by Mark Brown's avatar Mark Brown
Browse files

Merge remote-tracking branch 'asoc/topic/ssm2518' into asoc-next

parents 5f5eb4ef 1aad4e57
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
SSM2518 audio amplifier

This device supports I2C only.

Required properties:
  - compatible : Must be "adi,ssm2518"
  - reg : the I2C address of the device. This will either be 0x34 (ADDR pin low)
	or 0x35 (ADDR pin high)

Optional properties:
  - gpios : GPIO connected to the nSD pin. If the property is not present it is
	        assumed that the nSD pin is hardwired to always on.

Example:

	ssm2518: ssm2518@34 {
		compatible = "adi,ssm2518";
		reg = <0x34>;
		gpios = <&gpio 5 0>;
	};
+22 −0
Original line number Diff line number Diff line
/*
 * SSM2518 amplifier audio driver
 *
 * Copyright 2013 Analog Devices Inc.
 *  Author: Lars-Peter Clausen <lars@metafoo.de>
 *
 * Licensed under the GPL-2.
 */

#ifndef __LINUX_PLATFORM_DATA_SSM2518_H__
#define __LINUX_PLATFORM_DATA_SSM2518_H__

/**
 * struct ssm2518_platform_data - Platform data for the ssm2518 driver
 * @enable_gpio: GPIO connected to the nSD pin. Set to -1 if the nSD pin is
 *            hardwired.
 */
struct ssm2518_platform_data {
	int enable_gpio;
};

#endif
+4 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ config SND_SOC_ALL_CODECS
	select SND_SOC_SI476X if MFD_SI476X_CORE
	select SND_SOC_SN95031 if INTEL_SCU_IPC
	select SND_SOC_SPDIF
	select SND_SOC_SSM2518 if I2C
	select SND_SOC_SSM2602 if SND_SOC_I2C_AND_SPI
	select SND_SOC_STA32X if I2C
	select SND_SOC_STA529 if I2C
@@ -317,6 +318,9 @@ config SND_SOC_SN95031
config SND_SOC_SPDIF
	tristate

config SND_SOC_SSM2518
	tristate

config SND_SOC_SSM2602
	tristate

+2 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ snd-soc-si476x-objs := si476x.o
snd-soc-sn95031-objs := sn95031.o
snd-soc-spdif-tx-objs := spdif_transmitter.o
snd-soc-spdif-rx-objs := spdif_receiver.o
snd-soc-ssm2518-objs := ssm2518.o
snd-soc-ssm2602-objs := ssm2602.o
snd-soc-sta32x-objs := sta32x.o
snd-soc-sta529-objs := sta529.o
@@ -178,6 +179,7 @@ obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o
obj-$(CONFIG_SND_SOC_SI476X)	+= snd-soc-si476x.o
obj-$(CONFIG_SND_SOC_SN95031)	+=snd-soc-sn95031.o
obj-$(CONFIG_SND_SOC_SPDIF)	+= snd-soc-spdif-rx.o snd-soc-spdif-tx.o
obj-$(CONFIG_SND_SOC_SSM2518)	+= snd-soc-ssm2518.o
obj-$(CONFIG_SND_SOC_SSM2602)	+= snd-soc-ssm2602.o
obj-$(CONFIG_SND_SOC_STA32X)   += snd-soc-sta32x.o
obj-$(CONFIG_SND_SOC_STA529)   += snd-soc-sta529.o
+856 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading