public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: IR Receiver on an Tevii S470
@ 2009-12-12  0:30 Igor M. Liplianin
  2009-12-12  1:00 ` Andy Walls
  0 siblings, 1 reply; 42+ messages in thread
From: Igor M. Liplianin @ 2009-12-12  0:30 UTC (permalink / raw)
  To: linux-media; +Cc: Steven Toth, Matthias Fechner, Andy Walls

On 11 декабря 2009, "Igor M. Liplianin" <liplianin@me.by> wrote:
> On Thu, 2009-12-10 at 18:16 +0200, Igor M. Liplianin wrote:
> > On 10 декабря 2009 03:12:39 Andy Walls wrote:
> > > On Wed, 2009-12-09 at 17:54 +0200, Igor M. Liplianin wrote:
> > > > > > > Igor and Matthias,
> > > > > > >
> > > > > > > Please try the changes that I have for the TeVii S470 that are
> > > > > > > here:
> > > > > > >
> > > > > > > 	http://linuxtv.org/hg/~awalls/cx23885-ir
> > > >
> > > > In fact some time ago I was writing some code for cx23885 IR, but not
> > > > reached IR interrupts to work. Though I used PCI_MSK_AV_CORE (1 <<
> > > > 27), then test register PIN_CTRL for field FLD_IR_IRQ_STAT.
> > >
> > > Igor,
> > >
> > > You are exactly right on this.  I used the wrong interrupt status flag.
> > > I have pushed a patch to my repository to use the PCI_MSK_AV_CORE
> > > status flag.
> > >
> > > Could you please update an test the TeVii S470 again when you have
> > > time?
> > >
> > > > I have Compro E650F with RC6 remote, also have RC5 remote from TV
> > > > set. I will made little hack to test Compro & RC5.
> > >
> > > OK. Thank you.
> > >
> > > Regards,
> > > Andy
> >
> > First try, without pressing IR keys
> >
> > cx25840 3-0044: IRQ Enables:     rse rte roe
> > cx25840 3-0044: IRQ Status:  tsr
> > cx25840 3-0044: IRQ Enables:     rse rte roe
> > irq 16: nobody cared (try booting with the "irqpoll" option)
> > Pid: 0, comm: swapper Not tainted 2.6.32 #2
> > Call Trace:
> >  [<c1052db0>] ? __report_bad_irq+0x24/0x69
> >  [<c1052db7>] ? __report_bad_irq+0x2b/0x69
> >  [<c1052edc>] ? note_interrupt+0xe7/0x13f
> >  [<c1053416>] ? handle_fasteoi_irq+0x7a/0x97
> >  [<c1004411>] ? handle_irq+0x38/0x3f
> >  [<c1003bd1>] ? do_IRQ+0x38/0x89
> >  [<c1002ea9>] ? common_interrupt+0x29/0x30
> >  [<c1007a1e>] ? mwait_idle+0x7a/0x7f
> >  [<c1001b93>] ? cpu_idle+0x37/0x4c
> > handlers:
> > [<c13179ad>] (usb_hcd_irq+0x0/0x59)
> > [<f85ba5e7>] (azx_interrupt+0x0/0xe7 [snd_hda_intel])
> > [<f88b1d2b>] (cx23885_irq+0x0/0x4a5 [cx23885])
> > Disabling IRQ #16
> > cx25840 3-0044: IRQ Status:  tsr
> > cx25840 3-0044: IRQ Enables:     rse rte roe
> > cx25840 3-0044: IRQ Status:  tsr
>
> OK.  We're getting interrupts from the A/V core, but they are not IR
> related.  They must be audio and video interrupts from the A/V core.
>
> I have checked in new changes:
>
> 	http://linuxtv.org/hg/~awalls/cx23885-ir
>
> please try again when you have time.
>
> 	# modprobe cx25840 debug=2 ir_debug=2
> 	# modprobe cx23885 debug=7
>
> My only concern now, is that I have not turned off all the audio
> interrupts from the A/V core - I could not determine if registers
> 0x80c-0x80f were improtant to set.
>
> Regards,
> Andy
dmesg is full of repeated lines:

cx25840 3-0044: AV Core IRQ status (entry):           
cx25840 3-0044: AV Core IRQ status (exit):           
cx23885[0]/0: pci_status: 0x083f4000  pci_mask: 0x08000001
cx23885[0]/0: vida_status: 0x00000000 vida_mask: 0x00000000 count: 0x0
cx23885[0]/0: ts1_status: 0x00000000  ts1_mask: 0x00000000 count: 0x20
cx23885[0]/0: ts2_status: 0x00000000  ts2_mask: 0x00000000 count: 0xc7383f3a
cx23885[0]/0:  (PCI_MSK_AV_CORE   0x08000000)


Igor

^ permalink raw reply	[flat|nested] 42+ messages in thread
* Re: IR Receiver on an Tevii S470
@ 2009-11-23  0:15 Igor M. Liplianin
  0 siblings, 0 replies; 42+ messages in thread
From: Igor M. Liplianin @ 2009-11-23  0:15 UTC (permalink / raw)
  To: Andy Walls, linux-media, Matthias Fechner, Jarod Wilson,
	Jean Delvare

On 23 ноября 2009, "Igor M. Liplianin" <liplianin@me.by> wrote:
> On Mon, 2009-11-23 at 00:29 +0200, Igor M. Liplianin wrote:
> > On 22 ноября 2009 22:11:47 Andy Walls wrote:
> > > On Sun, 2009-11-22 at 19:08 +0100, Matthias Fechner wrote:
> > > > Hi Andy,
> > > >
> > > > Andy Walls wrote:
> > > > > Thank you.  I will probably need you for testing when ready.
> > > > >
> > > > >
> > > > > I was planning to do step 1 above for HVR-1800 IR anyway.
> > > > >
> > > > > I will estimate that I may have something ready by about Christmas
> > > > > (25 December 2009), unless work becomes very busy.
> > > >
> > > > thanks a lot for your answer.
> > > > I uploaded two pictures I did from the card, you can find it here:
> > > > http://fechner.net/tevii-s470/
> > > >
> > > > It is a CX23885.
> > > > The driver I use is the ds3000.
> > > > lspci says:
> > >
> > > [snip]
> > >
> > > Matthias,
> > >
> > > Thanks for the pictures.  OK so of the two other interesting chips on
> > > the S470:
> > >
> > > U4 is an I2C connected EEPROM - we don't care about that for IR.
> > >
> > > U10 appears to perhaps be a Silicon Labs C8051F300 microcontroller or
> > > similar:
> > >
> > > http://www.silabs.com/products/mcu/smallmcu/Pages/C8051F30x.aspx
> > >
> > > Since the 'F300 has an A/D convertor and has an SMBus interface
> > > (compatable with the I2C bus), I suspect this chip could be the IR
> > > controller on the TeVii S470.
> > >
> > > Could you as root:
> > >
> > > # modprobe cx23885
> > > # modprobe i2c-dev
> > > # i2c-detect -l
> > > (to list all the i2c buses, including cx23885 mastered i2c buses)
> > > # i2c-detect -y N
> > > (to show the addresses in use on bus # N: only query the cx23885 buses)
> > >
> > >
> > > i2c-detect was in the lm-sensors package last I checked.  (Jean can
> > > correct me if I'm wrong.)
> > >
> > > With that information, I should be able to figure out what I2C address
> > > that microcontroller is listening to.
> > >
> > > Then we can work out how to read and decode it's data and add it to
> > > ir-kbd-i2c at least.  Depending on how your kernel and LIRC versions
> > > LIRC might still work with I2C IR chips too.
> > >
> > >
> > > All presupposing of course that that 'F300 chip is for IR...
> >
> > Receiver connected to cx23885 IR_RX(pin 106). It is not difficult to
> > track.
>
> Igor,
>
> Thank you.  I did not have a board to trace.  I will then stick with my
> original plan since the F300 doesn't do the IR.
I have cx23885 based Compro E650F DVB-T card. It shipped with RC6 type remote.
So I can test RC6 too... And I will.

>
> > F300 is for LNB power control.
> > It connected to cx23885 GPIO pins:
> > GPIO0 - data - P0.3 F300
> > GPIO1 - reset - P0.2 F300
> > GPIO2 - clk - P0.1 F300
> > GPIO3 - busy - P0.0 F300
> >
> > Interface seems not I2C/SMBUS.
> >
> > Source code from TeVii:
> > http://mercurial.intuxication.org/hg/s2-
> > liplianin/file/d0dfe416e0f6/linux/drivers/media/video/cx23885/tevii_pwr.c
>
> Interesting....
>
>    static void Delay1mS(void)
>    {
> 	   udelay(800);
>    }
>
> :D
Your link to datasheet helps me a lot :)
I will clear all that out and will commit to linuxtv soon.

BR
Igor
>
> Regards,
> Andy
>
> > BR
> > Igor
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks


^ permalink raw reply	[flat|nested] 42+ messages in thread
* IR Receiver on an Tevii S470
@ 2009-11-18 20:31 Matthias Fechner
  2009-11-21 17:10 ` Matthias Fechner
  0 siblings, 1 reply; 42+ messages in thread
