Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-28 Thread Steven Toth
Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used by both the v4l2 tuner interface via the

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-28 Thread Mauro Carvalho Chehab
Hi Michael, Em Seg, 2007-08-27 às 10:02 -0300, Mauro Carvalho Chehab escreveu: I should review the source code later today. Ok. Almost everything looked fine to my eyes. I have just one comment, about the changesets that added the MODULE_DESCRIPTION and MODULE_LICENSE macros, like on this

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-28 Thread Michael Krufky
Mauro Carvalho Chehab wrote: Hi Michael, Em Seg, 2007-08-27 às 10:02 -0300, Mauro Carvalho Chehab escreveu: I should review the source code later today. Ok. Almost everything looked fine to my eyes. I have just one comment, about the changesets that added the MODULE_DESCRIPTION

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-28 Thread Jarod Wilson
On Monday 27 August 2007 11:01:21 am Steven Toth wrote: Johannes Stezenbach wrote: On Mon, Aug 20, 2007, Manu Abraham wrote: Michael Krufky wrote: -- this is a system-wide addition to the dvb_frontend structure, because we are adding analog tuning functionality to the dvb_frontend.

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-28 Thread hermann pitton
Am Dienstag, den 28.08.2007, 16:25 -0400 schrieb Michael Krufky: Mauro Carvalho Chehab wrote: Hi Michael, Em Seg, 2007-08-27 às 10:02 -0300, Mauro Carvalho Chehab escreveu: I should review the source code later today. Ok. Almost everything looked fine to my eyes. I

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-28 Thread Oliver Endriss
Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used by both the v4l2 tuner interface via the

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-27 Thread Mauro Carvalho Chehab
You say, there weren't any log messages from tea5767 driver. -- This is because the tuner_info line was disabled -- I've re-enabled it just now, and push up the changeset. Please update your tree and test again -- I believe that the only issue here is the missing message from the tea5767

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-27 Thread Michael Krufky
Mauro Carvalho Chehab wrote: You say, there weren't any log messages from tea5767 driver. -- This is because the tuner_info line was disabled -- I've re-enabled it just now, and push up the changeset. Please update your tree and test again -- I believe that the only issue here is the missing

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-27 Thread Steven Toth
Steven Toth wrote: MikeW wrote: Michael Krufky mkrufky at linuxtv.org writes: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all I never saw the original RFC posting on the ML. What was the date on

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-27 Thread Markus Rechberger
On 8/27/07, Steven Toth [EMAIL PROTECTED] wrote: Steven Toth wrote: MikeW wrote: Michael Krufky mkrufky at linuxtv.org writes: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all I never saw the original RFC posting on

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-27 Thread Steven Toth
Markus Rechberger wrote: On 8/27/07, Steven Toth [EMAIL PROTECTED] wrote: Steven Toth wrote: MikeW wrote: Michael Krufky mkrufky at linuxtv.org writes: For the past few months, I've been working on refactoring the analog tuner.ko

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-27 Thread Steven Toth
Johannes Stezenbach wrote: On Mon, Aug 20, 2007, Manu Abraham wrote: Michael Krufky wrote: -- this is a system-wide addition to the dvb_frontend structure, because we are adding analog tuning functionality to the dvb_frontend. Analog tuning is public to DVB core ? I don't

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-24 Thread Michael Krufky
Mauro Carvalho Chehab wrote: About the dmesg, I didn't have time to store it. Basically, on the first compilation, I got two errors, since tuner-simple and tea5767 weren't selected on Kconfig. I've then selected the option to auto-include the required i2c drivers. Those two messages

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-22 Thread MikeW
Michael Krufky mkrufky at linuxtv.org writes: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. ...snip... If there are any other questions, comments or

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-22 Thread Steven Toth
MikeW wrote: Michael Krufky mkrufky at linuxtv.org writes: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all I never saw the original RFC posting on the ML. What was the date on this original thread? - Steve

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-22 Thread Michael Krufky
Steven Toth wrote: MikeW wrote: Michael Krufky mkrufky at linuxtv.org writes: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all I never saw the original RFC posting on the ML. What was the date on this original thread?

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-21 Thread Mauro Carvalho Chehab
I didn't reviewed yet the tea5767 changes. I expect to do it later this week (maybe today night). Thank you -- I appreciate that. I did just a quick test yesterday. I didn't analyzed the source code yet. Basically, tea5767 didn't work: Those are the _normal_ logs from tip: Linux video

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-21 Thread Michael Krufky
Mauro Carvalho Chehab wrote: I didn't reviewed yet the tea5767 changes. I expect to do it later this week (maybe today night). Thank you -- I appreciate that. I did just a quick test yesterday. I didn't analyzed the source code yet. Basically, tea5767 didn't work: i2c_adapter

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-21 Thread Mike Isely
On Sat, 18 Aug 2007, Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. [...] Acked-by: Mike Isely [EMAIL PROTECTED] I've studied the

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Manu Abraham
Michael Krufky wrote: Manu Abraham wrote: Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Hans Verkuil
Manu Abraham wrote: Michael Krufky wrote: We cannot move struct analog_parameters out of dvb_frontend.h , since the new set_analog_params method must be a part of the dvb_tuner_ops structure. This is a very small price to pay, for quite a large gain, You mean to say it is impossible to do

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Manu Abraham
Hans Verkuil wrote: At first glance that certainly seems better than adding a void pointer as a replacement for the set_analog_params function pointer. Sometimes elegance also matters. Other than that the convention that we have is (from dvb_frontend.h) 151 void*

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Michael Krufky
Manu Abraham wrote: You will need to handle the IOCTL calls for analog operations some place, whatever you remove. I don't see at any place you are handling the IOCTL's directly in the drivers. So you will be using callbacks from the place where you are applying the ioctl's You are getting

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Hans Verkuil
On Monday 20 August 2007 17:22:41 Michael Krufky wrote: Manu Abraham wrote: You will need to handle the IOCTL calls for analog operations some place, whatever you remove. I don't see at any place you are handling the IOCTL's directly in the drivers. So you will be using callbacks from

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Manu Abraham
Michael Krufky wrote: THIS is the root of our disagreement -- The analog tuning functionality is _not_ private to the device There was a small typo. Analog operation is private to the DVB frontend device -- this is a system-wide addition to the dvb_frontend structure, because we are

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Mauro Carvalho Chehab
Em Seg, 2007-08-20 às 11:22 -0400, Michael Krufky escreveu: Manu Abraham wrote: You will need to handle the IOCTL calls for analog operations some place, whatever you remove. I don't see at any place you are handling the IOCTL's directly in the drivers. So you will be using callbacks

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Michael Krufky
Mauro Carvalho Chehab wrote: Em Seg, 2007-08-20 às 11:22 -0400, Michael Krufky escreveu: Manu Abraham wrote: You will need to handle the IOCTL calls for analog operations some place, whatever you remove. I don't see at any place you are handling the IOCTL's directly in the

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Mauro Carvalho Chehab
Meanwhile, I do not plan on introducing this idea for many months, probably for 2.6.25 or 2.6.26, maybe 2.6.27... so I would rather not discuss this now -- it is completely irrelevant to the matter at hand. Agreed. When I did my testing of tuner-simple and tda8290 modules, I ran into

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Manu Abraham
Mauro Carvalho Chehab wrote: Using void* priv will just create some troubles, since this will avoid gcc to do typecast checkings for no gain. In this specific context what is strict typecast check going to achieve for you ? You should probably explicitly state the problem what you face in this

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Johannes Stezenbach
On Mon, Aug 20, 2007, Manu Abraham wrote: Michael Krufky wrote: -- this is a system-wide addition to the dvb_frontend structure, because we are adding analog tuning functionality to the dvb_frontend. Analog tuning is public to DVB core ? I don't think so. It would've been correct, if

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-20 Thread Manu Abraham
Johannes Stezenbach wrote: On Mon, Aug 20, 2007, Manu Abraham wrote: Michael Krufky wrote: -- this is a system-wide addition to the dvb_frontend structure, because we are adding analog tuning functionality to the dvb_frontend. Analog tuning is public to DVB core ? I don't think so. It

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-19 Thread Hans Verkuil
On Sunday 19 August 2007 00:25:40 Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used by both the

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-19 Thread Manu Abraham
Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used by both the v4l2 tuner interface via the

Re: [linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-19 Thread Michael Krufky
Manu Abraham wrote: Michael Krufky wrote: For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used by both the v4l2 tuner

[linux-dvb] [RFC] Hybrid tuner refactoring, phase 1

2007-08-18 Thread Michael Krufky
For the past few months, I've been working on refactoring the analog tuner.ko module, such that all hardware-specific code can be separated into dvb_frontend style tuner modules. This allows for a single module to be used by both the v4l2 tuner interface via the tuner.ko i2c_client driver, and