Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
21fdddea
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
21fdddea
编写于
4月 09, 2006
作者:
J
James Courtier-Dutton
提交者:
Jaroslav Kysela
6月 22, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ALSA] emu10k1: Add support for Audigy4 (not Pro)
Signed-off-by:
N
James Courtier-Dutton
<
James@superbug.co.uk
>
上级
6129daaa
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
107 addition
and
21 deletion
+107
-21
include/sound/emu10k1.h
include/sound/emu10k1.h
+2
-0
sound/pci/ac97/ac97_codec.c
sound/pci/ac97/ac97_codec.c
+2
-2
sound/pci/ac97/ac97_patch.c
sound/pci/ac97/ac97_patch.c
+2
-2
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emu10k1_main.c
+47
-9
sound/pci/emu10k1/emumixer.c
sound/pci/emu10k1/emumixer.c
+52
-2
sound/pci/emu10k1/tina2.h
sound/pci/emu10k1/tina2.h
+2
-6
未找到文件。
include/sound/emu10k1.h
浏览文件 @
21fdddea
...
...
@@ -245,6 +245,7 @@
#define A_IOCFG_GPOUT0 0x0044
/* analog/digital */
#define A_IOCFG_DISABLE_ANALOG 0x0040
/* = 'enable' for Audigy2 (chiprev=4) */
#define A_IOCFG_ENABLE_DIGITAL 0x0004
#define A_IOCFG_ENABLE_DIGITAL_AUDIGY4 0x0080
#define A_IOCFG_UNKNOWN_20 0x0020
#define A_IOCFG_DISABLE_AC97_FRONT 0x0080
/* turn off ac97 front -> front (10k2.1) */
#define A_IOCFG_GPOUT1 0x0002
/* IR? drive's internal bypass (?) */
...
...
@@ -1065,6 +1066,7 @@ struct snd_emu_chip_details {
unsigned
char
emu1212m
;
/* EMU 1212m card */
unsigned
char
spi_dac
;
/* SPI interface for DAC */
unsigned
char
i2c_adc
;
/* I2C interface for ADC */
unsigned
char
adc_1361t
;
/* Use Philips 1361T ADC */
const
char
*
driver
;
const
char
*
name
;
const
char
*
id
;
/* for backward compatibility - can be NULL if not needed */
...
...
sound/pci/ac97/ac97_codec.c
浏览文件 @
21fdddea
...
...
@@ -563,7 +563,7 @@ AC97_SINGLE("PC Speaker Playback Volume", AC97_PC_BEEP, 1, 15, 1)
};
static
const
struct
snd_kcontrol_new
snd_ac97_controls_mic_boost
=
AC97_SINGLE
(
"Mic Boost (+20dB)"
,
AC97_MIC
,
6
,
1
,
0
);
AC97_SINGLE
(
"Mic Boost (+20dB)
Capture Switch
"
,
AC97_MIC
,
6
,
1
,
0
);
static
const
char
*
std_rec_sel
[]
=
{
"Mic"
,
"CD"
,
"Video"
,
"Aux"
,
"Line"
,
"Mix"
,
"Mix Mono"
,
"Phone"
};
...
...
@@ -605,7 +605,7 @@ AC97_SINGLE("Simulated Stereo Enhancement", AC97_GENERAL_PURPOSE, 14, 1, 0),
AC97_SINGLE
(
"3D Control - Switch"
,
AC97_GENERAL_PURPOSE
,
13
,
1
,
0
),
AC97_SINGLE
(
"Loudness (bass boost)"
,
AC97_GENERAL_PURPOSE
,
12
,
1
,
0
),
AC97_ENUM
(
"Mono Output Select"
,
std_enum
[
2
]),
AC97_ENUM
(
"Mic Select"
,
std_enum
[
3
]),
AC97_ENUM
(
"Mic Select
Capture Switch
"
,
std_enum
[
3
]),
AC97_SINGLE
(
"ADC/DAC Loopback"
,
AC97_GENERAL_PURPOSE
,
7
,
1
,
0
)
};
...
...
sound/pci/ac97/ac97_patch.c
浏览文件 @
21fdddea
...
...
@@ -563,7 +563,7 @@ AC97_SINGLE("Mic 1 to Phone Switch", AC97_MIC, 14, 1, 1),
AC97_SINGLE
(
"Mic 2 to Phone Switch"
,
AC97_MIC
,
13
,
1
,
1
),
AC97_ENUM
(
"Mic Select Source"
,
wm9711_enum
[
7
]),
AC97_SINGLE
(
"Mic 1 Volume"
,
AC97_MIC
,
8
,
32
,
1
),
AC97_SINGLE
(
"Mic 20dB Boost Switch"
,
AC97_MIC
,
7
,
1
,
0
),
AC97_SINGLE
(
"Mic 20dB Boost
Capture
Switch"
,
AC97_MIC
,
7
,
1
,
0
),
AC97_SINGLE
(
"Master ZC Switch"
,
AC97_MASTER
,
7
,
1
,
0
),
AC97_SINGLE
(
"Headphone ZC Switch"
,
AC97_HEADPHONE
,
7
,
1
,
0
),
...
...
@@ -653,7 +653,7 @@ AC97_SINGLE("Mic 1 Volume", AC97_MIC, 8, 31, 1),
AC97_SINGLE
(
"Mic 2 Volume"
,
AC97_MIC
,
0
,
31
,
1
),
AC97_SINGLE
(
"Mic 1 to Mono Switch"
,
AC97_LINE
,
7
,
1
,
1
),
AC97_SINGLE
(
"Mic 2 to Mono Switch"
,
AC97_LINE
,
6
,
1
,
1
),
AC97_SINGLE
(
"Mic Boost (+20dB) Switch"
,
AC97_LINE
,
5
,
1
,
0
),
AC97_SINGLE
(
"Mic Boost (+20dB)
Capture
Switch"
,
AC97_LINE
,
5
,
1
,
0
),
AC97_ENUM
(
"Mic to Headphone Mux"
,
wm9713_enum
[
0
]),
AC97_SINGLE
(
"Mic Headphone Mixer Volume"
,
AC97_LINE
,
0
,
7
,
1
),
...
...
sound/pci/emu10k1/emu10k1_main.c
浏览文件 @
21fdddea
...
...
@@ -777,14 +777,6 @@ static int snd_emu10k1_dev_free(struct snd_device *device)
static
struct
snd_emu_chip_details
emu_chip_details
[]
=
{
/* Audigy 2 Value AC3 out does not work yet. Need to find out how to turn off interpolators.*/
/* Audigy4 SB0400 */
{.
vendor
=
0x1102
,
.
device
=
0x0008
,
.
subsystem
=
0x10211102
,
.
driver
=
"Audigy2"
,
.
name
=
"Audigy 4 [SB0400]"
,
.
id
=
"Audigy2"
,
.
emu10k2_chip
=
1
,
.
ca0108_chip
=
1
,
.
spk71
=
1
,
.
ac97_chip
=
1
}
,
/* Tested by James@superbug.co.uk 3rd July 2005 */
/* DSP: CA0108-IAT
* DAC: CS4382-KQ
...
...
@@ -799,13 +791,59 @@ static struct snd_emu_chip_details emu_chip_details[] = {
.
ca0108_chip
=
1
,
.
spk71
=
1
,
.
ac97_chip
=
1
}
,
/* Audigy4 (Not PRO) SB0610 */
/* Tested by James@superbug.co.uk 4th April 2006 */
/* A_IOCFG bits
* Output
* 0: ?
* 1: ?
* 2: ?
* 3: 0 - Digital Out, 1 - Line in
* 4: ?
* 5: ?
* 6: ?
* 7: ?
* Input
* 8: ?
* 9: ?
* A: Green jack sense (Front)
* B: ?
* C: Black jack sense (Rear/Side Right)
* D: Yellow jack sense (Center/LFE/Side Left)
* E: ?
* F: ?
*
* Digital Out/Line in switch using A_IOCFG bit 3 (0x08)
* 0 - Digital Out
* 1 - Line in
*/
/* Mic input not tested.
* Analog CD input not tested
* Digital Out not tested.
* Line in working.
* Audio output 5.1 working. Side outputs not working.
*/
/* DSP: CA10300-IAT LF
* DAC: Cirrus Logic CS4382-KQZ
* ADC: Philips 1361T
* AC97: Sigmatel STAC9750
* CA0151: None
*/
{.
vendor
=
0x1102
,
.
device
=
0x0008
,
.
subsystem
=
0x10211102
,
.
driver
=
"Audigy2"
,
.
name
=
"Audigy 4 [SB0610]"
,
.
id
=
"Audigy2"
,
.
emu10k2_chip
=
1
,
.
ca0108_chip
=
1
,
.
spk71
=
1
,
.
adc_1361t
=
1
,
/* 24 bit capture instead of 16bit */
.
ac97_chip
=
1
}
,
/* Audigy 2 ZS Notebook Cardbus card.*/
/* Tested by James@superbug.co.uk 22th December 2005 */
/* Audio output 7.1/Headphones working.
* Digital output working. (AC3 not checked, only PCM)
* Audio inputs not tested.
*/
/* DSP: Tin
y
2
/* DSP: Tin
a
2
* DAC: Wolfson WM8768/WM8568
* ADC: Wolfson WM8775
* AC97: None
...
...
sound/pci/emu10k1/emumixer.c
浏览文件 @
21fdddea
...
...
@@ -777,6 +777,8 @@ int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu,
};
static
char
*
audigy_remove_ctls
[]
=
{
/* Master/PCM controls on ac97 of Audigy has no effect */
/* On the Audigy2 the AC97 playback is piped into
* the Philips ADC for 24bit capture */
"PCM Playback Switch"
,
"PCM Playback Volume"
,
"Master Mono Playback Switch"
,
...
...
@@ -804,6 +806,47 @@ int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu,
"AMic Playback Volume"
,
"Mic Playback Volume"
,
NULL
};
static
char
*
audigy_remove_ctls_1361t_adc
[]
=
{
/* On the Audigy2 the AC97 playback is piped into
* the Philips ADC for 24bit capture */
"PCM Playback Switch"
,
"PCM Playback Volume"
,
"Master Mono Playback Switch"
,
"Master Mono Playback Volume"
,
"Capture Source"
,
"Capture Switch"
,
"Capture Volume"
,
"Mic Capture Volume"
,
"Headphone Playback Switch"
,
"Headphone Playback Volume"
,
"3D Control - Center"
,
"3D Control - Depth"
,
"3D Control - Switch"
,
"Line2 Playback Volume"
,
"Line2 Capture Volume"
,
NULL
};
static
char
*
audigy_rename_ctls_1361t_adc
[]
=
{
"Master Playback Switch"
,
"Master Capture Switch"
,
"Master Playback Volume"
,
"Master Capture Volume"
,
"Wave Master Playback Volume"
,
"Master Playback Volume"
,
"PC Speaker Playback Switch"
,
"PC Speaker Capture Switch"
,
"PC Speaker Playback Volume"
,
"PC Speaker Capture Volume"
,
"Phone Playback Switch"
,
"Phone Capture Switch"
,
"Phone Playback Volume"
,
"Phone Capture Volume"
,
"Mic Playback Switch"
,
"Mic Capture Switch"
,
"Mic Playback Volume"
,
"Mic Capture Volume"
,
"Line Playback Switch"
,
"Line Capture Switch"
,
"Line Playback Volume"
,
"Line Capture Volume"
,
"CD Playback Switch"
,
"CD Capture Switch"
,
"CD Playback Volume"
,
"CD Capture Volume"
,
"Aux Playback Switch"
,
"Aux Capture Switch"
,
"Aux Playback Volume"
,
"Aux Capture Volume"
,
"Video Playback Switch"
,
"Video Capture Switch"
,
"Video Playback Volume"
,
"Video Capture Volume"
,
NULL
};
if
(
emu
->
card_capabilities
->
ac97_chip
)
{
struct
snd_ac97_bus
*
pbus
;
...
...
@@ -834,7 +877,10 @@ int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu,
snd_ac97_write_cache
(
emu
->
ac97
,
AC97_MASTER
,
0x0000
);
/* set capture source to mic */
snd_ac97_write_cache
(
emu
->
ac97
,
AC97_REC_SEL
,
0x0000
);
c
=
audigy_remove_ctls
;
if
(
emu
->
card_capabilities
->
adc_1361t
)
c
=
audigy_remove_ctls_1361t_adc
;
else
c
=
audigy_remove_ctls
;
}
else
{
/*
* Credits for cards based on STAC9758:
...
...
@@ -863,11 +909,15 @@ int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu,
}
if
(
emu
->
audigy
)
c
=
audigy_rename_ctls
;
if
(
emu
->
card_capabilities
->
adc_1361t
)
c
=
audigy_rename_ctls_1361t_adc
;
else
c
=
audigy_rename_ctls
;
else
c
=
emu10k1_rename_ctls
;
for
(;
*
c
;
c
+=
2
)
rename_ctl
(
card
,
c
[
0
],
c
[
1
]);
if
(
emu
->
card_capabilities
->
subsystem
==
0x20071102
)
{
/* Audigy 4 Pro */
rename_ctl
(
card
,
"Line2 Capture Volume"
,
"Line1/Mic Capture Volume"
);
rename_ctl
(
card
,
"Analog Mix Capture Volume"
,
"Line2 Capture Volume"
);
...
...
sound/pci/emu10k1/tina2.h
浏览文件 @
21fdddea
/*
* Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>
* Driver p16v chips
* Version: 0.21
*
*
* This code was initally based on code from ALSA's emu10k1x.c which is:
* Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
* Driver tina2 chips
* Version: 0.1
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录