how to get a registered adapter name
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:
Quoted 4 lines
...
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
Quoted 15 lines · Benedict bdc091 wrote:
Hi list,
I'd like to enumerate connected DVB devices from my softawre, based on DVB API V3.
Thank to ioctlFE_GET_INFO, I'm able to get frontends name, but they are not "clear" enough for users.After a "quick look" in
/var/log/messagesI discovered that adapters name are much expressives:Quoted 4 lines
...
DVB: registering new adapter (ASUS My Cinema U3000 Mini DVBT Tuner)
DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
...
Quoted 7 lines
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
Quoted 13 lines · Brice Dubost
Quoted 11 lines · 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?
Quoted 8 lines
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 bydvb_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
Quoted 18 lines · Matthias Schwarzott
Quoted 17 lines · Brice Dubost
Quoted 11 lines · 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
Quoted 8 lines
Quoted 3 lines
It is stored in the "struct
dvb_adapter". and printed bydvb_register_adapter, but doesn't seems to be available by other functionsI 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 ?
Signature · 3 lines
Brice A: Yes.
Quoted 3 lines
Q: Are you sure?
Quoted 2 lines
A: Because it reverses the logical flow of conversation.
Quoted 1 line
Q: Why is top posting annoying in email?