Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c42d4782
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c42d4782
编写于
5月 02, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: hda - Constify fixup and other array data in patch_cirrus.c
Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
728850a7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
19 deletion
+19
-19
sound/pci/hda/patch_cirrus.c
sound/pci/hda/patch_cirrus.c
+19
-19
未找到文件。
sound/pci/hda/patch_cirrus.c
浏览文件 @
c42d4782
...
...
@@ -51,7 +51,7 @@ struct cs_spec {
unsigned
int
cur_adc_format
;
hda_nid_t
dig_in
;
struct
hda_bind_ctls
*
capture_bind
[
2
];
const
struct
hda_bind_ctls
*
capture_bind
[
2
];
unsigned
int
gpio_mask
;
unsigned
int
gpio_dir
;
...
...
@@ -231,7 +231,7 @@ static int cs_capture_pcm_cleanup(struct hda_pcm_stream *hinfo,
/*
*/
static
struct
hda_pcm_stream
cs_pcm_analog_playback
=
{
static
const
struct
hda_pcm_stream
cs_pcm_analog_playback
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -242,7 +242,7 @@ static struct hda_pcm_stream cs_pcm_analog_playback = {
},
};
static
struct
hda_pcm_stream
cs_pcm_analog_capture
=
{
static
const
struct
hda_pcm_stream
cs_pcm_analog_capture
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -252,7 +252,7 @@ static struct hda_pcm_stream cs_pcm_analog_capture = {
},
};
static
struct
hda_pcm_stream
cs_pcm_digital_playback
=
{
static
const
struct
hda_pcm_stream
cs_pcm_digital_playback
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -264,7 +264,7 @@ static struct hda_pcm_stream cs_pcm_digital_playback = {
},
};
static
struct
hda_pcm_stream
cs_pcm_digital_capture
=
{
static
const
struct
hda_pcm_stream
cs_pcm_digital_capture
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -559,10 +559,10 @@ static int add_output(struct hda_codec *codec, hda_nid_t dac, int idx,
const
char
*
name
;
int
err
,
index
;
struct
snd_kcontrol
*
kctl
;
static
c
har
*
speakers
[]
=
{
static
c
onst
char
*
const
speakers
[]
=
{
"Front Speaker"
,
"Surround Speaker"
,
"Bass Speaker"
};
static
c
har
*
line_outs
[]
=
{
static
c
onst
char
*
const
line_outs
[]
=
{
"Front Line-Out"
,
"Surround Line-Out"
,
"Bass Line-Out"
};
...
...
@@ -642,7 +642,7 @@ static int build_output(struct hda_codec *codec)
/*
*/
static
struct
snd_kcontrol_new
cs_capture_ctls
[]
=
{
static
const
struct
snd_kcontrol_new
cs_capture_ctls
[]
=
{
HDA_BIND_SW
(
"Capture Switch"
,
0
),
HDA_BIND_VOL
(
"Capture Volume"
,
0
),
};
...
...
@@ -710,7 +710,7 @@ static int cs_capture_source_put(struct snd_kcontrol *kcontrol,
return
change_cur_input
(
codec
,
idx
,
0
);
}
static
struct
snd_kcontrol_new
cs_capture_source
=
{
static
const
struct
snd_kcontrol_new
cs_capture_source
=
{
.
iface
=
SNDRV_CTL_ELEM_IFACE_MIXER
,
.
name
=
"Capture Source"
,
.
access
=
SNDRV_CTL_ELEM_ACCESS_READWRITE
,
...
...
@@ -719,7 +719,7 @@ static struct snd_kcontrol_new cs_capture_source = {
.
put
=
cs_capture_source_put
,
};
static
struct
hda_bind_ctls
*
make_bind_capture
(
struct
hda_codec
*
codec
,
static
const
struct
hda_bind_ctls
*
make_bind_capture
(
struct
hda_codec
*
codec
,
struct
hda_ctl_ops
*
ops
)
{
struct
cs_spec
*
spec
=
codec
->
spec
;
...
...
@@ -983,7 +983,7 @@ static void init_input(struct hda_codec *codec)
cs_vendor_coef_set
(
codec
,
IDX_ADC_CFG
,
coef
);
}
static
struct
hda_verb
cs_coef_init_verbs
[]
=
{
static
const
struct
hda_verb
cs_coef_init_verbs
[]
=
{
{
0x11
,
AC_VERB_SET_PROC_STATE
,
1
},
{
0x11
,
AC_VERB_SET_COEF_INDEX
,
IDX_DAC_CFG
},
{
0x11
,
AC_VERB_SET_PROC_COEF
,
...
...
@@ -1017,7 +1017,7 @@ static struct hda_verb cs_coef_init_verbs[] = {
* blocks, which will alleviate the issue.
*/
static
struct
hda_verb
cs_errata_init_verbs
[]
=
{
static
const
struct
hda_verb
cs_errata_init_verbs
[]
=
{
{
0x01
,
AC_VERB_SET_POWER_STATE
,
0x00
},
/* AFG: D0 */
{
0x11
,
AC_VERB_SET_PROC_STATE
,
0x01
},
/* VPW: processing on */
...
...
@@ -1126,7 +1126,7 @@ static void cs_unsol_event(struct hda_codec *codec, unsigned int res)
}
}
static
struct
hda_codec_ops
cs_patch_ops
=
{
static
const
struct
hda_codec_ops
cs_patch_ops
=
{
.
build_controls
=
cs_build_controls
,
.
build_pcms
=
cs_build_pcms
,
.
init
=
cs_init
,
...
...
@@ -1166,7 +1166,7 @@ static const char * const cs420x_models[CS420X_MODELS] = {
};
static
struct
snd_pci_quirk
cs420x_cfg_tbl
[]
=
{
static
const
struct
snd_pci_quirk
cs420x_cfg_tbl
[]
=
{
SND_PCI_QUIRK
(
0x10de
,
0x0ac0
,
"MacBookPro 5,3"
,
CS420X_MBP53
),
SND_PCI_QUIRK
(
0x10de
,
0x0d94
,
"MacBookAir 3,1(2)"
,
CS420X_MBP55
),
SND_PCI_QUIRK
(
0x10de
,
0xcb79
,
"MacBookPro 5,5"
,
CS420X_MBP55
),
...
...
@@ -1180,7 +1180,7 @@ struct cs_pincfg {
u32
val
;
};
static
struct
cs_pincfg
mbp53_pincfgs
[]
=
{
static
const
struct
cs_pincfg
mbp53_pincfgs
[]
=
{
{
0x09
,
0x012b4050
},
{
0x0a
,
0x90100141
},
{
0x0b
,
0x90100140
},
...
...
@@ -1194,7 +1194,7 @@ static struct cs_pincfg mbp53_pincfgs[] = {
{}
/* terminator */
};
static
struct
cs_pincfg
mbp55_pincfgs
[]
=
{
static
const
struct
cs_pincfg
mbp55_pincfgs
[]
=
{
{
0x09
,
0x012b4030
},
{
0x0a
,
0x90100121
},
{
0x0b
,
0x90100120
},
...
...
@@ -1208,7 +1208,7 @@ static struct cs_pincfg mbp55_pincfgs[] = {
{}
/* terminator */
};
static
struct
cs_pincfg
imac27_pincfgs
[]
=
{
static
const
struct
cs_pincfg
imac27_pincfgs
[]
=
{
{
0x09
,
0x012b4050
},
{
0x0a
,
0x90100140
},
{
0x0b
,
0x90100142
},
...
...
@@ -1222,7 +1222,7 @@ static struct cs_pincfg imac27_pincfgs[] = {
{}
/* terminator */
};
static
struct
cs_pincfg
*
cs_pincfgs
[
CS420X_MODELS
]
=
{
static
const
struct
cs_pincfg
*
cs_pincfgs
[
CS420X_MODELS
]
=
{
[
CS420X_MBP53
]
=
mbp53_pincfgs
,
[
CS420X_MBP55
]
=
mbp55_pincfgs
,
[
CS420X_IMAC27
]
=
imac27_pincfgs
,
...
...
@@ -1283,7 +1283,7 @@ static int patch_cs420x(struct hda_codec *codec)
/*
* patch entries
*/
static
struct
hda_codec_preset
snd_hda_preset_cirrus
[]
=
{
static
const
struct
hda_codec_preset
snd_hda_preset_cirrus
[]
=
{
{
.
id
=
0x10134206
,
.
name
=
"CS4206"
,
.
patch
=
patch_cs420x
},
{
.
id
=
0x10134207
,
.
name
=
"CS4207"
,
.
patch
=
patch_cs420x
},
{}
/* terminator */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录