Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
bfe617d3
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bfe617d3
编写于
6月 17, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/ssm2518' into asoc-next
上级
5f5eb4ef
1aad4e57
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
924 addition
and
0 deletion
+924
-0
Documentation/devicetree/bindings/sound/ssm2518.txt
Documentation/devicetree/bindings/sound/ssm2518.txt
+20
-0
include/linux/platform_data/ssm2518.h
include/linux/platform_data/ssm2518.h
+22
-0
sound/soc/codecs/Kconfig
sound/soc/codecs/Kconfig
+4
-0
sound/soc/codecs/Makefile
sound/soc/codecs/Makefile
+2
-0
sound/soc/codecs/ssm2518.c
sound/soc/codecs/ssm2518.c
+856
-0
sound/soc/codecs/ssm2518.h
sound/soc/codecs/ssm2518.h
+20
-0
未找到文件。
Documentation/devicetree/bindings/sound/ssm2518.txt
0 → 100644
浏览文件 @
bfe617d3
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>;
};
include/linux/platform_data/ssm2518.h
0 → 100644
浏览文件 @
bfe617d3
/*
* 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
sound/soc/codecs/Kconfig
浏览文件 @
bfe617d3
...
...
@@ -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
...
...
sound/soc/codecs/Makefile
浏览文件 @
bfe617d3
...
...
@@ -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
...
...
sound/soc/codecs/ssm2518.c
0 → 100644
浏览文件 @
bfe617d3
此差异已折叠。
点击以展开。
sound/soc/codecs/ssm2518.h
0 → 100644
浏览文件 @
bfe617d3
/*
* SSM2518 amplifier audio driver
*
* Copyright 2013 Analog Devices Inc.
* Author: Lars-Peter Clausen <lars@metafoo.de>
*
* Licensed under the GPL-2.
*/
#ifndef __SND_SOC_CODECS_SSM2518_H__
#define __SND_SOC_CODECS_SSM2518_H__
#define SSM2518_SYSCLK 0
enum
ssm2518_sysclk_src
{
SSM2518_SYSCLK_SRC_MCLK
=
0
,
SSM2518_SYSCLK_SRC_BCLK
=
1
,
};
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录