Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
fb79e1e0
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看板
提交
fb79e1e0
编写于
5月 02, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: hda - Constify fixup and other array data in patch_hdmi.c
Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
34cbe3a6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_hdmi.c
+13
-13
未找到文件。
sound/pci/hda/patch_hdmi.c
浏览文件 @
fb79e1e0
...
...
@@ -76,7 +76,7 @@ struct hdmi_spec {
* ati/nvhdmi specific
*/
struct
hda_multi_out
multiout
;
struct
hda_pcm_stream
*
pcm_playback
;
const
struct
hda_pcm_stream
*
pcm_playback
;
/* misc flags */
/* PD bit indicates only the update, not the current state */
...
...
@@ -1044,7 +1044,7 @@ static int generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo,
return
hdmi_setup_stream
(
codec
,
hinfo
->
nid
,
stream_tag
,
format
);
}
static
struct
hda_pcm_stream
generic_hdmi_pcm_playback
=
{
static
const
struct
hda_pcm_stream
generic_hdmi_pcm_playback
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
ops
=
{
...
...
@@ -1124,7 +1124,7 @@ static void generic_hdmi_free(struct hda_codec *codec)
kfree
(
spec
);
}
static
struct
hda_codec_ops
generic_hdmi_patch_ops
=
{
static
const
struct
hda_codec_ops
generic_hdmi_patch_ops
=
{
.
init
=
generic_hdmi_init
,
.
free
=
generic_hdmi_free
,
.
build_pcms
=
generic_hdmi_build_pcms
,
...
...
@@ -1169,12 +1169,12 @@ static int patch_generic_hdmi(struct hda_codec *codec)
#define nvhdmi_master_con_nid_7x 0x04
#define nvhdmi_master_pin_nid_7x 0x05
static
hda_nid_t
nvhdmi_con_nids_7x
[
4
]
=
{
static
const
hda_nid_t
nvhdmi_con_nids_7x
[
4
]
=
{
/*front, rear, clfe, rear_surr */
0x6
,
0x8
,
0xa
,
0xc
,
};
static
struct
hda_verb
nvhdmi_basic_init_7x
[]
=
{
static
const
struct
hda_verb
nvhdmi_basic_init_7x
[]
=
{
/* set audio protect on */
{
0x1
,
Nv_VERB_SET_Audio_Protection_On
,
0x1
},
/* enable digital output on pin widget */
...
...
@@ -1435,7 +1435,7 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,
return
0
;
}
static
struct
hda_pcm_stream
nvhdmi_pcm_playback_8ch_7x
=
{
static
const
struct
hda_pcm_stream
nvhdmi_pcm_playback_8ch_7x
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
8
,
...
...
@@ -1450,7 +1450,7 @@ static struct hda_pcm_stream nvhdmi_pcm_playback_8ch_7x = {
},
};
static
struct
hda_pcm_stream
nvhdmi_pcm_playback_2ch
=
{
static
const
struct
hda_pcm_stream
nvhdmi_pcm_playback_2ch
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -1465,14 +1465,14 @@ static struct hda_pcm_stream nvhdmi_pcm_playback_2ch = {
},
};
static
struct
hda_codec_ops
nvhdmi_patch_ops_8ch_7x
=
{
static
const
struct
hda_codec_ops
nvhdmi_patch_ops_8ch_7x
=
{
.
build_controls
=
generic_hdmi_build_controls
,
.
build_pcms
=
generic_hdmi_build_pcms
,
.
init
=
nvhdmi_7x_init
,
.
free
=
generic_hdmi_free
,
};
static
struct
hda_codec_ops
nvhdmi_patch_ops_2ch
=
{
static
const
struct
hda_codec_ops
nvhdmi_patch_ops_2ch
=
{
.
build_controls
=
generic_hdmi_build_controls
,
.
build_pcms
=
generic_hdmi_build_pcms
,
.
init
=
nvhdmi_7x_init
,
...
...
@@ -1568,7 +1568,7 @@ static int atihdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo,
return
0
;
}
static
struct
hda_pcm_stream
atihdmi_pcm_digital_playback
=
{
static
const
struct
hda_pcm_stream
atihdmi_pcm_digital_playback
=
{
.
substreams
=
1
,
.
channels_min
=
2
,
.
channels_max
=
2
,
...
...
@@ -1580,7 +1580,7 @@ static struct hda_pcm_stream atihdmi_pcm_digital_playback = {
},
};
static
struct
hda_verb
atihdmi_basic_init
[]
=
{
static
const
struct
hda_verb
atihdmi_basic_init
[]
=
{
/* enable digital output on pin widget */
{
0x03
,
AC_VERB_SET_PIN_WIDGET_CONTROL
,
PIN_OUT
},
{}
/* terminator */
...
...
@@ -1599,7 +1599,7 @@ static int atihdmi_init(struct hda_codec *codec)
return
0
;
}
static
struct
hda_codec_ops
atihdmi_patch_ops
=
{
static
const
struct
hda_codec_ops
atihdmi_patch_ops
=
{
.
build_controls
=
generic_hdmi_build_controls
,
.
build_pcms
=
generic_hdmi_build_pcms
,
.
init
=
atihdmi_init
,
...
...
@@ -1634,7 +1634,7 @@ static int patch_atihdmi(struct hda_codec *codec)
/*
* patch entries
*/
static
struct
hda_codec_preset
snd_hda_preset_hdmi
[]
=
{
static
const
struct
hda_codec_preset
snd_hda_preset_hdmi
[]
=
{
{
.
id
=
0x1002793c
,
.
name
=
"RS600 HDMI"
,
.
patch
=
patch_atihdmi
},
{
.
id
=
0x10027919
,
.
name
=
"RS600 HDMI"
,
.
patch
=
patch_atihdmi
},
{
.
id
=
0x1002791a
,
.
name
=
"RS690/780 HDMI"
,
.
patch
=
patch_atihdmi
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录