Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
99cbb861
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看板
提交
99cbb861
编写于
2月 13, 2009
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/asoc' into for-linus
上级
7c56c29a
14fa43f5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
8 deletion
+16
-8
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tlv320aic3x.c
+7
-4
sound/soc/codecs/wm8990.c
sound/soc/codecs/wm8990.c
+3
-1
sound/soc/omap/sdp3430.c
sound/soc/omap/sdp3430.c
+2
-2
sound/soc/soc-core.c
sound/soc/soc-core.c
+4
-1
未找到文件。
sound/soc/codecs/tlv320aic3x.c
浏览文件 @
99cbb861
...
...
@@ -165,10 +165,13 @@ static int snd_soc_dapm_put_volsw_aic3x(struct snd_kcontrol *kcontrol,
struct
snd_ctl_elem_value
*
ucontrol
)
{
struct
snd_soc_dapm_widget
*
widget
=
snd_kcontrol_chip
(
kcontrol
);
int
reg
=
kcontrol
->
private_value
&
0xff
;
int
shift
=
(
kcontrol
->
private_value
>>
8
)
&
0x0f
;
int
mask
=
(
kcontrol
->
private_value
>>
16
)
&
0xff
;
int
invert
=
(
kcontrol
->
private_value
>>
24
)
&
0x01
;
struct
soc_mixer_control
*
mc
=
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
unsigned
int
reg
=
mc
->
reg
;
unsigned
int
shift
=
mc
->
shift
;
int
max
=
mc
->
max
;
unsigned
int
mask
=
(
1
<<
fls
(
max
))
-
1
;
unsigned
int
invert
=
mc
->
invert
;
unsigned
short
val
,
val_mask
;
int
ret
;
struct
snd_soc_dapm_path
*
path
;
...
...
sound/soc/codecs/wm8990.c
浏览文件 @
99cbb861
...
...
@@ -176,7 +176,9 @@ static int wm899x_outpga_put_volsw_vu(struct snd_kcontrol *kcontrol,
struct
snd_ctl_elem_value
*
ucontrol
)
{
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
int
reg
=
kcontrol
->
private_value
&
0xff
;
struct
soc_mixer_control
*
mc
=
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
reg
=
mc
->
reg
;
int
ret
;
u16
val
;
...
...
sound/soc/omap/sdp3430.c
浏览文件 @
99cbb861
...
...
@@ -91,7 +91,7 @@ static struct snd_soc_dai_link sdp3430_dai = {
};
/* Audio machine driver */
static
struct
snd_soc_
machine
snd_soc_machine
_sdp3430
=
{
static
struct
snd_soc_
card
snd_soc
_sdp3430
=
{
.
name
=
"SDP3430"
,
.
platform
=
&
omap_soc_platform
,
.
dai_link
=
&
sdp3430_dai
,
...
...
@@ -100,7 +100,7 @@ static struct snd_soc_machine snd_soc_machine_sdp3430 = {
/* Audio subsystem */
static
struct
snd_soc_device
sdp3430_snd_devdata
=
{
.
machine
=
&
snd_soc_machine
_sdp3430
,
.
card
=
&
snd_soc
_sdp3430
,
.
codec_dev
=
&
soc_codec_dev_twl4030
,
};
...
...
sound/soc/soc-core.c
浏览文件 @
99cbb861
...
...
@@ -1385,7 +1385,10 @@ int snd_soc_init_card(struct snd_soc_device *socdev)
mutex_lock
(
&
codec
->
mutex
);
#ifdef CONFIG_SND_SOC_AC97_BUS
if
(
ac97
)
{
/* Only instantiate AC97 if not already done by the adaptor
* for the generic AC97 subsystem.
*/
if
(
ac97
&&
strcmp
(
codec
->
name
,
"AC97"
)
!=
0
)
{
ret
=
soc_ac97_dev_register
(
codec
);
if
(
ret
<
0
)
{
printk
(
KERN_ERR
"asoc: AC97 device register failed
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录