Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
092ebf7a
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
092ebf7a
编写于
1月 23, 2009
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/hda' into for-linus
上级
dd501d94
32ed3f46
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
13 deletion
+27
-13
Documentation/sound/alsa/HD-Audio-Models.txt
Documentation/sound/alsa/HD-Audio-Models.txt
+1
-0
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_sigmatel.c
+26
-13
未找到文件。
Documentation/sound/alsa/HD-Audio-Models.txt
浏览文件 @
092ebf7a
...
...
@@ -349,6 +349,7 @@ STAC92HD73*
STAC92HD83*
===========
ref Reference board
mic-ref Reference board with power managment for ports
STAC9872
========
...
...
sound/pci/hda/patch_sigmatel.c
浏览文件 @
092ebf7a
...
...
@@ -81,6 +81,7 @@ enum {
enum
{
STAC_92HD83XXX_REF
,
STAC_92HD83XXX_PWR_REF
,
STAC_92HD83XXX_MODELS
};
...
...
@@ -334,7 +335,7 @@ static hda_nid_t stac92hd83xxx_slave_dig_outs[2] = {
};
static
unsigned
int
stac92hd83xxx_pwr_mapping
[
4
]
=
{
0x03
,
0x0c
,
0x20
,
0x
8
0
,
0x03
,
0x0c
,
0x20
,
0x
4
0
,
};
static
hda_nid_t
stac92hd83xxx_amp_nids
[
1
]
=
{
...
...
@@ -841,10 +842,6 @@ static struct hda_verb stac92hd73xx_10ch_core_init[] = {
};
static
struct
hda_verb
stac92hd83xxx_core_init
[]
=
{
/* start of config #1 */
{
0xe
,
AC_VERB_SET_CONNECT_SEL
,
0x3
},
/* start of config #2 */
{
0xa
,
AC_VERB_SET_CONNECT_SEL
,
0x0
},
{
0xb
,
AC_VERB_SET_CONNECT_SEL
,
0x0
},
{
0xd
,
AC_VERB_SET_CONNECT_SEL
,
0x1
},
...
...
@@ -1738,10 +1735,12 @@ static unsigned int ref92hd83xxx_pin_configs[14] = {
static
unsigned
int
*
stac92hd83xxx_brd_tbl
[
STAC_92HD83XXX_MODELS
]
=
{
[
STAC_92HD83XXX_REF
]
=
ref92hd83xxx_pin_configs
,
[
STAC_92HD83XXX_PWR_REF
]
=
ref92hd83xxx_pin_configs
,
};
static
const
char
*
stac92hd83xxx_models
[
STAC_92HD83XXX_MODELS
]
=
{
[
STAC_92HD83XXX_REF
]
=
"ref"
,
[
STAC_92HD83XXX_PWR_REF
]
=
"mic-ref"
,
};
static
struct
snd_pci_quirk
stac92hd83xxx_cfg_tbl
[]
=
{
...
...
@@ -1801,6 +1800,8 @@ static struct snd_pci_quirk stac92hd71bxx_cfg_tbl[] = {
"HP dv5"
,
STAC_HP_M4
),
SND_PCI_QUIRK
(
PCI_VENDOR_ID_HP
,
0x30f4
,
"HP dv7"
,
STAC_HP_M4
),
SND_PCI_QUIRK
(
PCI_VENDOR_ID_HP
,
0x30f7
,
"HP dv4"
,
STAC_HP_DV5
),
SND_PCI_QUIRK
(
PCI_VENDOR_ID_HP
,
0x30fc
,
"HP dv7"
,
STAC_HP_M4
),
SND_PCI_QUIRK
(
PCI_VENDOR_ID_HP
,
0x3603
,
...
...
@@ -4754,7 +4755,9 @@ static struct hda_input_mux stac92hd83xxx_dmux = {
static
int
patch_stac92hd83xxx
(
struct
hda_codec
*
codec
)
{
struct
sigmatel_spec
*
spec
;
hda_nid_t
conn
[
STAC92HD83_DAC_COUNT
+
1
];
int
err
;
int
num_dacs
;
spec
=
kzalloc
(
sizeof
(
*
spec
),
GFP_KERNEL
);
if
(
spec
==
NULL
)
...
...
@@ -4773,15 +4776,16 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
spec
->
num_pwrs
=
ARRAY_SIZE
(
stac92hd83xxx_pwr_nids
);
spec
->
multiout
.
dac_nids
=
spec
->
dac_nids
;
spec
->
init
=
stac92hd83xxx_core_init
;
switch
(
codec
->
vendor_id
)
{
case
0x111d7605
:
break
;
default:
spec
->
num_pwrs
--
;
spec
->
init
++
;
/* switch to config #2 */
}
/* set port 0xe to select the last DAC
*/
num_dacs
=
snd_hda_get_connections
(
codec
,
0x0e
,
conn
,
STAC92HD83_DAC_COUNT
+
1
)
-
1
;
snd_hda_codec_write_cache
(
codec
,
0xe
,
0
,
AC_VERB_SET_CONNECT_SEL
,
num_dacs
);
spec
->
init
=
stac92hd83xxx_core_init
;
spec
->
mixer
=
stac92hd83xxx_mixer
;
spec
->
num_pins
=
ARRAY_SIZE
(
stac92hd83xxx_pin_nids
);
spec
->
num_dmuxes
=
ARRAY_SIZE
(
stac92hd83xxx_dmux_nids
);
...
...
@@ -4807,6 +4811,15 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
return
err
;
}
switch
(
codec
->
vendor_id
)
{
case
0x111d7604
:
case
0x111d7605
:
if
(
spec
->
board_config
==
STAC_92HD83XXX_PWR_REF
)
break
;
spec
->
num_pwrs
=
0
;
break
;
}
err
=
stac92xx_parse_auto_config
(
codec
,
0x1d
,
0
);
if
(
!
err
)
{
if
(
spec
->
board_config
<
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录