* how to get a registered adapter name
@ 2009-09-14 15:42 Benedict bdc091
2009-11-27 14:08 ` Brice Dubost
0 siblings, 1 reply; 4+ messages in thread
From: Benedict bdc091 @ 2009-09-14 15:42 UTC (permalink / raw)
To: linux-media
Hi list,
I'd like to enumerate connected DVB devices from my softawre, based on
DVB API V3.
Thank to ioctl FE_GET_INFO, I'm able to get frontends name, but they
are not "clear" enough for users.
After a "quick look" in /var/log/messages I discovered that adapters
name are much expressives:
> ...
> DVB: registering new adapter (ASUS My Cinema U3000 Mini DVBT Tuner)
> DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
> ...
So, I tried to figure out a way to get "ASUS My Cinema U3000 Mini DVBT
Tuner" string from adapter, instead of "DiBcom 7000PC" from adapter's
frontend...
Unsuccefully so far.
Any suggestions?
Regards
--
Benedict
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to get a registered adapter name
2009-09-14 15:42 how to get a registered adapter name Benedict bdc091
@ 2009-11-27 14:08 ` Brice Dubost
2009-11-27 17:56 ` Matthias Schwarzott
0 siblings, 1 reply; 4+ messages in thread
From: Brice Dubost @ 2009-11-27 14:08 UTC (permalink / raw)
To: Benedict bdc091; +Cc: linux-media
Benedict bdc091 wrote:
> Hi list,
>
> I'd like to enumerate connected DVB devices from my softawre, based on
> DVB API V3.
> Thank to ioctl FE_GET_INFO, I'm able to get frontends name, but they
> are not "clear" enough for users.
>
> After a "quick look" in /var/log/messages I discovered that adapters
> name are much expressives:
>
>> ...
>> DVB: registering new adapter (ASUS My Cinema U3000 Mini DVBT Tuner)
>> DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
>> ...
>
> So, I tried to figure out a way to get "ASUS My Cinema U3000 Mini DVBT
> Tuner" string from adapter, instead of "DiBcom 7000PC" from adapter's
> frontend...
> Unsuccefully so far.
>
> Any suggestions?
>
Hello,
I have the same issue, I look a bit to the code of the DVB drivers, it
seems not obvious to recover this name as it is written now
It is stored in the "struct dvb_adapter". and printed by
dvb_register_adapter, but doesn't seems to be available by other functions
I don't think changing the v3 API or adding a new IOCTL for this is a
good idea.
What about using the new DVB API (v5) to do this? Since I'm not an
expert with this API, is there some people familiar with it which can
give me advices about the good way to do it (and if it is a good idea)
so that I can start to write some code.
Thank you
Regards
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to get a registered adapter name
2009-11-27 14:08 ` Brice Dubost
@ 2009-11-27 17:56 ` Matthias Schwarzott
2009-11-28 11:45 ` DUBOST Brice
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Schwarzott @ 2009-11-27 17:56 UTC (permalink / raw)
To: linux-media; +Cc: Brice Dubost, Benedict bdc091
On Freitag, 27. November 2009, Brice Dubost wrote:
> Benedict bdc091 wrote:
> > Hi list,
> >
> > I'd like to enumerate connected DVB devices from my softawre, based on
> > DVB API V3.
> > So, I tried to figure out a way to get "ASUS My Cinema U3000 Mini DVBT
> > Tuner" string from adapter, instead of "DiBcom 7000PC" from adapter's
> > frontend...
> > Unsuccefully so far.
> >
> > Any suggestions?
>
> Hello,
>
> I have the same issue, I look a bit to the code of the DVB drivers, it
> seems not obvious to recover this name as it is written now
>
> It is stored in the "struct dvb_adapter". and printed by
> dvb_register_adapter, but doesn't seems to be available by other functions
>
I think putting it somewhere into sysfs is a good idea (along with frontend
name).
Best is to move all dvb sysfs-devices into a per adapter subdirectory.
Matthias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to get a registered adapter name
2009-11-27 17:56 ` Matthias Schwarzott
@ 2009-11-28 11:45 ` DUBOST Brice
0 siblings, 0 replies; 4+ messages in thread
From: DUBOST Brice @ 2009-11-28 11:45 UTC (permalink / raw)
To: Matthias Schwarzott; +Cc: linux-media, Benedict bdc091
Matthias Schwarzott a écrit :
> On Freitag, 27. November 2009, Brice Dubost wrote:
>> Benedict bdc091 wrote:
>>> Hi list,
>>>
>>> I'd like to enumerate connected DVB devices from my softawre, based on
>>> DVB API V3.
>
>>> So, I tried to figure out a way to get "ASUS My Cinema U3000 Mini DVBT
>>> Tuner" string from adapter, instead of "DiBcom 7000PC" from adapter's
>>> frontend...
>>> Unsuccefully so far.
>>>
>>> Any suggestions?
>> Hello,
>>
>> I have the same issue, I look a bit to the code of the DVB drivers, it
>> seems not obvious to recover this name as it is written now
>>
>> It is stored in the "struct dvb_adapter". and printed by
>> dvb_register_adapter, but doesn't seems to be available by other functions
>>
>
> I think putting it somewhere into sysfs is a good idea (along with frontend
> name).
> Best is to move all dvb sysfs-devices into a per adapter subdirectory.
>
Hello
Is there already parts of the DVB code that use explicitely sysfs ?
I pehraps missed something, but it seems that everything in sysfs
concerning DVB is coming from the subsystems (PCI, or USB) or the
modules parameters but no DVB wide information
Am I wrong ?
Is there a reason for this ?
--
Brice
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting annoying in email?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-28 11:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14 15:42 how to get a registered adapter name Benedict bdc091
2009-11-27 14:08 ` Brice Dubost
2009-11-27 17:56 ` Matthias Schwarzott
2009-11-28 11:45 ` DUBOST Brice
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox