public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* changeset 14351:2eda2bcc8d6f
@ 2010-03-03 11:39 e9hack
  2010-03-13 16:27 ` Hans Verkuil
  0 siblings, 1 reply; 25+ messages in thread
From: e9hack @ 2010-03-03 11:39 UTC (permalink / raw)
  To: dougsland; +Cc: hverkuil, Mauro Carvalho Chehab, linux-media

Hi,

changeset 14351:2eda2bcc8d6f is incomplete. If the init function is split in two function,
the deinit function shall consider this. The changes shall be apply also to av7110_init_v4l().

diff -r 58ae12f18e80 linux/drivers/media/common/saa7146_fops.c
--- a/linux/drivers/media/common/saa7146_fops.c Tue Mar 02 23:52:36 2010 -0300
+++ b/linux/drivers/media/common/saa7146_fops.c Wed Mar 03 12:15:23 2010 +0100
@@ -481,8 +481,10 @@ int saa7146_vv_release(struct saa7146_de
        DEB_EE(("dev:%p\n",dev));

        v4l2_device_unregister(&dev->v4l2_dev);
-       pci_free_consistent(dev->pci, SAA7146_CLIPPING_MEM, vv->d_clipping.cpu_addr,
vv->d_clipping.dma_handle);
-       kfree(vv);
+       if (vv) {
+               pci_free_consistent(dev->pci, SAA7146_CLIPPING_MEM,
vv->d_clipping.cpu_addr, vv->d_clipping.dma_handle);
+               kfree(vv);
+       }
        dev->vv_data = NULL;
        dev->vv_callback = NULL;

diff -r 58ae12f18e80 linux/drivers/media/dvb/ttpci/av7110_v4l.c
--- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c        Tue Mar 02 23:52:36 2010 -0300
+++ b/linux/drivers/media/dvb/ttpci/av7110_v4l.c        Wed Mar 03 12:15:23 2010 +0100
@@ -790,12 +790,20 @@ int av7110_init_v4l(struct av7110 *av711
                vv_data = &av7110_vv_data_c;
        else
                vv_data = &av7110_vv_data_st;
+       ret = saa7146_vv_devinit(dev);
+
+       if (ret < 0) {
+               ERR(("cannot init device. skipping.\n"));
+               return ret;
+       }
+
        ret = saa7146_vv_init(dev, vv_data);
-
-       if (ret) {
+       if (ret < 0) {
                ERR(("cannot init capture device. skipping.\n"));
+               saa7146_vv_release(dev);
                return ret;
        }
+
        vv_data->ops.vidioc_enum_input = vidioc_enum_input;
        vv_data->ops.vidioc_g_input = vidioc_g_input;
        vv_data->ops.vidioc_s_input = vidioc_s_input;

Regards,
Hartmut

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: av7110 and budget_av are broken!
@ 2010-04-21  6:37 Hans Verkuil
  2010-04-21  9:44 ` Oliver Endriss
  0 siblings, 1 reply; 25+ messages in thread
From: Hans Verkuil @ 2010-04-21  6:37 UTC (permalink / raw)
  To: e9hack; +Cc: linux-media, Mauro Carvalho Chehab


> Am 22.3.2010 20:34, schrieb e9hack:
>> Am 20.3.2010 22:37, schrieb Hans Verkuil:
>>> On Saturday 20 March 2010 17:03:01 e9hack wrote:
>>> OK, I know that. But does the patch I mailed you last time fix this
>>> problem
>>> without causing new ones? If so, then I'll post that patch to the list.
>>
>> With your last patch, I've no problems. I'm using a a TT-C2300 and a
>> Budget card. If my
>> VDR does start, currently I've no chance to determine which module is
>> load first, but it
>> works. If I unload all modules and load it again, I've no problem. In
>> this case, the
>> modules for the budget card is load first and the modules for the FF
>> loads as second one.
>
> Ping!!!!!!

It's merged in Mauro's fixes tree, but I don't think those pending patches
have been pushed upstream yet. Mauro, can you verify this? They should be
pushed to 2.6.34!

Regards,

        Hans 'still stuck in San Francisco' Verkuil

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2010-05-19  0:38 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-03 11:39 changeset 14351:2eda2bcc8d6f e9hack
2010-03-13 16:27 ` Hans Verkuil
2010-03-16 19:29   ` e9hack
2010-03-20 14:07     ` av7110 and budget_av are broken! (was: Re: changeset 14351:2eda2bcc8d6f) Oliver Endriss
2010-03-20 14:20       ` Hans Verkuil
2010-03-20 15:13         ` Oliver Endriss
2010-03-20 16:03         ` av7110 and budget_av are broken! e9hack
2010-03-20 21:37           ` Hans Verkuil
2010-03-22 19:34             ` e9hack
2010-04-21  6:29               ` e9hack
  -- strict thread matches above, loose matches on Subject: below --
2010-04-21  6:37 Hans Verkuil
2010-04-21  9:44 ` Oliver Endriss
2010-04-25 17:57   ` VDR User
2010-04-26 13:35     ` Mauro Carvalho Chehab
2010-04-26 17:34       ` VDR User
2010-05-15 23:06   ` Oliver Endriss
2010-05-16  1:33     ` Douglas Schilling Landgraf
2010-05-16  1:53       ` hermann pitton
2010-05-16  4:21         ` Oliver Endriss
2010-05-16 12:57           ` Mauro Carvalho Chehab
2010-05-16 15:01             ` Oliver Endriss
2010-05-16 17:48               ` Mauro Carvalho Chehab
2010-05-19  0:35           ` hermann pitton
2010-05-16  5:09     ` Douglas Schilling Landgraf
2010-05-16  6:24       ` Oliver Endriss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox