From: "Lorenz Röhrl" <sheepshit@gmx.de>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org
Subject: Re: BUG: Freeze upon loading bttv module
Date: Sun, 10 Nov 2013 09:35:29 +0100 [thread overview]
Message-ID: <527F4551.6090708@gmx.de> (raw)
In-Reply-To: <527EBEA4.1070202@xs4all.nl>
Hi Hans,
On 11/10/2013 12:00 AM, Hans Verkuil wrote:
>
> Can you try this patch? I'm not 100% but I think this might be the cause of
> the problem.
>
> diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c
> index c6532de..4f0aaa5 100644
> --- a/drivers/media/pci/bt8xx/bttv-driver.c
> +++ b/drivers/media/pci/bt8xx/bttv-driver.c
> @@ -4182,7 +4182,8 @@ static int bttv_probe(struct pci_dev *dev, const struct pci_device_id *pci_id)
> }
> btv->std = V4L2_STD_PAL;
> init_irqreg(btv);
> - v4l2_ctrl_handler_setup(hdl);
> + if (!bttv_tvcards[btv->c.type].no_video)
> + v4l2_ctrl_handler_setup(hdl);
> if (hdl->error) {
> result = hdl->error;
> goto fail2;
>
>
I tried the patch and indeed it's working :)
No freeze on loading the module and the dvb-device is also working.
lolo@hurra ~ % ls /dev/dvb/adapter0
demux0 dvr0 frontend0
lolo@hurra ~ % dmesg |grep bttv
[ 0.871060] bttv: driver version 0.9.19 loaded
[ 0.872005] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 0.873137] bttv: Bt8xx card found (0)
[ 0.874186] bttv: 0: Bt878 (rev 17) at 0000:04:01.0, irq: 16,
latency: 32, mmio: 0xf0401000
[ 0.875156] bttv: 0: detected: Twinhan VisionPlus DVB [card=113], PCI
subsystem ID is 1822:0001
[ 0.876138] bttv: 0: using: Twinhan DST + clones [card=113,autodetected]
[ 0.884082] bttv: 0: tuner absent
[ 0.894011] bttv: 0: add subdevice "dvb0"
[ 0.901398] DVB: registering new adapter (bttv0)
Will this patch be included upstream? When will it appear in official
kernel sources?
Thanks a lot!
- Lorenz
next prev parent reply other threads:[~2013-11-10 8:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-09 16:18 BUG: Freeze upon loading bttv module Lorenz Röhrl
2013-11-09 23:00 ` Hans Verkuil
2013-11-10 8:35 ` Lorenz Röhrl [this message]
2013-11-10 11:45 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527F4551.6090708@gmx.de \
--to=sheepshit@gmx.de \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox