All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: linux-media@vger.kernel.org
Cc: linux-dvb@linuxtv.org, Jos Hoekstra <joshoekstra@gmx.net>
Subject: Re: Technisat Cablestar HD2 not automatically detected by kernel > 2.6.33?
Date: Thu, 31 Mar 2011 14:32:08 +0200	[thread overview]
Message-ID: <8762qz79o7.fsf@nemi.mork.no> (raw)
In-Reply-To: <4D9390FA.9040402@gmx.net> (Jos Hoekstra's message of "Wed, 30 Mar 2011 22:22:18 +0200")

Jos Hoekstra <joshoekstra@gmx.net> writes:

> I got this card and it doesn't seem to be detected by Ubuntu 10.4.2
> with kernel 2.6.35(-25-generic #44~lucid1-Ubuntu SMP Tue Jan 25
> 19:17:25 UTC 2011 x86_64 GNU/Linux)
>
> The wiki seems to indicate that this card is supported as of kernel
> 2.6.33, however it doesn't show up as a dvb-adapter.
[..]
> After rebooting it however seems I need to manually modprobe mantis
> and restart the backend to have mythtv work with this card. Is there a
> way to make these modules load automatically after a reboot?

This is fixed by the following trivial patch, which was finally included
in kernel 2.6.38:


commit 116d588ea21cf0278a4de1e3272e9c3220a647e7
Author: Manu Abraham <abraham.manu@gmail.com>
Date:   Thu Feb 11 04:11:05 2010 -0300

    [media] Mantis, hopper: use MODULE_DEVICE_TABLE
    
    use the macro to make modules auto-loadable
    
    Thanks to Ozan Çağlayan <ozan@pardus.org.tr> for pointing it out
    
    Signed-off-by: Manu Abraham <manu@linuxtv.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

diff --git a/drivers/media/dvb/mantis/hopper_cards.c b/drivers/media/dvb/mantis/hopper_cards.c
index 09e9fc7..70e73af 100644
--- a/drivers/media/dvb/mantis/hopper_cards.c
+++ b/drivers/media/dvb/mantis/hopper_cards.c
@@ -251,6 +251,8 @@ static struct pci_device_id hopper_pci_table[] = {
        { }
 };
 
+MODULE_DEVICE_TABLE(pci, hopper_pci_table);
+
 static struct pci_driver hopper_pci_driver = {
        .name           = DRIVER_NAME,
        .id_table       = hopper_pci_table,
diff --git a/drivers/media/dvb/mantis/mantis_cards.c b/drivers/media/dvb/mantis/mantis_cards.c
index cf4b39f..40da225 100644
--- a/drivers/media/dvb/mantis/mantis_cards.c
+++ b/drivers/media/dvb/mantis/mantis_cards.c
@@ -281,6 +281,8 @@ static struct pci_device_id mantis_pci_table[] = {
        { }
 };
 
+MODULE_DEVICE_TABLE(pci, mantis_pci_table);
+
 static struct pci_driver mantis_pci_driver = {
        .name           = DRIVER_NAME,
        .id_table       = mantis_pci_table,



The best way to work around the problem until you upgrade your kernel to
2.6.38 or newer, is probably just adding mantis to /etc/modules.


Bjørn

  reply	other threads:[~2011-03-31 12:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-30 20:22 [linux-dvb] Technisat Cablestar HD2 not automatically detected by kernel > 2.6.33? Jos Hoekstra
2011-03-31 12:32 ` Bjørn Mork [this message]
2011-04-02 11:21   ` Jos Hoekstra
2011-04-01 16:21 ` [linux-dvb] " Hartmut

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=8762qz79o7.fsf@nemi.mork.no \
    --to=bjorn@mork.no \
    --cc=joshoekstra@gmx.net \
    --cc=linux-dvb@linuxtv.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.