Author Topic: Asus P7131 Analog  (Read 3190 times)

d3vice

  • Newbie
  • *
  • Posts: 11
    • View Profile
Asus P7131 Analog
« on: February 22, 2008, 01:50:58 pm »
Hi!

I installed 0710beta3 on the following hardware:

asus p4b533
p4 2.0ghz
512 ram
asus mycinema p7131 Analog (not dual/hybrid/dvb), FM radio, S-Video/Composite Video-in and ir remote (through tiny jack on the pci).

This analog tvtuner loads the following modules:

linuxmce@dcerouter:~$ sudo lsmod | grep saa
[sudo] password for linuxmce:
saa7134_alsa            15392  1
snd_pcm                    80388  3 saa7134_alsa,snd_cmipci,snd_pcm_oss
saa7134                   129100  2 saa7134_alsa
video_buf                   26244  2 saa7134_alsa,saa7134
compat_ioctl32            2304  1 saa7134
ir_kbd_i2c                    9872  1 saa7134
i2c_core                     26112  3 tuner,saa7134,ir_kbd_i2c
ir_common                 35460  2 saa7134,ir_kbd_i2c
videodev                     29312  2 saa7134
v4l2_common            18432  3 tuner,saa7134,videodev
v4l1_compat              15364  2 saa7134,videodev
snd                             54660  21 saa7134_alsa,snd_cmipci,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device

Tvtime works with this card, i can tune and watch channels. At first I didn't have any sound, although alsa "sees" two sound cards, and all volumes are up using alsamixer. I found that this card has an audio-ouput socket, so i used a cdaudio cable and connected it to my motherboard's sound card and i get sound, mono sound. Maybe this is something to do with the cable or mobo's socket i used. I will try connecting to cdaudio input of the mobo and maybe try to use saa7134_oss since lmce seems to be using it.

Mythtv works too, no egd or xmltv yet, i just wanted to see if i could tune channels, sometimes mythbackend dies, a quick reload does the job.

Now the real deal... I'm stuck at creating a template in linuxmce for this device. I guess this template would include tuner, tuner's audio, composite/s-video input, fm radio and ir remote. I usually don't code, except for some bash scripts and I have only been using lmce for 4 days, I'm still kind of lost.

Tips, hints, pointers, help is apreciated. You can also find me at #linuxmce on freenode.

Best regards!

d3vice

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Asus P7131 Analog
« Reply #1 on: February 22, 2008, 01:56:58 pm »

I forgot to show dmseg:

[   50.606714] Linux video capture interface: v2.00
[   50.772237] saa7130/34: v4l2 driver version 0.2.14 loaded
[   50.773432] ACPI: PCI Interrupt 0000:02:0b.0[A] -> GSI 23 (level, low) -> IRQ 19
[   50.773445] saa7133[0]: found at 0000:02:0b.0, rev: 209, irq: 19, latency: 32, mmio: 0xee000000
[   50.773454] saa7133[0]: subsystem: 1043:4845, board: ASUS TV-FM 7135 [card=53,autodetected]
[   50.773466] saa7133[0]: board init: gpio is 40000
[   50.948626] saa7133[0]: i2c eeprom 00: 43 10 45 48 54 20 1c 00 43 43 a9 1c 55 d2 b2 92
[   50.948643] saa7133[0]: i2c eeprom 10: 00 ff e2 0f ff 20 ff ff ff ff ff ff ff ff ff ff
[   50.948656] saa7133[0]: i2c eeprom 20: 01 40 01 02 03 01 01 03 08 ff 00 88 ff ff ff ff
[   50.948670] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   50.948685] saa7133[0]: i2c eeprom 40: ff 22 00 c2 96 ff 02 30 15 ff ff ff ff ff ff ff
[   50.948698] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   50.948713] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   50.948727] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   51.112269] tuner 0-004b: chip found @ 0x96 (saa7133[0])
[   51.160176] tuner 0-004b: setting tuner address to 61
[   51.200102] tuner 0-004b: type set to tda8290+75a
[   52.445759] tuner 0-004b: setting tuner address to 61
[   52.485683] tuner 0-004b: type set to tda8290+75a
[   53.806390] saa7133[0]: registered device video0 [v4l2]
[   53.806571] saa7133[0]: registered device vbi0
[   53.806758] saa7133[0]: registered device radio0
[   53.871254] ACPI: PCI Interrupt 0000:02:03.0[A] -> GSI 21 (level, low) -> IRQ 20
[   53.899964] saa7134 ALSA driver for DMA sound loaded
[   53.900007] saa7133[0]/alsa: saa7133[0] at 0xee000000 irq 19 registered as card -2


I also think that this card is being incorrectly detect as another model, the hybrid/dual/dvb one.

linuxmce@dcerouter:~$ sudo cat /proc/bus/input/devices
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=40001
B: SND=6

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=button_power/button/input0
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=100000 0 0 0

The ir remote doesn't seem to be detected.

d3vice

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Asus P7131 Analog
« Reply #2 on: February 22, 2008, 09:27:53 pm »
Good news!

I did a fresh config of mythtv (deleted all previous devices, etc) and realized I had forgotten to select /dev/dsp1 for the tuner's sound. Now I have sound, stereo sound. I don't need that cdaudio cable anymore, the audio comes through pci.

XMLTV for my cable supplier is working too. I'm stunned I got this far.

Nothing new on the ir remote, still not working. I read somewhere I could try to run xev to map ir codes to xmodmap, but xev doesn't detect any key press from remote.

I'll keep you posted, maybe a wiki page about this experience should follow.

d3vice

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Asus P7131 Analog
« Reply #3 on: February 24, 2008, 03:02:41 pm »
All this time, tvtime only had sound with the cdaudio cable connected to the mobo's sound card and mono sound.

After googling it, i found i could use sox to redirect dsp1 to dsp, this works for me:

linuxmce@dcerouter:~$ sudo sox -c 2 -s -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -w -r 32000 /dev/dsp

and then start tvtime with:

linuxmce@dcerouter:~$ sudo tvtime --mixer=/dev/mixer:pcm

There you go, stereo sound through pci.

Teletext doesn't seem to work on tvtime and mythtv, I don't know the impact of this card being detected as model P7135 instead of P7131 regarding teletex and the ir sensor/remote.