Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
69b9c5c1
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
69b9c5c1
编写于
5月 11, 2023
作者:
C
Curi0
提交者:
GitHub
5月 10, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
AudioDxe: Add --force-codec (#460)
上级
154d8457
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
0 deletion
+34
-0
Docs/Configuration.tex
Docs/Configuration.tex
+5
-0
Staging/AudioDxe/AudioDxe.c
Staging/AudioDxe/AudioDxe.c
+11
-0
Staging/AudioDxe/AudioDxe.h
Staging/AudioDxe/AudioDxe.h
+12
-0
Staging/AudioDxe/HdaCodec/HdaCodec.c
Staging/AudioDxe/HdaCodec/HdaCodec.c
+6
-0
未找到文件。
Docs/Configuration.tex
浏览文件 @
69b9c5c1
...
...
@@ -7019,6 +7019,11 @@ the driver within the \texttt{UEFI/Drivers} section:
will be achieved by using
\texttt
{
Audio
}
section
\texttt
{
SetupDelay
}
if any audio setup delay
is required. Where required, values of up to one second may be needed.
\medskip
\item
\texttt
{
-
{}
-
force
-
codec
}
-
Integer value, default
\texttt
{
0
}
.
\medskip
Force use of an audio codec, this value should be equal to
\texttt
{
Audio
}
section
\texttt
{
AudioCodec
}
.
Can result in faster boot especially when used in conjuction with
\texttt
{
-
{}
-
force
-
device
}
.
\medskip
\item
\texttt
{
-
{}
-
force
-
device
}
-
String value, no default.
\medskip
When this option is present and has a value
(
e.g.
\texttt
{
-
{}
-
force
-
device
=
PciRoot
(
0
x
0
)/
Pci
(
0
x
1
f,
0
x
3
)
}
)
, it
...
...
Staging/AudioDxe/AudioDxe.c
浏览文件 @
69b9c5c1
...
...
@@ -47,6 +47,12 @@ EFI_DEVICE_PATH_PROTOCOL *
UINTN
gCodecSetupDelay
=
0
;
BOOLEAN
gUseForcedCodec
=
FALSE
;
UINTN
gForcedCodec
=
0
;
/**
HdaController Driver Binding.
**/
...
...
@@ -120,6 +126,11 @@ AudioDxeInit (
OcParsedVarsGetInt
(
ParsedLoadOptions
,
L"--codec-setup-delay"
,
&
gCodecSetupDelay
,
OcStringFormatUnicode
);
Status
=
OcParsedVarsGetInt
(
ParsedLoadOptions
,
L"--force-codec"
,
&
gForcedCodec
,
OcStringFormatUnicode
);
if
(
Status
!=
EFI_NOT_FOUND
)
{
gUseForcedCodec
=
TRUE
;
}
OcFlexArrayFree
(
&
ParsedLoadOptions
);
}
else
if
(
Status
!=
EFI_NOT_FOUND
)
{
return
Status
;
...
...
Staging/AudioDxe/AudioDxe.h
浏览文件 @
69b9c5c1
...
...
@@ -119,4 +119,16 @@ extern
UINTN
gCodecSetupDelay
;
//
// Whether to use forced codec.
//
extern
BOOLEAN
gUseForcedCodec
;
//
// Forced codec number.
//
extern
UINTN
gForcedCodec
;
#endif // EFI_AUDIODXE_H
Staging/AudioDxe/HdaCodec/HdaCodec.c
浏览文件 @
69b9c5c1
...
...
@@ -1726,6 +1726,12 @@ HdaCodecDriverBindingSupported (
goto
CLOSE_CODEC
;
}
// Check --force-codec.
if
(
gUseForcedCodec
&&
(
gForcedCodec
!=
CodecAddress
))
{
Status
=
EFI_UNSUPPORTED
;
goto
CLOSE_CODEC
;
}
// Codec can be supported.
DEBUG
((
DEBUG_INFO
,
"HDA: Connecting codec 0x%X
\n
"
,
CodecAddress
));
Status
=
EFI_SUCCESS
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录