From: Matthias Fechner @ 2009-11-18 20:31 UTC (permalink / raw)
  To: linux-media

Hi,

I bought some days ago a Tevii S470 DVB-S2 (PCI-E) card and got it 
running with the driver from:
http://mercurial.intuxication.org/hg/s2-liplianin

But I was not successfull in got the IR receiver working.
It seems that it is not supported yet by the driver.

Is there maybe some code available to get the IR receiver with evdev 
running?

Thanks a lot,
Matthias

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

end of thread, other threads:[~2010-01-07  0:45 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-12  0:30 IR Receiver on an Tevii S470 Igor M. Liplianin
2009-12-12  1:00 ` Andy Walls
2009-12-12  1:42   ` Igor M. Liplianin
2009-12-12  2:58     ` Andy Walls
2009-12-12 11:49       ` Igor M. Liplianin
2009-12-12 14:15         ` Andy Walls
2009-12-12 16:01           ` Igor M. Liplianin
2009-12-12 16:22           ` Igor M. Liplianin
2009-12-12 16:59             ` Andy Walls
2009-12-31 12:46               ` Guillem Solà Aranda
2009-12-31 15:23                 ` Igor M. Liplianin
2010-01-06 21:21   ` Andreas Tschirpke
2010-01-07  0:44     ` Andy Walls
  -- strict thread matches above, loose matches on Subject: below --
2009-11-23  0:15 Igor M. Liplianin
2009-11-18 20:31 Matthias Fechner
2009-11-21 17:10 ` Matthias Fechner
2009-11-21 20:41   ` Andy Walls
2009-11-21 22:19     ` Jonas Kvinge
2009-11-22  1:03     ` Igor M. Liplianin
2009-11-22  2:48       ` Andy Walls
2009-11-22 18:08         ` Matthias Fechner
2009-11-22 20:11           ` Andy Walls
2009-11-22 20:25             ` Matthias Fechner
2009-11-22 20:32               ` Jean Delvare
2009-11-23  0:17                 ` Andy Walls
2009-11-23  8:54                   ` Jean Delvare
2009-11-25  0:25                     ` Andy Walls
2009-11-26 16:43                       ` Matthias Fechner
2009-11-29 14:22                         ` Andy Walls
2009-11-22 20:26             ` Jean Delvare
2009-11-22 22:29             ` Igor M. Liplianin
2009-11-22 23:40               ` Andy Walls
2009-12-06 21:40       ` Andy Walls
2009-12-06 22:36         ` Matthias Fechner
2009-12-07  1:23         ` Igor M. Liplianin
2009-12-07  3:35           ` Andy Walls
2009-12-08 17:59             ` Igor M. Liplianin
2009-12-09 11:47               ` Andy Walls
2009-12-09 15:54                 ` Igor M. Liplianin
2009-12-10  1:12                   ` Andy Walls
2009-12-10 16:16                     ` Igor M. Liplianin
2009-12-11  2:32                       ` Andy Walls

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