From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Robert Fitzsimons <robfitz@273k.net>
Cc: Bongani Hlope <bonganilinux@mweb.co.za>,
video4linux-list@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bttv: Re-enabling radio support requires the use of struct bttv_fh.
Date: Wed, 27 Feb 2008 06:52:51 -0300 [thread overview]
Message-ID: <20080227065251.3b2e4516@areia> (raw)
In-Reply-To: <20080227014729.GC2685@localhost>
On Wed, 27 Feb 2008 01:47:29 +0000
Robert Fitzsimons <robfitz@273k.net> wrote:
> A number of the radio tuner ioctl functions are shared with the TV
> tuner, these functions require a struct bttv_fh data structure to be
> allocated and initialized.
>
> Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
> ---
> drivers/media/video/bt8xx/bttv-driver.c | 21 ++++++++++++++++-----
> 1 files changed, 16 insertions(+), 5 deletions(-)
>
>
> Mauro, the radio_open function may want to do more initialisation then
> the amount I copied from bttv_open.
Maybe, but the proper way would be to use just one open for both radio and
video, like cx88. This driver violates V4L2 API, since the spec says that
opening /dev/radio will select radio, by default, but it is possible to listen
video also on that interface (the opposite is valid also for /dev/video).
I'll apply the fixes, for now. The better would be if you could try to use the
same approach present on cx88.
Cheers,
Mauro
WARNING: multiple messages have this Message-ID (diff)
From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Robert Fitzsimons <robfitz@273k.net>
Cc: video4linux-list@redhat.com, linux-kernel@vger.kernel.org,
Bongani Hlope <bonganilinux@mweb.co.za>
Subject: Re: [PATCH] bttv: Re-enabling radio support requires the use of struct bttv_fh.
Date: Wed, 27 Feb 2008 06:52:51 -0300 [thread overview]
Message-ID: <20080227065251.3b2e4516@areia> (raw)
In-Reply-To: <20080227014729.GC2685@localhost>
On Wed, 27 Feb 2008 01:47:29 +0000
Robert Fitzsimons <robfitz@273k.net> wrote:
> A number of the radio tuner ioctl functions are shared with the TV
> tuner, these functions require a struct bttv_fh data structure to be
> allocated and initialized.
>
> Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
> ---
> drivers/media/video/bt8xx/bttv-driver.c | 21 ++++++++++++++++-----
> 1 files changed, 16 insertions(+), 5 deletions(-)
>
>
> Mauro, the radio_open function may want to do more initialisation then
> the amount I copied from bttv_open.
Maybe, but the proper way would be to use just one open for both radio and
video, like cx88. This driver violates V4L2 API, since the spec says that
opening /dev/radio will select radio, by default, but it is possible to listen
video also on that interface (the opposite is valid also for /dev/video).
I'll apply the fixes, for now. The better would be if you could try to use the
same approach present on cx88.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-02-27 9:54 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-17 8:36 2.6.25-rc[12] Video4Linux Bttv Regression Bongani Hlope
2008-02-18 16:11 ` Mauro Carvalho Chehab
2008-02-18 16:11 ` Mauro Carvalho Chehab
2008-02-18 21:20 ` Bongani Hlope
2008-02-18 23:21 ` Bongani Hlope
2008-02-19 14:16 ` Mauro Carvalho Chehab
2008-02-19 14:16 ` Mauro Carvalho Chehab
2008-02-19 20:37 ` Bongani Hlope
2008-02-21 9:03 ` Bongani Hlope
2008-02-26 15:41 ` Robert Fitzsimons
2008-02-26 15:41 ` Robert Fitzsimons
2008-02-27 1:42 ` Robert Fitzsimons
2008-02-27 1:42 ` Robert Fitzsimons
2008-02-27 1:44 ` [PATCH] bttv: Re-enable radio tuner support for VIDIOCGFREQ/VIDIOCSFREQ ioctls Robert Fitzsimons
2008-02-27 1:44 ` Robert Fitzsimons
2008-02-27 1:47 ` [PATCH] bttv: Re-enabling radio support requires the use of struct bttv_fh Robert Fitzsimons
2008-02-27 1:47 ` Robert Fitzsimons
2008-02-27 9:52 ` Mauro Carvalho Chehab [this message]
2008-02-27 9:52 ` Mauro Carvalho Chehab
2008-02-27 21:45 ` Bongani Hlope
2008-02-28 9:25 ` Robert Fitzsimons
2008-02-28 9:25 ` Robert Fitzsimons
2008-03-17 21:51 ` 2.6.25-rc[12] Video4Linux Bttv Regression Bongani Hlope
2008-03-20 17:22 ` Mauro Carvalho Chehab
2008-03-20 17:22 ` Mauro Carvalho Chehab
2008-03-21 14:55 ` Bongani Hlope
2008-03-22 0:05 ` [PATCH] bttv: Add a radio compat_ioctl file operation Robert Fitzsimons
2008-03-22 0:05 ` Robert Fitzsimons
2008-03-22 18:17 ` Bongani Hlope
2008-03-23 1:01 ` Mauro Carvalho Chehab
2008-03-23 1:01 ` Mauro Carvalho Chehab
2008-03-23 13:25 ` Bongani Hlope
2008-03-23 13:50 ` Mauro Carvalho Chehab
2008-03-23 13:50 ` Mauro Carvalho Chehab
2008-03-24 6:58 ` Bongani Hlope
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080227065251.3b2e4516@areia \
--to=mchehab@infradead.org \
--cc=bonganilinux@mweb.co.za \
--cc=linux-kernel@vger.kernel.org \
--cc=robfitz@273k.net \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.