Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
fbbde0c3
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看板
提交
fbbde0c3
编写于
12月 22, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'to_linus' of master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
上级
0800c5f7
515432aa
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
54 addition
and
13 deletion
+54
-13
drivers/media/video/saa7127.c
drivers/media/video/saa7127.c
+3
-3
drivers/media/video/saa7134/Kconfig
drivers/media/video/saa7134/Kconfig
+24
-2
drivers/media/video/saa7134/Makefile
drivers/media/video/saa7134/Makefile
+5
-2
drivers/media/video/saa7134/saa7134-alsa.c
drivers/media/video/saa7134/saa7134-alsa.c
+10
-3
drivers/media/video/saa7134/saa7134-oss.c
drivers/media/video/saa7134/saa7134-oss.c
+12
-3
未找到文件。
drivers/media/video/saa7127.c
浏览文件 @
fbbde0c3
...
...
@@ -389,7 +389,7 @@ static int saa7127_set_vps(struct i2c_client *client, struct v4l2_sliced_vbi_dat
static
int
saa7127_set_cc
(
struct
i2c_client
*
client
,
struct
v4l2_sliced_vbi_data
*
data
)
{
struct
saa7127_state
*
state
=
i2c_get_clientdata
(
client
);
u16
cc
=
data
->
data
[
0
]
<<
8
|
data
->
data
[
1
];
u16
cc
=
data
->
data
[
1
]
<<
8
|
data
->
data
[
0
];
int
enable
=
(
data
->
line
!=
0
);
if
(
enable
&&
(
data
->
field
!=
0
||
data
->
line
!=
21
))
...
...
@@ -397,7 +397,7 @@ static int saa7127_set_cc(struct i2c_client *client, struct v4l2_sliced_vbi_data
if
(
state
->
cc_enable
!=
enable
)
{
saa7127_dbg
(
"Turn CC %s
\n
"
,
enable
?
"on"
:
"off"
);
saa7127_write
(
client
,
SAA7127_REG_CLOSED_CAPTION
,
(
enable
<<
6
)
|
0x11
);
(
state
->
xds_enable
<<
7
)
|
(
enable
<<
6
)
|
0x11
);
state
->
cc_enable
=
enable
;
}
if
(
!
enable
)
...
...
@@ -423,7 +423,7 @@ static int saa7127_set_xds(struct i2c_client *client, struct v4l2_sliced_vbi_dat
if
(
state
->
xds_enable
!=
enable
)
{
saa7127_dbg
(
"Turn XDS %s
\n
"
,
enable
?
"on"
:
"off"
);
saa7127_write
(
client
,
SAA7127_REG_CLOSED_CAPTION
,
(
enable
<<
7
)
|
0x11
);
(
enable
<<
7
)
|
(
state
->
cc_enable
<<
6
)
|
0x11
);
state
->
xds_enable
=
enable
;
}
if
(
!
enable
)
...
...
drivers/media/video/saa7134/Kconfig
浏览文件 @
fbbde0c3
config VIDEO_SAA7134
tristate "Philips SAA7134 support"
depends on VIDEO_DEV && PCI && I2C
&& SOUND && SND
depends on VIDEO_DEV && PCI && I2C
select VIDEO_BUF
select VIDEO_IR
select VIDEO_TUNER
select CRC32
select SND_PCM_OSS
---help---
This is a video4linux driver for Philips SAA713x based
TV cards.
...
...
@@ -13,6 +12,29 @@ config VIDEO_SAA7134
To compile this driver as a module, choose M here: the
module will be called saa7134.
config VIDEO_SAA7134_ALSA
tristate "Philips SAA7134 DMA audio support"
depends on VIDEO_SAA7134 && SOUND && SND && (!VIDEO_SAA7134_OSS || VIDEO_SAA7134_OSS = m)
select SND_PCM_OSS
---help---
This is a video4linux driver for direct (DMA) audio in
Philips SAA713x based TV cards using ALSA
To compile this driver as a module, choose M here: the
module will be called saa7134-alsa.
config VIDEO_SAA7134_OSS
tristate "Philips SAA7134 DMA audio support (OSS, DEPRECATED)"
depends on VIDEO_SAA7134 && SOUND_PRIME && (!VIDEO_SAA7134_ALSA || VIDEO_SAA7134_ALSA = m)
---help---
This is a video4linux driver for direct (DMA) audio in
Philips SAA713x based TV cards using OSS
This is deprecated in favor of the ALSA module
To compile this driver as a module, choose M here: the
module will be called saa7134-oss.
config VIDEO_SAA7134_DVB
tristate "DVB/ATSC Support for saa7134 based TV cards"
depends on VIDEO_SAA7134 && DVB_CORE
...
...
drivers/media/video/saa7134/Makefile
浏览文件 @
fbbde0c3
...
...
@@ -4,8 +4,11 @@ saa7134-objs := saa7134-cards.o saa7134-core.o saa7134-i2c.o \
saa7134-video.o saa7134-input.o
obj-$(CONFIG_VIDEO_SAA7134)
+=
saa7134.o saa7134-empress.o
\
saa6752hs.o saa7134-alsa.o
\
saa7134-oss.o
saa6752hs.o
obj-$(CONFIG_VIDEO_SAA7134_ALSA)
+=
saa7134-alsa.o
obj-$(CONFIG_VIDEO_SAA7134_OSS)
+=
saa7134-oss.o
obj-$(CONFIG_VIDEO_SAA7134_DVB)
+=
saa7134-dvb.o
EXTRA_CFLAGS
+=
-I
$(src)
/..
...
...
drivers/media/video/saa7134/saa7134-alsa.c
浏览文件 @
fbbde0c3
...
...
@@ -989,6 +989,14 @@ static int saa7134_alsa_init(void)
struct
saa7134_dev
*
dev
=
NULL
;
struct
list_head
*
list
;
if
(
!
dmasound_init
&&
!
dmasound_exit
)
{
dmasound_init
=
alsa_device_init
;
dmasound_exit
=
alsa_device_exit
;
}
else
{
printk
(
KERN_WARNING
"saa7134 ALSA: can't load, DMA sound handler already assigned (probably to OSS)
\n
"
);
return
-
EBUSY
;
}
printk
(
KERN_INFO
"saa7134 ALSA driver for DMA sound loaded
\n
"
);
list_for_each
(
list
,
&
saa7134_devlist
)
{
...
...
@@ -1001,9 +1009,6 @@ static int saa7134_alsa_init(void)
}
}
dmasound_init
=
alsa_device_init
;
dmasound_exit
=
alsa_device_exit
;
if
(
dev
==
NULL
)
printk
(
KERN_INFO
"saa7134 ALSA: no saa7134 cards found
\n
"
);
...
...
@@ -1023,6 +1028,8 @@ static void saa7134_alsa_exit(void)
snd_card_free
(
snd_saa7134_cards
[
idx
]);
}
dmasound_init
=
NULL
;
dmasound_exit
=
NULL
;
printk
(
KERN_INFO
"saa7134 ALSA driver for DMA sound unloaded
\n
"
);
return
;
...
...
drivers/media/video/saa7134/saa7134-oss.c
浏览文件 @
fbbde0c3
...
...
@@ -959,8 +959,17 @@ static int saa7134_oss_init(void)
struct
saa7134_dev
*
dev
=
NULL
;
struct
list_head
*
list
;
if
(
!
dmasound_init
&&
!
dmasound_exit
)
{
dmasound_init
=
oss_device_init
;
dmasound_exit
=
oss_device_exit
;
}
else
{
printk
(
KERN_WARNING
"saa7134 OSS: can't load, DMA sound handler already assigned (probably to ALSA)
\n
"
);
return
-
EBUSY
;
}
printk
(
KERN_INFO
"saa7134 OSS driver for DMA sound loaded
\n
"
);
list_for_each
(
list
,
&
saa7134_devlist
)
{
dev
=
list_entry
(
list
,
struct
saa7134_dev
,
devlist
);
if
(
dev
->
dmasound
.
priv_data
==
NULL
)
{
...
...
@@ -974,9 +983,6 @@ static int saa7134_oss_init(void)
if
(
dev
==
NULL
)
printk
(
KERN_INFO
"saa7134 OSS: no saa7134 cards found
\n
"
);
dmasound_init
=
oss_device_init
;
dmasound_exit
=
oss_device_exit
;
return
0
;
}
...
...
@@ -997,6 +1003,9 @@ static void saa7134_oss_exit(void)
}
dmasound_init
=
NULL
;
dmasound_exit
=
NULL
;
printk
(
KERN_INFO
"saa7134 OSS driver for DMA sound unloaded
\n
"
);
return
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录