[linux-dvb] [RFC] Should a DVB frontend report the board name?
hartmut.hackmann at t-online.de
Tue Feb 6 22:51:10 CET 2007
Markus Rechberger schrieb:
> On 2/6/07, Manu Abraham <abraham.manu at gmail.com> wrote:
>> On 2/6/07, Michael Krufky <mkrufky at linuxtv.org> wrote:
>> > Hartmut Hackmann wrote:
>> > > Hi, folks
>> > >
>> > > Currently most boards report the type of the channel decoder as
>> > > the frontend name. This has the disadvantage that if you have
>> > > (hybrid) cards with the same channel decoder type, you will not be
>> > > able to distinguish them in the applications. Especially if you
>> want to
>> > > use one of them for analog- and and the other one for digital TV,
>> > > becomes a problem.
>> > > In my personal repository, i have a change that reports the board
>> > > instead in saa7134-dvb.
>> > >
>> > > Should i leave this in or remove it to stay consistent with other
>> > > cards?
>> > In the past, cx88-dvb would report the board name, but I've changed it
>> > to report the frontend name in this changeset:
>> > http://linuxtv.org/hg/v4l-dvb?cmd=changeset;node=d1b4025b0ec8
>> > --- a/linux/drivers/media/video/cx88/cx88-dvb.c Tue Aug 23 15:58:06
>> > +++ b/linux/drivers/media/video/cx88/cx88-dvb.c Thu Aug 25 06:06:52
>> > @@ -412,11 +412,6 @@ static int dvb_register(struct cx8802_de
>> > dev->dvb.frontend->ops->info.frequency_max =
>> > }
>> > - /* Copy the board name into the DVB structure */
>> > - strlcpy(dev->dvb.frontend->ops->info.name,
>> > - cx88_boards[dev->core->board].name,
>> > - sizeof(dev->dvb.frontend->ops->info.name));
>> > -
>> > /* register everything */
>> > return videobuf_dvb_register(&dev->dvb, THIS_MODULE, dev);
>> > }
>> > At the time, I thought it would be more consistent to report the
>> name of
>> > demodulator, since it is in fact the frontend driver that is being
>> reported here.
>> > However, now I am aware that some other dvb drivers report the
>> device name
>> > instead of the frontend driver's name.... For instance, any dvb-usb
>> > will report the device's textual name instead of the actual frontend's
>> > In the case of dvb-usb, I do prefer that the device name is being
>> > I feel that we should be consistent across the board.
>> > Should I add those lines back to cx88-dvb so that the board's name
>> will be
>> > instead of the frontend driver's name?
>> The name of a frontend should be that of the frontend itself and not
>> the board, if it reports the board name then it is wrong, since the
>> board is not the frontend.
> not that this is very important but I've seen that some people were
> confused because of displaying the name of the demodulator, they
> stated out that they own product xy and not a ZL10353, MT352, etc.
I would not call this unimportant and i agree, the channel decoder type
tells nothing to the average user. And even the kernel log doesn't tell
More information about the linux-dvb