The NetBSD Project

CVS log for src/sys/dev/video.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Thu Mar 3 06:23:25 2022 UTC (2 years ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.44: +3 -15 lines
Diff to previous 1.44 (colored) to selected 1.34 (colored)

video(9): Make softc argument mandatory for video_attach_mi.

No separate video_attach_mi_softc function any more.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Mar 3 06:22:23 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.43: +16 -3 lines
Diff to previous 1.43 (colored) to selected 1.34 (colored)

video(4): Allow drivers to pass the softc explicitly.

This way one device driver can have multiple video0, video1, &c.,
interfaces attached, using independent state and a common parent.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Dec 8 20:50:02 2021 UTC (2 years, 3 months ago) by andvar
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored) to selected 1.34 (colored)

fix various typos in comments and log messages.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Aug 9 21:38:04 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.34 (colored)

s/fist/first/

Revision 1.41 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:08 2021 UTC (2 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.40: +3 -4 lines
Diff to previous 1.40 (colored) to selected 1.34 (colored)

Merge thorpej-cfargs2.

Revision 1.40.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 23:24:57 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.40: +3 -4 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.34 (colored)

Adapt to CFARGS().

Revision 1.40 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:52 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored) to selected 1.34 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Fri Apr 2 22:17:43 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.34 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Aug 13 16:45:58 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.38: +49 -49 lines
Diff to previous 1.38 (colored) to selected 1.34 (colored)

Nix trailing whitespace.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Aug 10 19:27:27 2020 UTC (3 years, 7 months ago) by rjs
Branch: MAIN
Changes since 1.37: +64 -7 lines
Diff to previous 1.37 (colored) to selected 1.34 (colored)

Add some extra V4L ioctl() requests to latest V4L userland to work.

Import sys/videoio.h from OpenBSD, this is just the Linux headers
concatenated together.

Revision 1.37 / (download) - annotate - [select for diffs], Fri May 22 11:23:51 2020 UTC (3 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.36: +66 -2 lines
Diff to previous 1.36 (colored) to selected 1.34 (colored)

Support VIDIOC_G_PARM/VIDIOC_S_PARM

Revision 1.34.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:02 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.34.4.1: +3 -3 lines
Diff to previous 1.34.4.1 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored) to selected 1.34 (colored)

Merge changes from current as of 20200406

Revision 1.36 / (download) - annotate - [select for diffs], Fri Dec 27 09:41:50 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.34 (colored)

s/transfered/transferred/

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:04 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored)

Sync with HEAD

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:48 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.35 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:30 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.28.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:58 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.28.6.2: +4 -32 lines
Diff to previous 1.28.6.2 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.34 (colored)

update from HEAD

Revision 1.34 / (download) - annotate - [selected], Sat Oct 28 03:47:24 2017 UTC (6 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:00 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.32: +4 -32 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.34 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:09 2017 UTC (6 years, 9 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.32: +4 -32 lines
Diff to previous 1.32 (colored) to selected 1.34 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.32.18.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:35 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.32: +144 -72 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.34 (colored)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.32.8.2 / (download) - annotate - [select for diffs], Tue Jul 26 07:44:44 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.32.8.1: +3 -3 lines
Diff to previous 1.32.8.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.34 (colored)

Typo

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Tue Jul 26 03:24:20 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.32: +144 -72 lines
Diff to previous 1.32 (colored) to selected 1.34 (colored)

Sync with HEAD

Revision 1.28.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:35 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.28.6.1: +16 -7 lines
Diff to previous 1.28.6.1 (colored) to branchpoint 1.28 (colored) to selected 1.34 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:50 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.34 (colored)

Rebase.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:35 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, pgoyette-localcount, nick-nhusb
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored) to selected 1.34 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:19 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.27.2.2: +15 -7 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.34 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:35 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.29: +15 -7 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.34 (colored)

sync with head

Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:26 2014 UTC (10 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.30: +13 -4 lines
Diff to previous 1.30 (colored) to selected 1.34 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 17 21:20:10 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.29: +4 -5 lines
Diff to previous 1.29 (colored) to selected 1.34 (colored)

- remove unused variables
- moved debugging variable into debugging ifdef

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:11 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored) to selected 1.34 (colored)

resync with head

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:04 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.27.2.1: +4 -3 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored) to selected 1.34 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 7 15:07:40 2013 UTC (11 years, 2 months ago) by prlw1
Branch: MAIN
CVS Tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored) to selected 1.34 (colored)

