Hi again.
Started to look at getting the remote to work also.
I used Terratec Cinergy 250 USB as template and added the needed
information in:
em28xx-cards.c
em28xx.h
em28xx-input.c
ir-common.h
ir-keymaps.c
Compiled it with: make, make install and rebooted.
But it seems that I've missed something since ir-kbd-i2c loads, but it
doesn't seem to look for any ir devices.
Tried loading ir-kbd-i2c with debug=1, but not even an error message
shows up in dmesg, it looks just as before.
What I've added in the files is in a text file attachment.
The keymap I added is just garabage and the polling structure in
em28xx is probably wrong too.
But I have to start somewhere.
/Magnus
2009/10/15 Magnus Alm magnus@gmail.com:
yay
[ 2478.224015] tda9887 4-0043: configure for: Radio Stereo
[ 2478.224017] tda9887 4-0043: writing: b=0xcc c=0x90 e=0x3d
/Magnus
2009/10/15 Magnus Alm magnus@gmail.com:
Strange, but changeing the tvaudio_addr = 0xb0 to 88, (half of the
decimal value of b0) made tvaudio find my tda9874.
[ 1186.725140] tvaudio: TV audio decoder + audio/video mux driver
[ 1186.725142] tvaudio: known chips: tda9840, tda9873h, tda9874h/a/ah,
tda9875, tda9850, tda9855, tea6300, tea6320, tea6420, tda8425,
pic16c54 (PV951), ta8874z
[ 1186.725151] tvaudio 4-0058: chip found @ 0xb0
[ 1186.736444] tvaudio 4-0058: chip_read2: reg254=0x11
[ 1186.749704] tvaudio 4-0058: chip_read2: reg255=0x2
[ 1186.749708] tvaudio 4-0058: tda9874a_checkit(): DIC=0x11, SIC=0x2.
[ 1186.749710] tvaudio 4-0058: found tda9874a.
[ 1186.749712] tvaudio 4-0058: tda9874h/a/ah found @ 0xb0 (em28xx #0)
[ 1186.749714] tvaudio 4-0058: matches:.
[ 1186.749716] tvaudio 4-0058: chip_write: reg0=0x0
[ 1186.760012] tvaudio 4-0058: chip_write: reg1=0xc0
[ 1186.772014] tvaudio 4-0058: chip_write: reg2=0x2
[ 1186.784013] tvaudio 4-0058: chip_write: reg11=0x80
[ 1186.796010] tvaudio 4-0058: chip_write: reg12=0x0
[ 1186.808013] tvaudio 4-0058: chip_write: reg13=0x0
[ 1186.820012] tvaudio 4-0058: chip_write: reg14=0x1
[ 1186.832015] tvaudio 4-0058: chip_write: reg15=0x0
[ 1186.844012] tvaudio 4-0058: chip_write: reg16=0x14
[ 1186.856018] tvaudio 4-0058: chip_write: reg17=0x50
[ 1186.868011] tvaudio 4-0058: chip_write: reg18=0xf9
[ 1186.880745] tvaudio 4-0058: chip_write: reg19=0x80
[ 1186.892347] tvaudio 4-0058: chip_write: reg20=0x80
[ 1186.904015] tvaudio 4-0058: chip_write: reg24=0x80
[ 1186.916011] tvaudio 4-0058: chip_write: reg255=0x0
[ 1186.928021] tvaudio 4-0058: tda9874a_setup(): A2, B/G [0x00].
[ 1186.928091] tvaudio 4-0058: thread started
Now I probably need to set some gpio's too
/Magnus
2009/10/14 Magnus Alm magnus@gmail.com:
Loaded em28xx with i2c_scan and i2c_debug and tvaudio with tda9874a
option and debug.
sudo modprobe -v em28xx i2c_scan=1 i2c_debug=1
sudo modprobe -v tvaudio tda9874a=1 debug=1
And got this ouput:
[91083.588182] em28xx #0: found i2c device @ 0x30 [???]
[91083.590179] em28xx #0: found i2c device @ 0x3e [???]
[91083.590804] em28xx #0: found i2c device @ 0x42 [???]
[91083.600308] em28xx #0: found i2c device @ 0x86 [tda9887]
[91083.603805] em28xx #0: found i2c device @ 0xa0 [eeprom]
[91083.606183] em28xx #0: found i2c device @ 0xb0 [tda9874]
[91083.608808] em28xx #0: found i2c device @ 0xc2 [tuner (analog)]
[91083.617682] em28xx #0: Identified as Leadtek Winfast USB II Deluxe
(card=28)
[91083.617684] em28xx #0:
[91083.617684]
[91083.617687] em28xx #0: The support for this board weren't valid yet.
[91083.617688] em28xx #0: Please send a report of having this working
[91083.617690] em28xx #0: not to V4L mailing list (and/or to other
addresses)
[91083.617691]
[91083.980702] saa7115 4-0021: saa7114 found (1f7114d0e00) @ 0x42
(em28xx #0)
[91086.173114] tvaudio: TV audio decoder + audio/video mux driver
[91086.173116] tvaudio: known chips: tda9840, tda9873h, tda9874h/a/ah,
tda9875, tda9850, tda9855, tea6300, tea6320, tea6420, tda8425,
pic16c54 (PV951), ta8874z
[91086.173125] tvaudio 4-00b0: chip found @ 0x160
[91086.173127] tvaudio 4-00b0: no matching chip description found
[91086.173131] tvaudio: probe of 4-00b0 failed with error -5
It seems to be a tda9874 there - em28xx #0: found i2c device @ 0xb0
[tda9874]
But does tvaudio stop @ 0x160 (decimal value of 0xa0 rigth? ) and
doesn't look further?
I mean does tvaudio find my boards eeprom, cant talk to it and gives up?
/Magnus
2009/10/13 Magnus Alm magnus@gmail.com:
Hi!
Thanks to Devin's moral support I now have sound in television. ;-)
Thanks!!
I pooked around some more managed to get radio to function with these
settings:
[EM2820_BOARD_LEADTEK_WINFAST_USBII_DELUXE] = {
.name = Leadtek Winfast USB II Deluxe,
.valid = EM28XX_BOARD_NOT_VALIDATED,
.tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
.tda9887_conf = TDA9887_PRESENT |
TDA9887_PORT1_ACTIVE,