public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Toth <stoth@linuxtv.org>
To: Paul Chubb <paulc@singlespoon.org.au>
Cc: linux dvb <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] leadtek dtv1800 h support
Date: Mon, 25 Aug 2008 10:23:14 -0400	[thread overview]
Message-ID: <48B2C052.5030905@linuxtv.org> (raw)
In-Reply-To: <48B285BA.2090101@singlespoon.org.au>

Paul Chubb wrote:
> Hi,
>     a few months ago Miroslav Sustek created a patch for this card 
> against Markus Rechberger's v4l repository. This patch is attached as 
> dtv1800.patch. A patched and compiled set of drivers fails on ubuntu 
> hardy heron 8.04 with lots of symbol errors. Hardy is running 2.6.24.19. 
> I have attempted to backport this patch to the current v4l tree with 
> limited success. The driver loads however fails to do anything useful. 
> My patch is attached as dtv1800h-v4l.patch.
> 
> I *think* the issue is with loading firmware. The tuner-xc2028.c 
> function check_firmware is passed a frontend without the firmware name - 
> producing the error shown in the dmesg listing below. If I hack the 
> function and hardcode the firmware file name, it attempts to load the 
> firmware but fails when it tries to read back.
> 
> Now that I am totally out of my depth I am not sure what to try next. 
> Any help will be gratefully received.

Don't call cx_write() inside the gpio card setup, you're potentially 
destroying the other bits, it's risky.

+	case CX88_BOARD_WINFAST_DTV1800H:
+		cx_write(MO_GP1_IO, 0x101010);  //gpio 12 = 1: powerup XC3028
+		mdelay(250);
+		cx_write(MO_GP1_IO, 0x101000);  //gpio 12 = 0: powerdown XC3028
+		mdelay(250);
+		cx_write(MO_GP1_IO, 0x101010);  //gpio 12 = 1: powerup XC3028
+		mdelay(250);
+		break;


Call cx_clear() and cx_set() instead, for the specific gpio bit (12) 
that you need.

- Steve





_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

  reply	other threads:[~2008-08-25 14:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-25 10:13 [linux-dvb] leadtek dtv1800 h support Paul Chubb
2008-08-25 14:23 ` Steven Toth [this message]
2008-08-31  8:49   ` Paul Chubb
2008-08-31 22:07     ` Steven Toth

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=48B2C052.5030905@linuxtv.org \
    --to=stoth@linuxtv.org \
    --cc=linux-dvb@linuxtv.org \
    --cc=paulc@singlespoon.org.au \
    /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