From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kees Cook Date: Tue, 07 Aug 2007 23:18:13 +0000 Subject: Re: work-around for video4linux sysfs Message-Id: <20070807231813.GX9617@outflux.net> List-Id: References: <20070731195136.GW9881@outflux.net> In-Reply-To: <20070731195136.GW9881@outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi Kay, On Wed, Aug 08, 2007 at 12:58:43AM +0200, Kay Sievers wrote: > Look at drivers/media/video/videodev.c how the "name" attribute is > created. There should probably be common "function" names added to > the v4l core which are just referenced by the drivers, like the > defines for the device type in include/media/v4l2-dev.h which are > replaced by strings in drivers/media/video/videodev.c. Okay, thanks. I'll try to find some time to investigate this. > Yeah, I see the problem, and it's time to solve it. Maybe you can try to > add the stuff to the drivers you have access to the hardware, and we can > come up with a working prototype, propose that to the v4l maintainer(s) > and convert the other drivers step by step. Persistent names would just > rely on that feature to be added to the driver for devices with multiple > nodes of the same type. Sure, that sounds right. > Btw, what does: > grep . /sys/class/video4linux/*/* > print on your box? If you have access to the device with the multiple > nodes. $ grep . /sys/class/video4linux/*/* 2>/dev/null /sys/class/video4linux/radio0/dev:81:64 /sys/class/video4linux/radio0/name:cx88[0] radio (pcHDTV HD3000 HD /sys/class/video4linux/vbi0/dev:81:224 /sys/class/video4linux/vbi0/name:cx88[0] vbi (pcHDTV HD3000 HDTV /sys/class/video4linux/vbi1/dev:81:225 /sys/class/video4linux/vbi1/name:ivtv0 encoder VBI /sys/class/video4linux/video0/dev:81:0 /sys/class/video4linux/video0/name:cx88[0] video (pcHDTV HD3000 HD /sys/class/video4linux/video1/dev:81:1 /sys/class/video4linux/video1/name:ivtv0 encoder MPEG /sys/class/video4linux/video24/dev:81:24 /sys/class/video4linux/video24/name:ivtv0 encoder PCM audio /sys/class/video4linux/video32/dev:81:32 /sys/class/video4linux/video32/name:ivtv0 encoder YUV How's that for a mess? ;) Thanks again, -Kees -- Kees Cook @outflux.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel