Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9cf0aa9e
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看板
提交
9cf0aa9e
编写于
5月 02, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: hda - Constify fixup and other array data in patch_si3054.c
Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
fb79e1e0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
5 deletion
+6
-5
sound/pci/hda/patch_si3054.c
sound/pci/hda/patch_si3054.c
+6
-5
未找到文件。
sound/pci/hda/patch_si3054.c
浏览文件 @
9cf0aa9e
...
...
@@ -130,7 +130,7 @@ static int si3054_switch_put(struct snd_kcontrol *kcontrol,
}
static
struct
snd_kcontrol_new
si3054_modem_mixer
[]
=
{
static
const
struct
snd_kcontrol_new
si3054_modem_mixer
[]
=
{
SI3054_KCONTROL
(
"Off-hook Switch"
,
SI3054_GPIO_CONTROL
,
SI3054_GPIO_OH
),
SI3054_KCONTROL
(
"Caller ID Switch"
,
SI3054_GPIO_CONTROL
,
SI3054_GPIO_CID
),
{}
...
...
@@ -181,7 +181,7 @@ static int si3054_pcm_open(struct hda_pcm_stream *hinfo,
}
static
struct
hda_pcm_stream
si3054_pcm
=
{
static
const
struct
hda_pcm_stream
si3054_pcm
=
{
.
substreams
=
1
,
.
channels_min
=
1
,
.
channels_max
=
1
,
...
...
@@ -200,12 +200,13 @@ static int si3054_build_pcms(struct hda_codec *codec)
{
struct
si3054_spec
*
spec
=
codec
->
spec
;
struct
hda_pcm
*
info
=
&
spec
->
pcm
;
si3054_pcm
.
nid
=
codec
->
mfg
;
codec
->
num_pcms
=
1
;
codec
->
pcm_info
=
info
;
info
->
name
=
"Si3054 Modem"
;
info
->
stream
[
SNDRV_PCM_STREAM_PLAYBACK
]
=
si3054_pcm
;
info
->
stream
[
SNDRV_PCM_STREAM_CAPTURE
]
=
si3054_pcm
;
info
->
stream
[
SNDRV_PCM_STREAM_PLAYBACK
].
nid
=
codec
->
mfg
;
info
->
stream
[
SNDRV_PCM_STREAM_CAPTURE
].
nid
=
codec
->
mfg
;
info
->
pcm_type
=
HDA_PCM_TYPE_MODEM
;
return
0
;
}
...
...
@@ -263,7 +264,7 @@ static void si3054_free(struct hda_codec *codec)
/*
*/
static
struct
hda_codec_ops
si3054_patch_ops
=
{
static
const
struct
hda_codec_ops
si3054_patch_ops
=
{
.
build_controls
=
si3054_build_controls
,
.
build_pcms
=
si3054_build_pcms
,
.
init
=
si3054_init
,
...
...
@@ -283,7 +284,7 @@ static int patch_si3054(struct hda_codec *codec)
/*
* patch entries
*/
static
struct
hda_codec_preset
snd_hda_preset_si3054
[]
=
{
static
const
struct
hda_codec_preset
snd_hda_preset_si3054
[]
=
{
{
.
id
=
0x163c3055
,
.
name
=
"Si3054"
,
.
patch
=
patch_si3054
},
{
.
id
=
0x163c3155
,
.
name
=
"Si3054"
,
.
patch
=
patch_si3054
},
{
.
id
=
0x11c13026
,
.
name
=
"Si3054"
,
.
patch
=
patch_si3054
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录