Allow USB memory allocation by multiple segments in scatter/gather lists
rather than in a single contiguous block which causes problems with
large USB video frames.
Based on a patch by Jeremy Morse in the thread
http://mail-index.netbsd.org/current-users/2011/01/26/msg015532.html
Tested by developing http://code.opencv.org/issues/2360
OK jmcneill@

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:26 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.27: +10 -2 lines
Diff to previous 1.27 (colored) to selected 1.34 (colored)

sync with head

Revision 1.27.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:07 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.27: +10 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.34 (colored)

merge to -current.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 2 17:21:18 2012 UTC (12 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.27: +10 -2 lines
Diff to previous 1.27 (colored) to selected 1.34 (colored)

fill in timestamps in outgoing data buffers

Revision 1.27 / (download) - annotate - [select for diffs], Sat Aug 13 02:49:06 2011 UTC (12 years, 7 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.26: +72 -50 lines
Diff to previous 1.26 (colored) to selected 1.34 (colored)

Restore binary compatibility with NetBSD 5 binaries that utilize video(4).

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:00 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.23: +607 -42 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.34 (colored)

sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 26 23:41:45 2010 UTC (13 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.25: +15 -3 lines
Diff to previous 1.25 (colored) to selected 1.34 (colored)

don't try to set frequencies lower or higher than the tuner's allowed
range -- the v4l2 spec says "when the requested frequency is not possible
the driver assumes the closest possible value".

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 24 20:54:28 2010 UTC (13 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.24: +10 -6 lines
Diff to previous 1.24 (colored) to selected 1.34 (colored)

VIDIOC_QUERYCAP changes:
 - use driver name instead of device instance name in 'driver' field
 - add 'get_businfo' callback to fill in 'bus_info' field instead of
   hard-coding "USB"
 - use the kernel version for the 'version' field instead of 1
 - adapt pseye and uvideo drivers to changes in struct video_hw_if

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 14 03:25:16 2010 UTC (13 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.23: +587 -38 lines
Diff to previous 1.23 (colored) to selected 1.34 (colored)

video(4) changes to support analog tv capture devices:
 - support interlacing with VIDIOC_G_FMT
 - set V4L2_CAP_TUNER if driver implements the set_tuner/get_tuner
   callbacks
 - set V4L2_CAP_AUDIO if driver implements the set_audio/get_audio/enum_audio
   callbacks
 - add support for the following ioctls: VIDIOC_ENUMSTD, VIDIOC_G_STD,
   VIDIOC_S_STD, VIDIOC_ENUMINPUT, VIDIOC_G_INPUT, VIDIOC_S_INPUT,
   VIDIOC_ENUMAUDIO, VIDIOC_G_AUDIO, VIDIOC_S_AUDIO, VIDIOC_G_TUNER,
   VIDIOC_S_TUNER, VIDIOC_G_FREQUENCY, VIDIOC_S_FREQUENCY
 - in video_submit_payload(), fix support for signaling sample complete
   using frame numbers
 - new optional callbacks for drivers: enum_standard, get_standard,
   set_standard, enum_input, get_input, set_input, enum_audio, get_audio,
   set_audio, get_tuner, set_tuner, get_frequency, set_frequency

for drivers that don't provide enum_standard, get_standard, set_standard,
enum_input, get_input and set_input, the original stub implementations are
provided

Revision 1.20.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:21 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.4: +6 -9 lines
Diff to previous 1.20.2.4 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored) to selected 1.34 (colored)

sync with head

Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 6 22:42:48 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211
Branch point for: rmind-uvmplock
Changes since 1.22: +6 -9 lines
Diff to previous 1.22 (colored) to selected 1.34 (colored)

Simplify these device-activation hooks using the following semantic
patch.

XXX sc_dying must die.

@@
type device_t;

identifier act, midi_softc, midiactivate, sc, self;
@@

int
midiactivate(device_t self, enum devact act)
{
(
	struct midi_softc *sc = device_private(self);
|
-	struct midi_softc *sc;
+	struct midi_softc *sc = device_private(self);
...
-	sc = device_private(self);
)
...
	switch (act) {
-	case DVACT_ACTIVATE:
-		return (EOPNOTSUPP);
-
	case DVACT_DEACTIVATE:
(
	sc->dying
|
	sc->sc_dying
)
		=
(
	1
|
	true
)
		;
-		break;
+		return 0;
+	default:
+		return EOPNOTSUPP;
	}
-	return (0);
}

Revision 1.20.2.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:02 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.3: +76 -8 lines
Diff to previous 1.20.2.3 (colored) to branchpoint 1.20 (colored) to selected 1.34 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Aug 18 02:17:09 2009 UTC (14 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jym-xensuspend-nbase
Changes since 1.21: +76 -8 lines
Diff to previous 1.21 (colored) to selected 1.34 (colored)

1. some of the video24linux structs are not as machine independent as their
   authors want them to be. For the buffer ioctls, define new ioctls with
   the 32 bit buffer sizes. For the format struct, define it as packed
   so it is the same on 32 and 64 bit. (I might need to version this)
2. the mmapped buffers need to be page aligned, otherwise mmap(2) does
   not work. Make it so.
All this makes my ricoh camera work with emul-linux and skype running on
amd64. Next is sound!

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:45 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.19.2.1: +3 -3 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:52:59 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.2: +3 -3 lines
Diff to previous 1.20.2.2 (colored) to branchpoint 1.20 (colored) to selected 1.34 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jul 7 21:55:17 2009 UTC (14 years, 8 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.34 (colored)

Fix amd64 build with VIDEO_DEBUG.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:05 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.34 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:33 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.1: +2154 -0 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) to selected 1.34 (colored)

sync with head.

Revision 1.17.6.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:13 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.17.6.2: +3 -3 lines
Diff to previous 1.17.6.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.17.8.3 / (download) - annotate - [select for diffs], Sun Mar 15 20:34:29 2009 UTC (15 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.17.8.2: +3 -3 lines
Diff to previous 1.17.8.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.34 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #576):
	sys/dev/video.c: revision 1.20
PR# kern/41008: possible simple mistake of field check in video(9)
video_set_format() requires hw->set_format to be set, not get_format,
from fukumoto@imasy.or.jp

Revision 1.20.2.1, Sat Mar 14 00:33:25 2009 UTC (15 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20: +0 -2154 lines
FILE REMOVED

file video.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:33 +0000

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 14 00:33:25 2009 UTC (15 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Branch point for: yamt-nfs-mp
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.34 (colored)

PR# kern/41008: possible simple mistake of field check in video(9)

video_set_format() requires hw->set_format to be set, not get_format,
from fukumoto@imasy.or.jp

Revision 1.17.6.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:30:31 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.17.6.1: +9 -3 lines
Diff to previous 1.17.6.1 (colored) to branchpoint 1.17 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.17.8.2 / (download) - annotate - [select for diffs], Thu Jan 22 23:21:19 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.17.8.1: +9 -3 lines
Diff to previous 1.17.8.1 (colored) to branchpoint 1.17 (colored) to selected 1.34 (colored)

Pull up following revision(s) (requested by drochner in ticket #305):
	sys/dev/video.c: revision 1.19
-avoid eternal block if device is not streaming
-apply locking to avoid race in poll()
-fix an obviously wrong flag check

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 20 20:18:28 2009 UTC (15 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.18: +9 -3 lines
Diff to previous 1.18 (colored) to selected 1.34 (colored)

-avoid eternal block if device is not streaming
-apply locking to avoid race in poll()
-fix an obviously wrong flag check

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:52 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:52 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.17.2.2: +1 -0 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Sat Dec 27 03:47:55 2008 UTC (15 years, 3 months ago) by snj
Branch: netbsd-5
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.34 (colored)

Pull up following revision(s) (requested by jmorse in ticket #204):
	sys/dev/video.c: revision 1.18
	sys/dev/usb/uvideo.c: revision 1.24
Fix UVC webcam output by:
- Storing updated video format after user changes format
- Round up number of xfers queued to multiple of 8, due to ehci inefficiencies
- Remove random debugging line I slipped in earlier

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 23 03:22:29 2008 UTC (15 years, 3 months ago) by jmorse
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.34 (colored)

Fix UVC webcam output by:
- Storing updated video format after user changes format
- Round up number of xfers queued to multiple of 8, due to ehci inefficiencies
- Remove random debugging line I slipped in earlier

Revision 1.17.4.2 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:18 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.17.4.1: +2147 -0 lines
Diff to previous 1.17.4.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Fri Oct 10 22:30:57 2008 UTC (15 years, 5 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.15.2.2: +28 -2 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:18 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.17.2.1: +2147 -0 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) to selected 1.34 (colored)

Sync with HEAD.

Revision 1.17.4.1, Sun Sep 21 19:29:50 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.17: +0 -2147 lines
FILE REMOVED

file video.c was added on branch haad-dm on 2008-10-19 22:16:18 +0000

Revision 1.17.2.1, Sun Sep 21 19:29:50 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.17: +0 -2147 lines
FILE REMOVED

file video.c was added on branch mjf-devfs2 on 2008-09-28 10:40:18 +0000

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 21 19:29:50 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, mjf-devfs2, haad-dm
Changes since 1.16: +7 -2 lines
Diff to previous 1.16 (colored) to selected 1.34 (colored)

Register with pmf

Revision 1.16 / (download) - annotate - [select for diffs], Sat Sep 20 18:13:40 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +23 -2 lines
Diff to previous 1.15 (colored) to selected 1.34 (colored)

Add RGB555, RGB565, UYVY support

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:01 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.15.2.1: +2121 -0 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) to selected 1.34 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.15.2.1, Thu Sep 18 02:47:57 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.15: +0 -2121 lines
FILE REMOVED

file video.c was added on branch wrstuden-revivesa on 2008-09-18 04:35:01 +0000

Revision 1.15 / (download) - annotate - [select for diffs], Thu Sep 18 02:47:57 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3
Branch point for: wrstuden-revivesa
Changes since 1.14: +26 -8 lines
Diff to previous 1.14 (colored) to selected 1.34 (colored)

Use get_format instead of set_format in videoopen

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 14 16:03:27 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +9 -2 lines
Diff to previous 1.13 (colored) to selected 1.34 (colored)

Add VIDEO_FORMAT_YUV420 support

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 14 14:31:33 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +2 -6 lines
Diff to previous 1.12 (colored) to selected 1.34 (colored)

Allow VIDIOC_ENUM_FORMAT to return more than one result.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 14 03:33:44 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.11: +2 -5 lines
Diff to previous 1.11 (colored) to selected 1.34 (colored)

Revert previous double-free hack, needs revisiting.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 13 23:50:54 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +12 -2 lines
Diff to previous 1.10 (colored) to selected 1.34 (colored)

Add RGB24 support, and prevent a double-free on videoclose

Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 9 04:28:54 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.34 (colored)

VIDIOC_QUERYCAP: device_xname on device_t, not softc

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 9 04:23:53 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.34 (colored)

More pixelformat mapping typo fixes

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 9 04:23:02 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.34 (colored)

Map VIDEO_FORMAT_MJPEG to V4L2_PIX_FMT_MJPEG, not V4L2_PIX_FMT_JPEG

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 9 01:36:48 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.6: +9 -2 lines
Diff to previous 1.6 (colored) to selected 1.34 (colored)

Fix "select timeout" and low framerate issues with mplayer, from drochner@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 8 00:39:27 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.34 (colored)

Limit VIDEO_MAX_BUFS to 32 instead of 255

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 7 20:05:13 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored) to selected 1.34 (colored)

Missing aprint newline in video_attach

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 7 19:06:14 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.34 (colored)

Actually, EINVAL is correct for an unimplemented ioctl. ENOTTY is only
needed for the VIDIOC_*_FMT ioctls.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 7 17:13:21 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.2: +7 -7 lines
Diff to previous 1.2 (colored) to selected 1.34 (colored)

Return ENOTTY instead of EINVAL if a driver doesn't implement one of the
set, try, get, or enum format ioctls.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 6 21:21:49 2008 UTC (15 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.1: +6 -5 lines
Diff to previous 1.1 (colored) to selected 1.34 (colored)

Unbreak build when VIDEO_DEBUG is not defined.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 6 19:00:54 2008 UTC (15 years, 6 months ago) by jmcneill
Branch: MAIN
Diff to selected 1.34 (colored)

Add MI video4linux2 layer, part of Patrick Mahoney's Google Summer
of Code 2008 project.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>