New version of webcamd [3.11.0.1] ready for testing

Hans Petter Selasky hans.petter.selasky at bitfrost.no
Fri Aug 16 19:55:21 UTC 2013


Hi Srinivas,

Can you submit the patch from Juergen? Thank you!

 >   Ah indeed that is better, now technisat-usb2 works again, including
> it's remote. :)  Here is the patch:
>
> --- media_tree/drivers/media/rc/rc-main.c.orig
> +++ media_tree/drivers/media/rc/rc-main.c
> @@ -707,7 +707,7 @@ int rc_open(struct rc_dev *rdev)
>   		return -EINVAL;
>
>   	mutex_lock(&rdev->lock);
> -	if (!rdev->users++)
> +	if (!rdev->users++ && rdev->open != NULL)
>   		rval = rdev->open(rdev);
>
>   	if (rval)
> @@ -731,7 +731,7 @@ void rc_close(struct rc_dev *rdev)
>   	if (rdev) {
>   		mutex_lock(&rdev->lock);
>
> -		 if (!--rdev->users)
> +		 if (!--rdev->users && rdev->close != NULL)
>   			rdev->close(rdev);
>
>   		mutex_unlock(&rdev->lock);
>> --HPS
>>
>   And now I also tested rtl28xxu, af9015, af9035, ati_remote, mceusb,
> uvc, gspca and they also all worked as before.
>
>   Thanx!
> 	Juergen

I'll wait a bit for the patch to reach V4L GIT and then I'll roll 
another tarball!

Thanks Juergen!

--HPS



More information about the freebsd-multimedia mailing list