On Wed, May 25, 2016 at 08:45:29AM -0400, Ian Darwin wrote: > On 2016-05-25 7:57 AM, Marcus Glocker wrote: > >On Tue, May 24, 2016 at 04:46:57PM -0700, patrick keshishian wrote: > > > >>Hi, > >> > >>I have a "mostly working" driver port for Fushicai Audio-Video > >>Grabber (vendor 0x1b71 product 0x3002). > >> > >>I've had the video bit working for a few days on amd64 and macppc. > >>I finally managed to get the audio bit working this morning on > >>amd64, but still an encoding issue (LE vs BE) on macppc. > >> > >>... > >>2. Return values inside parenthesis or not? > >The ongoing religious question :-) Some people say return and sizeof > >shouldn't be used with parenthesis because they are not functions. I > >still find it more readable with parenthesis. We have both variations > >in the tree. Your choice. > "Obviously without" :-) > > > >>3. Original source filenames were hyphenated (e.g., usbtv-video.c). > >> OK to use underscore instead? I think it is preferred. > >> (Next question may trump this one) > >How's about something a bit shorter, like uvcap.c (USB Video Capture) > >and then also call the driver uvcap? Anyway just a proposal. Otherwise > >yes, replace the '-' by '_' in the filename. > > > > > There are (at least) three other popular usb video capture devices with > totally different chipsets (Syntek, Empia, Somagic, besides this Fushicai > one, "usbtv007"), so calling one of them uvcap might be annoying, like if > one of our many network drivers were called "network". See > https://linuxtv.org/wiki/index.php/Easycap. > Does it make sense to start a naming convention like: utvsyn, utvemp, > utvsom, utvfu, ...?
I like this scheme and utvfu. Thanks, --patrick