Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
779d0659
K
Kernel
项目概览
openeuler
/
Kernel
12 个月 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
779d0659
编写于
5月 02, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: hda - Constify fixup and other array data in patch_cmedia.c
Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
498f5b17
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
sound/pci/hda/patch_cmedia.c
sound/pci/hda/patch_cmedia.c
+20
-20
未找到文件。
sound/pci/hda/patch_cmedia.c
浏览文件 @
779d0659
...
...
@@ -53,7 +53,7 @@ struct cmi_spec {
int
num_dacs
;
/* capture */
hda_nid_t
*
adc_nids
;
const
hda_nid_t
*
adc_nids
;
hda_nid_t
dig_in_nid
;
/* capture source */
...
...
@@ -110,7 +110,7 @@ static int cmi_mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_v
*/
/* 3-stack / 2 channel */
static
struct
hda_verb
cmi9880_ch2_init
[]
=
{
static
const
struct
hda_verb
cmi9880_ch2_init
[]
=
{
/* set line-in PIN for input */
{
0x0c
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_IN
},
/* set mic PIN for input, also enable vref */
...
...
@@ -121,7 +121,7 @@ static struct hda_verb cmi9880_ch2_init[] = {
};
/* 3-stack / 6 channel */
static
struct
hda_verb
cmi9880_ch6_init
[]
=
{
static
const
struct
hda_verb
cmi9880_ch6_init
[]
=
{
/* set line-in PIN for output */
{
0x0c
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_OUT
},
/* set mic PIN for output */
...
...
@@ -132,7 +132,7 @@ static struct hda_verb cmi9880_ch6_init[] = {
};
/* 3-stack+front / 8 channel */
static
struct
hda_verb
cmi9880_ch8_init
[]
=
{
static
const
struct
hda_verb
cmi9880_ch8_init
[]
=
{
/* set line-in PIN for output */
{
0x0c
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_OUT
},
/* set mic PIN for output */
...
...
@@ -142,7 +142,7 @@ static struct hda_verb cmi9880_ch8_init[] = {
{}
};
static
struct
hda_channel_mode
cmi9880_channel_modes
[
3
]
=
{
static
const
struct
hda_channel_mode
cmi9880_channel_modes
[
3
]
=
{
{
2
,
cmi9880_ch2_init
},
{
6
,
cmi9880_ch6_init
},
{
8
,
cmi9880_ch8_init
},
...
...
@@ -174,7 +174,7 @@ static int cmi_ch_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_va
/*
*/
static
struct
snd_kcontrol_new
cmi9880_basic_mixer
[]
=
{
static
const
struct
snd_kcontrol_new
cmi9880_basic_mixer
[]
=
{
/* CMI9880 has no playback volumes! */
HDA_CODEC_MUTE
(
"PCM Playback Switch"
,
0x03
,
0x0
,
HDA_OUTPUT
),
/* front */
HDA_CODEC_MUTE
(
"Surround Playback Switch"
,
0x04
,
0x0
,
HDA_OUTPUT
),
...
...
@@ -205,7 +205,7 @@ static struct snd_kcontrol_new cmi9880_basic_mixer[] = {
/*
* shared I/O pins
*/
static
struct
snd_kcontrol_new
cmi9880_ch_mode_mixer
[]
=
{
static
const
struct
snd_kcontrol_new
cmi9880_ch_mode_mixer
[]
=
{
{
.
iface
=
SNDRV_CTL_ELEM_IFACE_MIXER
,
.
name
=
"Channel Mode"
,
...
...
@@ -219,7 +219,7 @@ static struct snd_kcontrol_new cmi9880_ch_mode_mixer[] = {
/* AUD-in selections:
* 0x0b 0x0c 0x0d 0x0e 0x0f 0x10 0x11 0x1f 0x20
*/
static
struct
hda_input_mux
cmi9880_basic_mux
=
{
static
const
struct
hda_input_mux
cmi9880_basic_mux
=
{
.
num_items
=
4
,
.
items
=
{
{
"Front Mic"
,
0x5
},
...
...
@@ -229,7 +229,7 @@ static struct hda_input_mux cmi9880_basic_mux = {
}
};
static
struct
hda_input_mux
cmi9880_no_line_mux
=
{
static
const
struct
hda_input_mux
cmi9880_no_line_mux
=
{
.
num_items
=
3
,
.
items
=
{
{
"Front Mic"
,
0x5
},
...
...
@@ -239,11 +239,11 @@ static struct hda_input_mux cmi9880_no_line_mux = {
};
/* front, rear, clfe, rear_surr */
static
hda_nid_t
cmi9880_dac_nids
[
4
]
=
{
static
const
hda_nid_t
cmi9880_dac_nids
[
4
]
=
{
0x03
,
0x04
,
0x05
,
0x06
};
/* ADC0, ADC1 */
static
hda_nid_t
cmi9880_adc_nids
[
2
]
=
{
static
const
hda_nid_t
cmi9880_adc_nids
[
2
]
=
{
0x08
,
0x09
};
...
...
@@ -252,7 +252,7 @@ static hda_nid_t cmi9880_adc_nids[2] = {
/*
*/
static
struct
hda_verb
cmi9880_basic_init
[]
=
{
static
const
struct
hda_verb
cmi9880_basic_init
[]
=
{
/* port-D for line out (rear panel) */
{
0x0b
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_HP
},
/* port-E for HP out (front panel) */
...
...
@@ -281,7 +281,7 @@ static struct hda_verb cmi9880_basic_init[] = {
{}
/* terminator */
};
static
struct
hda_verb
cmi9880_allout_init
[]
=
{
static
const
struct
hda_verb
cmi9880_allout_init
[]
=
{
/* port-D for line out (rear panel) */
{
0x0b
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_HP
},
/* port-E for HP out (front panel) */
...
...
@@ -528,7 +528,7 @@ static int cmi9880_capture_pcm_cleanup(struct hda_pcm_stream *hinfo,
/*
*/
static
struct
hda_pcm_stream
cmi9880_pcm_analog_playback
=
{
static
const
struct
hda_pcm_stream
cmi9880_pcm_analog_playback
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
8
,
...
...
@@ -540,7 +540,7 @@ static struct hda_pcm_stream cmi9880_pcm_analog_playback = {
},
};
static
struct
hda_pcm_stream
cmi9880_pcm_analog_capture
=
{
static
const
struct
hda_pcm_stream
cmi9880_pcm_analog_capture
=
{
.
substreams
=
2
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -551,7 +551,7 @@ static struct hda_pcm_stream cmi9880_pcm_analog_capture = {
},
};
static
struct
hda_pcm_stream
cmi9880_pcm_digital_playback
=
{
static
const
struct
hda_pcm_stream
cmi9880_pcm_digital_playback
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -563,7 +563,7 @@ static struct hda_pcm_stream cmi9880_pcm_digital_playback = {
},
};
static
struct
hda_pcm_stream
cmi9880_pcm_digital_capture
=
{
static
const
struct
hda_pcm_stream
cmi9880_pcm_digital_capture
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -617,14 +617,14 @@ static const char * const cmi9880_models[CMI_MODELS] = {
[
CMI_AUTO
]
=
"auto"
,
};
static
struct
snd_pci_quirk
cmi9880_cfg_tbl
[]
=
{
static
const
struct
snd_pci_quirk
cmi9880_cfg_tbl
[]
=
{
SND_PCI_QUIRK
(
0x1043
,
0x813d
,
"ASUS P5AD2"
,
CMI_FULL_DIG
),
SND_PCI_QUIRK
(
0x1854
,
0x002b
,
"LG LS75"
,
CMI_MINIMAL
),
SND_PCI_QUIRK
(
0x1854
,
0x0032
,
"LG"
,
CMI_FULL_DIG
),
{}
/* terminator */
};
static
struct
hda_codec_ops
cmi9880_patch_ops
=
{
static
const
struct
hda_codec_ops
cmi9880_patch_ops
=
{
.
build_controls
=
cmi9880_build_controls
,
.
build_pcms
=
cmi9880_build_pcms
,
.
init
=
cmi9880_init
,
...
...
@@ -745,7 +745,7 @@ static int patch_cmi9880(struct hda_codec *codec)
/*
* patch entries
*/
static
struct
hda_codec_preset
snd_hda_preset_cmedia
[]
=
{
static
const
struct
hda_codec_preset
snd_hda_preset_cmedia
[]
=
{
{
.
id
=
0x13f69880
,
.
name
=
"CMI9880"
,
.
patch
=
patch_cmi9880
},
{
.
id
=
0x434d4980
,
.
name
=
"CMI9880"
,
.
patch
=
patch_cmi9880
},
{}
/* terminator */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录