Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
eeb756c5
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看板
提交
eeb756c5
编写于
1月 31, 2017
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: x86: Drop unused hdmi_audio_query()
It's used nowhere. Kill it. Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
36ec0d99
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
55 deletion
+0
-55
sound/x86/intel_hdmi_audio.h
sound/x86/intel_hdmi_audio.h
+0
-1
sound/x86/intel_hdmi_audio_if.c
sound/x86/intel_hdmi_audio_if.c
+0
-54
未找到文件。
sound/x86/intel_hdmi_audio.h
浏览文件 @
eeb756c5
...
...
@@ -146,7 +146,6 @@ struct snd_intelhad {
int
had_event_handler
(
enum
had_event_type
event_type
,
void
*
data
);
int
hdmi_audio_query
(
void
*
drv_data
,
struct
hdmi_audio_event
event
);
int
hdmi_audio_suspend
(
void
*
drv_data
);
int
hdmi_audio_resume
(
void
*
drv_data
);
int
hdmi_audio_mode_change
(
struct
snd_pcm_substream
*
substream
);
...
...
sound/x86/intel_hdmi_audio_if.c
浏览文件 @
eeb756c5
...
...
@@ -33,60 +33,6 @@
#include "intel_hdmi_audio.h"
#include "intel_hdmi_lpe_audio.h"
/**
* hdmi_audio_query - hdmi audio query function
*
*@haddata: pointer to HAD private data
*@event: audio event for which this method is invoked
*
* This function is called by client driver to query the
* hdmi audio.
*/
int
hdmi_audio_query
(
void
*
haddata
,
struct
hdmi_audio_event
event
)
{
struct
snd_pcm_substream
*
substream
=
NULL
;
struct
had_stream_data
*
had_stream
;
unsigned
long
flag_irqs
;
struct
snd_intelhad
*
intelhaddata
=
(
struct
snd_intelhad
*
)
haddata
;
if
(
intelhaddata
->
stream_info
.
had_substream
)
substream
=
intelhaddata
->
stream_info
.
had_substream
;
had_stream
=
&
intelhaddata
->
stream_data
;
switch
(
event
.
type
)
{
case
HAD_EVENT_QUERY_IS_AUDIO_BUSY
:
spin_lock_irqsave
(
&
intelhaddata
->
had_spinlock
,
flag_irqs
);
if
((
had_stream
->
stream_type
==
HAD_RUNNING_STREAM
)
||
substream
)
{
spin_unlock_irqrestore
(
&
intelhaddata
->
had_spinlock
,
flag_irqs
);
pr_debug
(
"Audio stream active
\n
"
);
return
-
EBUSY
;
}
spin_unlock_irqrestore
(
&
intelhaddata
->
had_spinlock
,
flag_irqs
);
break
;
case
HAD_EVENT_QUERY_IS_AUDIO_SUSPENDED
:
spin_lock_irqsave
(
&
intelhaddata
->
had_spinlock
,
flag_irqs
);
if
(
intelhaddata
->
drv_status
==
HAD_DRV_SUSPENDED
)
{
spin_unlock_irqrestore
(
&
intelhaddata
->
had_spinlock
,
flag_irqs
);
pr_debug
(
"Audio is suspended
\n
"
);
return
1
;
}
spin_unlock_irqrestore
(
&
intelhaddata
->
had_spinlock
,
flag_irqs
);
break
;
default:
pr_debug
(
"error un-handled event !!
\n
"
);
return
-
EINVAL
;
break
;
}
return
0
;
}
/**
* hdmi_audio_suspend - power management suspend function
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录