ivtv uses a loop when registering device nodes for each
stream, but it only works correctly for the first
stream. because the devices numbers are checked against
IVTV_V4L2_MAX_MINOR, which is 15, while the second
stream first attempts to register to 32, and the third
first attemprs to get 224. If these are already taken,
say by another instance of the ivtv driver or a pchdtv
driver, then it does not try 33 and 225, resp. This is
because it fails the check against being less than or
equal to IVTV_V4L2_MAX_MINOR.
This patch fixes this by comparing only the first
stream against this define, and it also makes the debug
messages slightly more informative by listing the
stream it attempted to register in addition to the
This patch is against version 0.1.9
Log in to post a comment.