From: Pavel Machek <pavel@ucw.cz>
To: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: Mario.Limonciello@dell.com, nicolas@ndufresne.ca,
linux-media@vger.kernel.org, sakari.ailus@linux.intel.com,
niklas.soderlund@ragnatech.se, jerry.w.hu@intel.com
Subject: Re: Software-only image processing for Intel "complex" cameras
Date: Sat, 23 Jun 2018 23:29:02 +0200 [thread overview]
Message-ID: <20180623212902.GA18976@amd> (raw)
In-Reply-To: <20180622060850.3941d9a7@vela.lan>
[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]
Hi!
> > > e. g. something like:
> > >
> > > board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR);
> > > board_name = dmi_get_system_info(DMI_BOARD_NAME);
> > > board_version = dmi_get_system_info(DMI_BOARD_NAME);
> > > product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
> > > product_version = dmi_get_system_info(DMI_PRODUCT_VERSION);
> > >
> > > sprintf(dev->cap, "%s:%s:%s:%s", board_vendor, board_name,
> > > board_version, product_name, product_version);
> > >
> > > (the real code should check if the values are filled, as not all BIOS vendors use the
> > > same DMI fields)
> > >
> > > With that, the library can auto-adjust without needing to run anything as
> > > root.
> > >
> > Well actually most of those fields you're interested in are already exposed to userspace
> > through sysfs /sys/class/dmi/id/
> >
> > Can't the library just pull them from there?
>
> Good point. Yeah, the library could use them.
This could be done, but it would be better if libraries could query
neccessary information from v4l2 drivers.
If DMI was used, _library_ would need to know about new hardware,
which is not desirable.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2018-06-23 21:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 20:38 Software-only image processing for Intel "complex" cameras Pavel Machek
2018-06-20 20:57 ` Nicolas Dufresne
2018-06-20 21:11 ` Pavel Machek
2018-06-21 13:41 ` Mario.Limonciello
2018-06-21 18:49 ` Mauro Carvalho Chehab
2018-06-21 18:58 ` Mario.Limonciello
2018-06-21 21:08 ` Mauro Carvalho Chehab
2018-06-21 21:40 ` Mauro Carvalho Chehab
2018-06-25 9:48 ` Zheng, Jian Xu
2018-06-25 13:10 ` Mauro Carvalho Chehab
2018-07-27 10:58 ` Javier Martinez Canillas
2018-06-23 21:29 ` Pavel Machek [this message]
2018-06-21 18:36 ` Mauro Carvalho Chehab
2018-06-29 6:02 ` Tomasz Figa
2018-06-29 9:18 ` Pavel Machek
2018-06-29 9:28 ` Tomasz Figa
2018-06-29 10:52 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180623212902.GA18976@amd \
--to=pavel@ucw.cz \
--cc=Mario.Limonciello@dell.com \
--cc=jerry.w.hu@intel.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab+samsung@kernel.org \
--cc=nicolas@ndufresne.ca \
--cc=niklas.soderlund@ragnatech.se \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.