Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3abee53e
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看板
提交
3abee53e
编写于
1月 05, 2008
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (6955): Properly implement 12MHz I2S support
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
上级
0f6dac18
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
17 deletion
+24
-17
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-cards.c
+9
-11
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx-core.c
+9
-2
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx-video.c
+3
-4
drivers/media/video/em28xx/em28xx.h
drivers/media/video/em28xx/em28xx.h
+3
-0
未找到文件。
drivers/media/video/em28xx/em28xx-cards.c
浏览文件 @
3abee53e
...
...
@@ -174,13 +174,14 @@ struct em28xx_board em28xx_boards[] = {
}
},
},
[
EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950
]
=
{
.
name
=
"Hauppauge WinTV HVR 950"
,
.
vchannels
=
3
,
.
tda9887_conf
=
TDA9887_PRESENT
,
.
tuner_type
=
TUNER_XC2028
,
.
has_tuner
=
1
,
.
mts_firmware
=
1
,
.
decoder
=
EM28XX_TVP5150
,
.
name
=
"Hauppauge WinTV HVR 950"
,
.
vchannels
=
3
,
.
tda9887_conf
=
TDA9887_PRESENT
,
.
tuner_type
=
TUNER_XC2028
,
.
has_tuner
=
1
,
.
mts_firmware
=
1
,
.
has_12mhz_i2s
=
1
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
.
vmux
=
TVP5150_COMPOSITE0
,
...
...
@@ -641,6 +642,7 @@ static void em28xx_set_model(struct em28xx *dev)
dev
->
decoder
=
em28xx_boards
[
dev
->
model
].
decoder
;
dev
->
video_inputs
=
em28xx_boards
[
dev
->
model
].
vchannels
;
dev
->
analog_gpio
=
em28xx_boards
[
dev
->
model
].
analog_gpio
;
dev
->
has_12mhz_i2s
=
em28xx_boards
[
dev
->
model
].
has_12mhz_i2s
;
if
(
!
em28xx_boards
[
dev
->
model
].
has_tuner
)
dev
->
tuner_type
=
UNSET
;
...
...
@@ -676,10 +678,6 @@ void em28xx_card_setup(struct em28xx *dev)
if
(
tv
.
has_ir
)
request_module
(
"ir-kbd-i2c"
);
#endif
/* enable audio 12 mhz i2s */
em28xx_write_regs
(
dev
,
XCLK_REG
,
"
\xa7
"
,
1
);
msleep
(
10
);
break
;
}
case
EM2820_BOARD_KWORLD_PVRTV2800RF
:
...
...
drivers/media/video/em28xx/em28xx-core.c
浏览文件 @
3abee53e
...
...
@@ -332,6 +332,7 @@ int em28xx_audio_analog_set(struct em28xx *dev)
{
int
ret
;
char
s
[
2
]
=
{
0x00
,
0x00
};
u8
xclk
=
0x07
;
s
[
0
]
|=
0x1f
-
dev
->
volume
;
s
[
1
]
|=
0x1f
-
dev
->
volume
;
...
...
@@ -342,10 +343,16 @@ int em28xx_audio_analog_set(struct em28xx *dev)
if
(
ret
<
0
)
return
ret
;
ret
=
em28xx_write_reg_bits
(
dev
,
XCLK_REG
,
dev
->
mute
?
0x00
:
0x80
,
0x80
);
if
(
dev
->
has_12mhz_i2s
)
xclk
|=
0x20
;
if
(
!
dev
->
mute
)
xclk
|=
0x80
;
ret
=
em28xx_write_reg_bits
(
dev
,
XCLK_REG
,
xclk
,
0xa7
);
if
(
ret
<
0
)
return
ret
;
msleep
(
10
);
/* Selects the proper audio input */
ret
=
em28xx_set_audio_source
(
dev
);
...
...
drivers/media/video/em28xx/em28xx-video.c
浏览文件 @
3abee53e
...
...
@@ -125,10 +125,6 @@ static int em28xx_config(struct em28xx *dev)
dev
->
mute
=
1
;
/* maybe not the right place... */
dev
->
volume
=
0x1f
;
/* Init XCLK_REG, audio muted */
dev
->
em28xx_write_regs
(
dev
,
XCLK_REG
,
"
\x87
"
,
1
);
em28xx_audio_analog_set
(
dev
);
em28xx_outfmt_set_yuv422
(
dev
);
em28xx_colorlevels_set_default
(
dev
);
em28xx_compression_disable
(
dev
);
...
...
@@ -1688,6 +1684,9 @@ static int em28xx_init_dev(struct em28xx **devhandle, struct usb_device *udev,
/* Do board specific init and eeprom reading */
em28xx_card_setup
(
dev
);
/* Configure audio */
em28xx_audio_analog_set
(
dev
);
/* configure the device */
em28xx_config_i2c
(
dev
);
...
...
drivers/media/video/em28xx/em28xx.h
浏览文件 @
3abee53e
...
...
@@ -184,6 +184,8 @@ struct em28xx_board {
unsigned
int
has_tuner
:
1
;
unsigned
int
has_msp34xx
:
1
;
unsigned
int
mts_firmware
:
1
;
unsigned
int
has_12mhz_i2s
:
1
;
unsigned
int
analog_gpio
;
enum
em28xx_decoder
decoder
;
...
...
@@ -247,6 +249,7 @@ struct em28xx {
unsigned
int
has_tda9887
:
1
;
unsigned
int
stream_on
:
1
;
/* Locks streams */
unsigned
int
has_audio_class
:
1
;
unsigned
int
has_12mhz_i2s
:
1
;
int
video_inputs
;
/* number of video inputs */
struct
list_head
devlist
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录