Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
29cda539
Commit
29cda539
authored
Feb 05, 2004
by
Jaroslav Kysela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
TEA575x tuner TEA575x code is now 2.6 videodev compatible
parent
ee50487c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
include/sound/tea575x-tuner.h
include/sound/tea575x-tuner.h
+3
-0
sound/i2c/other/tea575x-tuner.c
sound/i2c/other/tea575x-tuner.c
+16
-15
No files found.
include/sound/tea575x-tuner.h
View file @
29cda539
...
...
@@ -34,6 +34,9 @@ struct snd_tea575x_ops {
struct
snd_tea575x
{
snd_card_t
*
card
;
struct
video_device
vd
;
/* video device */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 0)
struct
file_operations
fops
;
#endif
int
dev_nr
;
/* requested device number + 1 */
int
vd_registered
;
/* video device is registered */
int
tea5759
;
/* 5759 chip is present */
...
...
sound/i2c/other/tea575x-tuner.c
View file @
29cda539
...
...
@@ -85,18 +85,11 @@ static void snd_tea575x_set_freq(tea575x_t *tea)
* Linux Video interface
*/
static
int
snd_tea575x_open
(
struct
video_device
*
dev
,
int
flags
)
static
int
snd_tea575x_do_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
void
*
arg
)
{
return
0
;
}
static
void
snd_tea575x_close
(
struct
video_device
*
dev
)
{
}
static
int
snd_tea575x_ioctl
(
struct
video_device
*
dev
,
unsigned
int
cmd
,
void
*
arg
)
{
tea575x_t
*
tea
=
dev
->
priv
;
struct
video_device
*
dev
=
video_devdata
(
file
);
tea575x_t
*
tea
=
video_get_drvdata
(
dev
);
switch
(
cmd
)
{
case
VIDIOCGCAP
:
...
...
@@ -174,6 +167,12 @@ static int snd_tea575x_ioctl(struct video_device *dev, unsigned int cmd, void *a
}
}
static
int
snd_tea575x_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
return
video_usercopy
(
inode
,
file
,
cmd
,
arg
,
snd_tea575x_do_ioctl
);
}
/*
* initialize all the tea575x chips
*/
...
...
@@ -192,10 +191,12 @@ void snd_tea575x_init(tea575x_t *tea)
strcpy
(
tea
->
vd
.
name
,
tea
->
tea5759
?
"TEA5759 radio"
:
"TEA5757 radio"
);
tea
->
vd
.
type
=
VID_TYPE_TUNER
;
tea
->
vd
.
hardware
=
VID_HARDWARE_RTRACK
;
/* FIXME: assign new number */
tea
->
vd
.
open
=
snd_tea575x_open
;
tea
->
vd
.
close
=
snd_tea575x_close
;
tea
->
vd
.
ioctl
=
snd_tea575x_ioctl
;
tea
->
vd
.
priv
=
tea
;
video_set_drvdata
(
&
tea
->
vd
,
tea
);
tea
->
vd
.
fops
=
&
tea
->
fops
;
tea
->
fops
.
owner
=
tea
->
card
->
module
;
tea
->
fops
.
open
=
video_exclusive_open
;
tea
->
fops
.
release
=
video_exclusive_release
;
tea
->
fops
.
ioctl
=
snd_tea575x_ioctl
;
if
(
video_register_device
(
&
tea
->
vd
,
VFL_TYPE_RADIO
,
tea
->
dev_nr
-
1
)
<
0
)
{
snd_printk
(
KERN_ERR
"unable to register tea575x tuner
\n
"
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment