Add support for TEA5761 (from linux-omap)
cover Add support for TEA5761 (from linux-omap)
From: Eduardo Valentin <[email protected]>
Hi guys,
This patch is just an update from linux-omap tree. It is a v4l2 driver which is only in linux-omap tree. I'm just sendint it to proper repository.
It adds support for tea5761 chip.
It is a v4l2 driver which exports a radio interface.
Comments are wellcome!
Cheers,
Eduardo Valentin (1):
Add support for tea5761 chip
drivers/media/radio/Kconfig | 13 + drivers/media/radio/Makefile | 1 + drivers/media/radio/radio-tea5761.c | 516 +++++++++++++++++++++++++++++++++++ 3 files changed, 530 insertions(+), 0 deletions(-) create mode 100644 drivers/media/radio/radio-tea5761.c
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
PATCH 1/1 Add support for tea5761 chip
From: Eduardo Valentin <[email protected]>
This patch adds support for tea5761 chip. This chip is a FM receiver. It basically exports a radio interface through V4L2 api. This support uses i2c protocol to communicate with this chip.
--- drivers/media/radio/Kconfig | 13 + drivers/media/radio/Makefile | 1 + drivers/media/radio/radio-tea5761.c | 516 +++++++++++++++++++++++++++++++++++ 3 files changed, 530 insertions(+), 0 deletions(-) create mode 100644 drivers/media/radio/radio-tea5761.c
drivers/media/radio/Kconfig +13 -0
@@ -339,6 +339,19 @@ config RADIO_ZOLTRIX_PORT help Enter the I/O port of your Zoltrix radio card. +config RADIO_TEA5761 + tristate "Philips Semiconductors TEA5761 I2C FM Radio" + help + Choose Y here if you have one of these AM/FM radio cards. + + In order to control your radio card, you will need to use programs + that are compatible with the Video For Linux 2 API. Information on + this API and pointers to "v4l" programs may be found at + <file:Documentation/video4linux/API.html>. + + To compile this driver as a module, choose M here: the + module will be called radio-tea5761. + config USB_DSBR tristate "D-Link/GemTek USB FM radio support" depends on USB && VIDEO_V4L2
drivers/media/radio/Makefile +1 -0
@@ -20,6 +20,7 @@ obj-$(CONFIG_RADIO_GEMTEK) += radio-gemtek.o obj-$(CONFIG_RADIO_GEMTEK_PCI) += radio-gemtek-pci.o obj-$(CONFIG_RADIO_TRUST) += radio-trust.o obj-$(CONFIG_RADIO_MAESTRO) += radio-maestro.o +obj-$(CONFIG_RADIO_TEA5761) += radio-tea5761.o obj-$(CONFIG_USB_DSBR) += dsbr100.o obj-$(CONFIG_USB_SI470X) += radio-si470x.o
drivers/media/radio/radio-tea5761.c new file +516 -0
516 lines not on this page · raw message
Signature · 6 lines
1.5.6.rc0.84.g06f60.dirty -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 15 lines · Eduardo Valentin
From: Eduardo Valentin <[email protected]>
Hi guys,
This patch is just an update from linux-omap tree. It is a v4l2 driver which is only in linux-omap tree. I'm just sendint it to proper repository.
It adds support for tea5761 chip.
It is a v4l2 driver which exports a radio interface.Comments are wellcome!
Cheers,
Quoted 8 lines
Eduardo Valentin (1):
Add support for tea5761 chipdrivers/media/radio/Kconfig | 13 + drivers/media/radio/Makefile | 1 + drivers/media/radio/radio-tea5761.c | 516 +++++++++++++++++++++++++++++++++++ 3 files changed, 530 insertions(+), 0 deletions(-) create mode 100644 drivers/media/radio/radio-tea5761.c
Eduardo,
We already have a tea5761 driver in our tree -- can you use that one, instead? Mauro Carvalho Chehab (cc added) wrote that driver based on a datasheet -- it should work for you. If it needs changes, please generate patches against linux/drivers/media/common/tuners/tea5761.[ch]
Regards,
Mike Krufky
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 25 lines · On Tue, 3 Jun 2008 11:44:36 -0400 "Michael Krufky" <[email protected]> wrote:
Quoted 15 lines · Eduardo Valentin
From: Eduardo Valentin <[email protected]>
Hi guys,
This patch is just an update from linux-omap tree. It is a v4l2 driver which is only in linux-omap tree. I'm just sendint it to proper repository.
It adds support for tea5761 chip.
It is a v4l2 driver which exports a radio interface.Comments are wellcome!
Cheers,
Quoted 8 lines
Eduardo Valentin (1):
Add support for tea5761 chipdrivers/media/radio/Kconfig | 13 + drivers/media/radio/Makefile | 1 + drivers/media/radio/radio-tea5761.c | 516 +++++++++++++++++++++++++++++++++++ 3 files changed, 530 insertions(+), 0 deletions(-) create mode 100644 drivers/media/radio/radio-tea5761.c
Quoted 7 lines
Eduardo,
We already have a tea5761 driver in our tree -- can you use that one, instead? Mauro Carvalho Chehab (cc added) wrote that driver based on a datasheet -- it should work for you. If it needs changes, please generate patches against linux/drivers/media/common/tuners/tea5761.[ch]
Michael,
Thanks for noticing this. I'm very busy those days, still trying to figure out what patches are missed.
Olá Eduardo,
We should avoid to duplicate drivers. Feel free to fix tea5761, if it is not working, but don't add another version.
If you have any doubts about it, feel free to send it to me.
Thanks.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being under drivers/media/radio/ or under drivers/media/common/tunners/ ? What is the API more recommended dvb_tuner_ops or video_device ? I wonder also what current applications are using.
Cheers,
Quoted 57 lines · Mauro Carvalho Chehab
Quoted 27 lines · On Tue, 3 Jun 2008 11:44:36 -0400 "Michael Krufky" <[email protected]> wrote:
Quoted 18 lines · Eduardo Valentin
From: Eduardo Valentin <[email protected]>
Hi guys,
This patch is just an update from linux-omap tree. It is a v4l2 driver which is only in linux-omap tree. I'm just sendint it to proper repository.
It adds support for tea5761 chip.
It is a v4l2 driver which exports a radio interface.Comments are wellcome!
Cheers,
Eduardo Valentin (1):
Add support for tea5761 chipQuoted 6 lines
drivers/media/radio/Kconfig | 13 + drivers/media/radio/Makefile | 1 + drivers/media/radio/radio-tea5761.c | 516 +++++++++++++++++++++++++++++++++++ 3 files changed, 530 insertions(+), 0 deletions(-) create mode 100644 drivers/media/radio/radio-tea5761.cQuoted 7 lines
Eduardo,
We already have a tea5761 driver in our tree -- can you use that one, instead? Mauro Carvalho Chehab (cc added) wrote that driver based on a datasheet -- it should work for you. If it needs changes, please generate patches against linux/drivers/media/common/tuners/tea5761.[ch]
Michael,
Thanks for noticing this. I'm very busy those days, still trying to figure out
what patches are missed.Olá Eduardo,
We should avoid to duplicate drivers. Feel free to fix tea5761, if it is not working, but don't add another version.
If you have any doubts about it, feel free to send it to me.
Thanks.
Cheers,
Mauro
Signature · 6 lines
Eduardo Bezerra Valentin -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 11 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or underdrivers/media/common/tunners/? What is the API more recommendeddvb_tuner_opsorvideo_device? I wonder also what current applications are using.
Good point. some radio tuners are used inside video boards. Before, this were located inside drivers/media/video. Now, they are at common/tuners. This seems to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably need a counterpart module, at media/radio, that will provice I2C access methods needed on N800.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 25 lines · Mauro Carvalho Chehab
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 12 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or underdrivers/media/common/tunners/? What is the API more recommendeddvb_tuner_opsorvideo_device? I wonder also what current applications are using.
Quoted 1 line
Good point. some radio tuners are used inside video boards. Before, this
were
Quoted 1 line
located inside
drivers/media/video. Now, they are at common/tuners. This
seems
Quoted 3 lines
to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably
need a
Quoted 1 line
counterpart module, at media/radio, that will provice I2C access methods
needed
Quoted 2 lines
on N800.
Basically, what you will have to do is create a n800 driver under media/radio. This n800 driver will provide the userspace interface via v4l2, and it will use internal tuner API to interface to the tea5761 module.
When all is said and done, most likely all of the tea5761-specific code would be removed from the driver that you submit -- the remaining code would merely handle glue between userspace and internal tuner api.
Regards,
Mike
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Hi Mike,
Quoted 33 lines · On Wed, Jun 4, 2008 at 11:20 AM, <[email protected]> wrote:
Quoted 25 lines · Mauro Carvalho Chehab
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 12 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or underdrivers/media/common/tunners/? What is the API more recommendeddvb_tuner_opsorvideo_device? I wonder also what current applications are using.Quoted 1 line
Good point. some radio tuners are used inside video boards. Before, this
were
Quoted 1 line
located inside
drivers/media/video. Now, they are at common/tuners. Thisseems
Quoted 3 lines
to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably
Quoted 9 lines
need a
Quoted 1 line
counterpart module, at media/radio, that will provice I2C access methods
needed
Quoted 2 lines
on N800.
Basically, what you will have to do is create a n800 driver under media/radio. This n800 driver will provide the userspace interface via v4l2, and it will use internal tuner API to interface to the tea5761 module.
Yeah, true.
Quoted 3 lines
When all is said and done, most likely all of the tea5761-specific code would be removed from the driver that you submit -- the remaining code would merely handle glue between userspace and internal tuner api.
Humm.. some code may remain inside this driver. Functions to power on/down the device, for example. They are not exported through this tuner API.
Quoted 5 lines
Regards,
Mike
Signature · 6 lines
Eduardo Bezerra Valentin -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 46 lines · On Wed, 4 Jun 2008 16:13:57 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mike,
Quoted 33 lines · On Wed, Jun 4, 2008 at 11:20 AM, <[email protected]> wrote:
Quoted 25 lines · Mauro Carvalho Chehab
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 12 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or underdrivers/media/common/tunners/? What is the API more recommendeddvb_tuner_opsorvideo_device? I wonder also what current applications are using.Quoted 1 line
Good point. some radio tuners are used inside video boards. Before, this
were
Quoted 1 line
located inside
drivers/media/video. Now, they are at common/tuners. Thisseems
Quoted 3 lines
to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably
Quoted 9 lines
need a
Quoted 1 line
counterpart module, at media/radio, that will provice I2C access methods
needed
Quoted 2 lines
on N800.
Basically, what you will have to do is create a n800 driver under media/radio. This n800 driver will provide the userspace interface via v4l2, and it will use internal tuner API to interface to the tea5761 module.
Quoted 8 lines
Yeah, true.
Quoted 3 lines
When all is said and done, most likely all of the tea5761-specific code would be removed from the driver that you submit -- the remaining code would merely handle glue between userspace and internal tuner api.
Humm.. some code may remain inside this driver. Functions to power on/down the device, for example. They are not exported through this tuner API.
Please map what functions you're needing. It makes sense to extend tuner API to handle such things. In the case of power down, I think there's one callback for it already.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 23 lines · Mauro Carvalho Chehab
Quoted 19 lines · On Wed, 4 Jun 2008 16:13:57 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mike,
Quoted 15 lines · On Wed, Jun 4, 2008 at 11:20 AM, <[email protected]> wrote:
Quoted 13 lines · Mauro Carvalho Chehab
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or under
drivers/media/common/tunners/ ?
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
What is the API more recommended
dvb_tuner_opsorvideo_device? I wonder also what current applications are using.Good point. some radio tuners are used inside video boards. Before,
this
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
were
Quoted 1 line
located inside
drivers/media/video. Now, they are at common/tuners.
This
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
seems
Quoted 4 lines
to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably
need a
Quoted 1 line
counterpart module, at media/radio, that will provice I2C access
methods
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
needed
Quoted 3 lines
on N800.
Basically, what you will have to do is create a n800 driver under media/radio. This n800 driver will provide the userspace interface via v4l2, and it will use internal tuner API to interface to the tea5761
module.
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
Yeah, true.
Quoted 4 lines
When all is said and done, most likely all of the tea5761-specific code would be removed from the driver that you submit -- the remaining code would merely handle glue between userspace and internal tuner api.
Humm.. some code may remain inside this driver. Functions to power
on/down
Quoted 4 lines
Quoted 2 lines
the device, for example. They are not exported through this tuner API.
Please map what functions you're needing. It makes sense to extend tuner
API to
Quoted 1 line
handle such things. In the case of power down, I think there's one
callback for
Quoted 1 line
it already.
.sleep for power down
.init for power up
It's all there. Is there anything else missing, Eduardo?
-Mike
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Ok guys,
Sorry, my bad. I'll try to rewrite it. I'll re-send this as soon as possible. Maybe some doubts will come up, but I'll be polling you :).
Cheers,
Quoted 96 lines · On Wed, Jun 4, 2008 at 5:06 PM, <[email protected]> wrote:
Quoted 23 lines · Mauro Carvalho Chehab
Quoted 19 lines · On Wed, 4 Jun 2008 16:13:57 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mike,
Quoted 15 lines · On Wed, Jun 4, 2008 at 11:20 AM, <[email protected]> wrote:
Quoted 13 lines · Mauro Carvalho Chehab
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or under
drivers/media/common/tunners/?Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
What is the API more recommended
dvb_tuner_opsorvideo_device? I wonder also what current applications are using.Good point. some radio tuners are used inside video boards. Before,
this
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
were
Quoted 1 line
located inside
drivers/media/video. Now, they are at common/tuners.This
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
seems
Quoted 4 lines
to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably
need a
Quoted 1 line
counterpart module, at media/radio, that will provice I2C access
methods
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
needed
Quoted 3 lines
on N800.
Basically, what you will have to do is create a n800 driver under media/radio. This n800 driver will provide the userspace interface via v4l2, and it will use internal tuner API to interface to the tea5761
module.
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
Yeah, true.
Quoted 4 lines
When all is said and done, most likely all of the tea5761-specific code would be removed from the driver that you submit -- the remaining code would merely handle glue between userspace and internal tuner api.
Humm.. some code may remain inside this driver. Functions to power
on/down
Quoted 4 lines
Quoted 2 lines
the device, for example. They are not exported through this tuner API.
Please map what functions you're needing. It makes sense to extend tuner
API to
Quoted 1 line
handle such things. In the case of power down, I think there's one
callback for
Quoted 1 line
it already.
.sleep for power down
.init for power up
It's all there. Is there anything else missing, Eduardo?
-Mike
Signature · 6 lines
Eduardo Bezerra Valentin -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Hi guys,
About this Tuner API, what is the best way to [s,g]et mute state?
cheers,
Quoted 110 lines · Eduardo Valentin
Ok guys,
Sorry, my bad. I'll try to rewrite it. I'll re-send this as soon as possible. Maybe some doubts will come up, but I'll be polling you :).
Cheers,
Quoted 86 lines · On Wed, Jun 4, 2008 at 5:06 PM, <[email protected]> wrote:
Quoted 23 lines · Mauro Carvalho Chehab
Quoted 19 lines · On Wed, 4 Jun 2008 16:13:57 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mike,
Quoted 15 lines · On Wed, Jun 4, 2008 at 11:20 AM, <[email protected]> wrote:
Quoted 13 lines · Mauro Carvalho Chehab
Hi Eduardo,
Quoted 6 lines · On Wed, 4 Jun 2008 10:25:23 -0400 "Eduardo Valentin" <[email protected]>…
Hi Mauro and Michael,
Thanks for pointing that there were a duplicated work. If there is any update on the current driver, I'll contact you. I'm not the author of this driver, but I'm interested in some points here.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
This chip is used on n800 FM radio. That's why this version came from linux-omap.
Anyway, one quest that came from my mind, taking a brief look into this two drivers,
I see they use different interfaces to register a FM radio driver, and more they are located
under different places inside the tree. So, what is more recommended for FM radio drivers?
being underdrivers/media/radio/or under
drivers/media/common/tunners/?Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
What is the API more recommended
dvb_tuner_opsorvideo_device? I wonder also what current applications are using.Good point. some radio tuners are used inside video boards. Before,
this
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
were
Quoted 1 line
located inside
drivers/media/video. Now, they are at common/tuners.This
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
seems
Quoted 4 lines
to be a better place.
It should be noticed that tea5761 is an I2C device. So, you'll probably
need a
Quoted 1 line
counterpart module, at media/radio, that will provice I2C access
methods
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
needed
Quoted 3 lines
on N800.
Basically, what you will have to do is create a n800 driver under media/radio. This n800 driver will provide the userspace interface via v4l2, and it will use internal tuner API to interface to the tea5761
module.
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
Yeah, true.
Quoted 4 lines
When all is said and done, most likely all of the tea5761-specific code would be removed from the driver that you submit -- the remaining code would merely handle glue between userspace and internal tuner api.
Humm.. some code may remain inside this driver. Functions to power
on/down
Quoted 4 lines
Quoted 2 lines
the device, for example. They are not exported through this tuner API.
Please map what functions you're needing. It makes sense to extend tuner
API to
Quoted 1 line
handle such things. In the case of power down, I think there's one
callback for
Quoted 1 line
it already.
Quoted 10 lines
.sleep for power down
.init for power up
It's all there. Is there anything else missing, Eduardo?
-Mike
--
Eduardo Bezerra Valentin
Signature · 6 lines
Eduardo Bezerra Valentin -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 6 lines · Eduardo Valentin
Hi guys,
About this Tuner API, what is the best way to [s,g]et mute state?
cheers,
You would usually have the bridge driver handle mute / unmute operation. The tuner driver handles the operations of the tuner chip, itself. Mute is not normally controlled within the tuner silicon.
For cases where mute IS controlled by the tuner, we tend to call sleep to mute the tuner, and we re-tune to unmute and ensure that we're on the correct channel.
-Mike
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 11 lines · On Thu, 5 Jun 2008 11:29:47 -0400 [email protected] wrote:
Quoted 6 lines · Eduardo Valentin
Hi guys,
About this Tuner API, what is the best way to [s,g]et mute state?
cheers,
You would usually have the bridge driver handle mute / unmute operation. The tuner driver handles the operations of the tuner chip, itself. Mute is not normally controlled within the tuner silicon.
Quoted 5 lines
For cases where mute IS controlled by the tuner, we tend to call sleep to mute the tuner, and we re-tune to unmute and ensure that we're on the correct channel.
-Mike
Eduardo,
Any news about this subject?
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list