Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
112daa7a
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
112daa7a
编写于
11月 02, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: hda - Remove unused variables
Just clean-up what GCC caught. Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
1fa17573
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
12 deletion
+1
-12
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_hdmi.c
+1
-4
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+0
-3
sound/pci/hda/patch_via.c
sound/pci/hda/patch_via.c
+0
-5
未找到文件。
sound/pci/hda/patch_hdmi.c
浏览文件 @
112daa7a
...
...
@@ -1006,7 +1006,6 @@ static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid)
unsigned
int
caps
,
config
;
int
pin_idx
;
struct
hdmi_spec_per_pin
*
per_pin
;
struct
hdmi_eld
*
eld
;
int
err
;
caps
=
snd_hda_param_read
(
codec
,
pin_nid
,
AC_PAR_PIN_CAP
);
...
...
@@ -1023,7 +1022,6 @@ static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid)
pin_idx
=
spec
->
num_pins
;
per_pin
=
&
spec
->
pins
[
pin_idx
];
eld
=
&
per_pin
->
sink_eld
;
per_pin
->
pin_nid
=
pin_nid
;
...
...
@@ -1576,7 +1574,7 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,
struct
snd_pcm_substream
*
substream
)
{
int
chs
;
unsigned
int
dataDCC
1
,
dataDCC
2
,
channel_id
;
unsigned
int
dataDCC2
,
channel_id
;
int
i
;
struct
hdmi_spec
*
spec
=
codec
->
spec
;
struct
hda_spdif_out
*
spdif
=
...
...
@@ -1586,7 +1584,6 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,
chs
=
substream
->
runtime
->
channels
;
dataDCC1
=
AC_DIG1_ENABLE
|
AC_DIG1_COPYRIGHT
;
dataDCC2
=
0x2
;
/* turn off SPDIF once; otherwise the IEC958 bits won't be updated */
...
...
sound/pci/hda/patch_realtek.c
浏览文件 @
112daa7a
...
...
@@ -2661,7 +2661,6 @@ static int alc_auto_fill_adc_caps(struct hda_codec *codec)
hda_nid_t
*
adc_nids
=
spec
->
private_adc_nids
;
hda_nid_t
*
cap_nids
=
spec
->
private_capsrc_nids
;
int
max_nums
=
ARRAY_SIZE
(
spec
->
private_adc_nids
);
bool
indep_capsrc
=
false
;
int
i
,
nums
=
0
;
nid
=
codec
->
start_nid
;
...
...
@@ -2683,13 +2682,11 @@ static int alc_auto_fill_adc_caps(struct hda_codec *codec)
break
;
if
(
type
==
AC_WID_AUD_SEL
)
{
cap_nids
[
nums
]
=
src
;
indep_capsrc
=
true
;
break
;
}
n
=
snd_hda_get_conn_list
(
codec
,
src
,
&
list
);
if
(
n
>
1
)
{
cap_nids
[
nums
]
=
src
;
indep_capsrc
=
true
;
break
;
}
else
if
(
n
!=
1
)
break
;
...
...
sound/pci/hda/patch_via.c
浏览文件 @
112daa7a
...
...
@@ -3700,13 +3700,8 @@ static const struct hda_verb vt1812_init_verbs[] = {
static
void
set_widgets_power_state_vt1812
(
struct
hda_codec
*
codec
)
{
struct
via_spec
*
spec
=
codec
->
spec
;
int
imux_is_smixer
=
snd_hda_codec_read
(
codec
,
0x13
,
0
,
AC_VERB_GET_CONNECT_SEL
,
0x00
)
==
3
;
unsigned
int
parm
;
unsigned
int
present
;
/* MUX10 (1eh) = stereo mixer */
imux_is_smixer
=
snd_hda_codec_read
(
codec
,
0x1e
,
0
,
AC_VERB_GET_CONNECT_SEL
,
0x00
)
==
5
;
/* inputs */
/* PW 5/6/7 (29h/2ah/2bh) */
parm
=
AC_PWRST_D3
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录