Re: TV tuner
Добавлено: 2009-06-07 20:37:46
Вот может пригодиться.. У меня даже Фри 6,3 или 6,4 второй системой стоит... Только как там чего выкатывать не помню
Чем глубже в песке твоя голова - тем беззащитнее жопа
https://forum.lissyara.su/
Из бехолдеровской проги, раздела "О тюнере":Behold TV 609 FM
PCI\VEN_1131&DEV_7133&SUBSYS_60905ACE&REV_D1
PCI\VEN_1131&DEV_7133&SUBSYS_60905ACE
PCI\VEN_1131&DEV_7133&CC_048000
PCI\VEN_1131&DEV_7133&CC_0480
Наименование тюнера Behold TV: Beholder TV 609 FM
Поддерживаемые функции:
Analog TV
Analog TV NICAM/A2 stereo decoder
Analog FM Radio
Analog audio DSP
Advanced Remote & power Control (ARPC)
Другие функции с крестиками, в т.ч. RDS decoder
WDM-устройство: Beholder A/V Capture (SAA7135) [Slot 2]
Bus interface: PCI 2.2
Bus controller: NXP (Philips) SAA7135HL/203
Analog A/V decoder: NXP (Philips) SAA7135HL/203
AIR/Cable RF tuner: Mk3
Поставил майский 8.0-Current (может надо было 7.1-Release ?),paradox писал(а):дай инфу что я попросил
с винды хотя бы как выше
Код: Выделить всё
none2@pci0:2:9:0: class=0x048000 card=0x75955ace chip=0x71331131 rev=0xd1 hdr=0x00
vendor = 'Philips Semiconductors'
device = 'Philips SAA7135hl ENLTV TV/Radio Tuner'
class = multimedia
bar [10] = type Memory, range 32, base 0xfeafb800, size 2048, enabled
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
сделалwassalam » 2009-06-07 20:37:46
Что-нибудь ещё?paradox писал(а):нет
покажи скрин из виндов в программе ТВ бихолдера
последний пунк
смотри каксделалwassalam » 2009-06-07 20:37:46
Не собирается. =(paradox писал(а):да
попробуй saa_* поставить из шапки
и кинешь сюда
резальтат i2c_scan и i2c_dump с патчем что я выше показал
Код: Выделить всё
Warning: Object directory not changed from original /tmp/saa/kmod
awk -f @/tools/makeobjops.awk @/dev/iicbus/iicbus_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x_i2c.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x_video.c
saa713x_video.c: In function 'saa_videodev_open':
saa713x_video.c:1030: error: invalid operands to binary &
saa713x_video.c: In function 'saa_videodev_close':
saa713x_video.c:1042: error: invalid operands to binary &
saa713x_video.c: In function 'saa_videodev_ioctl':
saa713x_video.c:1069: error: invalid operands to binary &
saa713x_video.c: In function 'saa_videodev_mmap':
saa713x_video.c:1392: error: invalid operands to binary &
*** Error code 1
Stop in /tmp/saa/kmod.
uname -a:paradox писал(а):все лечиться
а ну покажи
vi +1030 saa713x_video.c
на какую строку оно указывает
и фрагмент покажи
и какой у тебя куррнет? какой давности
Код: Выделить всё
FreeBSD radio2.almaz.org 8.0-CURRENT-200905 FreeBSD 8.0-CURRENT-200905 #0: Mon May 4 23:25:09 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Код: Выделить всё
static int
saa_videodev_open(DPTYPE dev, int oflags, int dtype, struct thread *td)
{
struct saa_softc *sc;
int unit;
unit = minor(dev);
sc = devclass_get_softc(saa_devclass, unit);
//device_busy(devclass_get_device(saa_devclass, unit));
return 0;
}
#makeparadox писал(а):попробуй отдельно модуль собрать
paradox.lissyara.su/saa/kmod.tar.bz2
Код: Выделить всё
"Makefile", line 5: Could not find ../Makevars
make: fatal errors encountered -- cannot continue
Если подсунуть Makevars из saa_paradox.tar.bz2, то:LizardOfOzz писал(а):#makeparadox писал(а):попробуй отдельно модуль собрать
paradox.lissyara.su/saa/kmod.tar.bz2Код: Выделить всё
"Makefile", line 5: Could not find ../Makevars make: fatal errors encountered -- cannot continue
Код: Выделить всё
Warning: Object directory not changed from original /tmp/kmod
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/dev/iicbus/iicbus_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x_i2c.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x_video.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x_audio.c
saa713x_audio.c:441:5: error: "NOT_YET" is not defined
saa713x_audio.c: In function 'saa_audiodev_open':
saa713x_audio.c:468: error: invalid operands to binary &
saa713x_audio.c: In function 'saa_audiodev_close':
saa713x_audio.c:481: error: invalid operands to binary &
saa713x_audio.c: In function 'saa_audiodev_ioctl':
saa713x_audio.c:497: error: invalid operands to binary &
saa713x_audio.c: In function 'saa_audiodev_mmap':
saa713x_audio.c:611: error: invalid operands to binary &
*** Error code 1
Stop in /tmp/kmod.
я пофиксил перетяни kmod.upd: Я правильно понял, надо заменить директорию kmod в saa_paradox.tar.bz2 на содержимое kmod.tar.bz2?
Если так, то никаких изменений.
модуль ядра собрался после того, как я закомментил в файле saa713x_audio.c строкиparadox писал(а):я пофиксил перетяни kmod.upd: Я правильно понял, надо заменить директорию kmod в saa_paradox.tar.bz2 на содержимое kmod.tar.bz2?
Если так, то никаких изменений.
Код: Выделить всё
#if NOT_YET
...
#endif
Код: Выделить всё
radio2# make
Warning: Object directory not changed from original /tmp/saa/kmod
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c saa713x_audio.c
ld -d -warn-common -r -d -o saa.kld saa713x.o saa713x_i2c.o saa713x_video.o saa713x_audio.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk saa.kld export_syms | xargs -J% objcopy % saa.kld
ld -Bshareable -d -warn-common -o saa.ko saa.kld
objcopy --strip-debug saa.ko
radio2# make install
install -o root -g wheel -m 555 saa.ko /boot/kernel
kldxref /boot/kernel
mkdir -p /usr/include/dev/saa
install -C -o root -g wheel -m 444 saa713x_ioctl.h saa713x_reg.h /usr/include/dev/saa
Код: Выделить всё
radio2# ls /dev
acd0 atkbd0 cuau1.init kbd0 net1 random ttyv0 ttyvb urandom
acpi audit cuau1.lock kbd1 net2 stderr ttyv1 ttyvc usb
ad0 bpf dcons kbdmux0 net3 stdin ttyv2 ttyvd usbctl
ad0s1 bpf0 devctl klog network stdout ttyv3 ttyve xpt0
ad0s1a console devstat kmem nfs4 sysmouse ttyv4 ttyvf zero
ad0s1b consolectl dgdb log nfslock ttyu0 ttyv5 ufsid
ad0s1d ctty dumpdev lpt0 null ttyu0.init ttyv6 ugen0.1
ad0s1e cuau0 fd lpt0.ctl pci ttyu0.lock ttyv7 ugen1.1
ad0s1f cuau0.init fido mdctl ppi0 ttyu1 ttyv8 ugen2.1
agpgart cuau0.lock geom.ctl mem ptmx ttyu1.init ttyv9 ugen3.1
ata cuau1 io net pts ttyu1.lock ttyva ugen4.1
radio2# kldload saa.ko
radio2# ls /dev
acd0 atkbd0 cuau1.init kbd0 net1 random ttyu1.init ttyv9 ugen3.1
acpi audit cuau1.lock kbd1 net2 saa0 ttyu1.lock ttyva ugen4.1
ad0 bpf dcons kbdmux0 net3 sau0 ttyv0 ttyvb urandom
ad0s1 bpf0 devctl klog network stderr ttyv1 ttyvc usb
ad0s1a console devstat kmem nfs4 stdin ttyv2 ttyvd usbctl
ad0s1b consolectl dgdb log nfslock stdout ttyv3 ttyve xpt0
ad0s1d ctty dumpdev lpt0 null sysmouse ttyv4 ttyvf zero
ad0s1e cuau0 fd lpt0.ctl pci ttyu0 ttyv5 ufsid
ad0s1f cuau0.init fido mdctl ppi0 ttyu0.init ttyv6 ugen0.1
agpgart cuau0.lock geom.ctl mem ptmx ttyu0.lock ttyv7 ugen1.1
ata cuau1 io net pts ttyu1 ttyv8 ugen2.1
radio2#
Код: Выделить всё
radio2# make
===> kmod (all)
Warning: Object directory not changed from original /tmp/saa/kmod
===> support (all)
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o dump_eeprom dump_eeprom.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o scan_i2c scan_i2c.c
cc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -c tuner_ctrl.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o set_channel set_channel.c tuner_ctrl.o
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o set_videoopt set_videoopt.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o tune_channels tune_channels.c tuner_ctrl.o
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o set_audioopt set_audioopt.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o flash_eeprom flash_eeprom.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o audio_looper audio_looper.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o audio_player audio_player.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o audio_setlineout audio_setlineout.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o video_printsts video_printsts.c
video_printsts.c: In function 'main':
video_printsts.c:29: warning: incompatible implicit declaration of built-in function 'printf'
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o set_gpio set_gpio.c
===> tvv (all)
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOMAN is deprecated in favour of NO_MAN
Warning: Object directory not changed from original /tmp/saa/tvv
cc -I/usr/X11R6/include -I../kmod -DTVV_USE_MMXEXT -std=gnu99 -fstack-protector -c tvv.c
In file included from tvv.c:13:
tvv.h:9:22: error: X11/Xlib.h: No such file or directory
tvv.h:10:23: error: X11/Xutil.h: No such file or directory
tvv.h:11:23: error: X11/Shell.h: No such file or directory
tvv.h:12:28: error: X11/StringDefs.h: No such file or directory
tvv.h:14:33: error: X11/extensions/XShm.h: No such file or directory
tvv.h:15:34: error: X11/extensions/Xvlib.h: No such file or directory
tvv.h:16:36: error: X11/extensions/xf86dga.h: No such file or directory
In file included from tvv.c:13:
tvv.h:62: error: expected specifier-qualifier-list before 'XtWorkProcId'
tvv.h:67: error: expected specifier-qualifier-list before 'XShmSegmentInfo'
tvv.h:89: error: expected specifier-qualifier-list before 'Window'
tvv.h:102: error: expected specifier-qualifier-list before 'XtAppContext'
tvv.h:128: error: expected ')' before '*' token
In file included from tvv.c:14:
tvv_clip.h:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'refresh_desktop'
tvv_clip.h:11: error: expected declaration specifiers or '...' before 'Window'
tvv.c:79: error: expected ')' before 'w'
tvv.c: In function 'main':
tvv.c:95: error: 'XSetWindowAttributes' undeclared (first use in this function)
tvv.c:95: error: (Each undeclared identifier is reported only once
tvv.c:95: error: for each function it appears in.)
tvv.c:95: error: expected ';' before 'cattr'
tvv.c:96: error: 'XWindowAttributes' undeclared (first use in this function)
tvv.c:96: error: expected ';' before 'wattr'
tvv.c:97: error: 'XEvent' undeclared (first use in this function)
tvv.c:97: error: expected ';' before 'e'
tvv.c:98: error: 'XErrorHandler' undeclared (first use in this function)
tvv.c:98: error: expected ';' before 'eh'
tvv.c:100: error: 'Screen' undeclared (first use in this function)
tvv.c:100: error: 'scr' undeclared (first use in this function)
tvv.c:106: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:106: warning: implicit declaration of function 'XtVaOpenApplication'
tvv.c:106: error: 'struct xinfo' has no member named 'xi_app'
tvv.c:110: error: 'applicationShellWidgetClass' undeclared (first use in this function)
tvv.c:112: warning: implicit declaration of function 'DefaultScreenOfDisplay'
tvv.c:112: warning: implicit declaration of function 'XtDisplay'
tvv.c:112: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:113: error: 'struct xinfo' has no member named 'xi_scr_width'
tvv.c:113: warning: implicit declaration of function 'WidthOfScreen'
tvv.c:114: error: 'struct xinfo' has no member named 'xi_scr_height'
tvv.c:114: warning: implicit declaration of function 'HeightOfScreen'
tvv.c:122: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:123: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:127: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:132: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:133: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:138: warning: implicit declaration of function 'XtAddEventHandler'
tvv.c:138: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:139: error: 'StructureNotifyMask' undeclared (first use in this function)
tvv.c:139: error: 'VisibilityChangeMask' undeclared (first use in this function)
tvv.c:140: error: 'ExposureMask' undeclared (first use in this function)
tvv.c:141: error: 'FALSE' undeclared (first use in this function)
tvv.c:142: error: 'event_handler' undeclared (first use in this function)
tvv.c:145: warning: implicit declaration of function 'XtVaSetValues'
tvv.c:145: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:146: error: 'XtNwidth' undeclared (first use in this function)
tvv.c:146: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:147: error: 'XtNheight' undeclared (first use in this function)
tvv.c:147: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:150: warning: implicit declaration of function 'XtRealizeWidget'
tvv.c:150: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:152: error: 'cattr' undeclared (first use in this function)
tvv.c:152: warning: implicit declaration of function 'BlackPixel'
tvv.c:152: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:153: warning: implicit declaration of function 'XChangeWindowAttributes'
tvv.c:153: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:154: warning: implicit declaration of function 'XtWindow'
tvv.c:154: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:155: error: 'CWBackPixel' undeclared (first use in this function)
tvv.c:158: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:161: warning: implicit declaration of function 'XSelectInput'
tvv.c:161: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:162: warning: implicit declaration of function 'DefaultRootWindow'
tvv.c:162: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:163: error: 'SubstructureNotifyMask' undeclared (first use in this function)
tvv.c:165: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:168: warning: implicit declaration of function 'XtAppNextEvent'
tvv.c:168: error: 'struct xinfo' has no member named 'xi_app'
tvv.c:168: error: 'e' undeclared (first use in this function)
tvv.c:169: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:170: warning: implicit declaration of function 'XtDispatchEvent'
tvv.c:171: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:172: error: 'ConfigureNotify' undeclared (first use in this function)
tvv.c:173: error: 'struct xinfo' has no member named 'xi_wm_parent'
tvv.c:181: error: 'struct xinfo' has no member named 'xi_set_clist_count'
tvv.c:183: error: 'struct xinfo' has no member named 'xi_set_clist'
tvv.c:184: error: 'wattr' undeclared (first use in this function)
tvv.c:185: error: 'eh' undeclared (first use in this function)
tvv.c:185: warning: implicit declaration of function 'XSetErrorHandler'
tvv.c:186: error: 'xgetwinattr_errorhandler' undeclared (first use in this function)
tvv.c:187: warning: implicit declaration of function 'XGetWindowAttributes'
tvv.c:187: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:194: error: 'IsViewable' undeclared (first use in this function)
tvv.c:195: error: 'struct xinfo' has no member named 'xi_set_clist'
tvv.c:196: error: 'struct xinfo' has no member named 'xi_set_clist'
tvv.c:198: error: 'struct xinfo' has no member named 'xi_set_clist'
tvv.c:200: error: 'struct xinfo' has no member named 'xi_set_clist'
tvv.c:203: error: too many arguments to function 'clipping_reconfigure'
tvv.c:204: error: 'struct xinfo' has no member named 'xi_win_mapped'
tvv.c:214: error: too many arguments to function 'clipping_reconfigure'
tvv.c:215: error: 'RectangleOut' undeclared (first use in this function)
tvv.c:217: error: too many arguments to function 'clipping_reconfigure'
tvv.c:218: error: 'struct xinfo' has no member named 'xi_win_mapped'
tvv.c:227: warning: implicit declaration of function 'XtAppMainLoop'
tvv.c:227: error: 'struct xinfo' has no member named 'xi_app'
tvv.c: In function 'alloc_defaults':
tvv.c:241: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:243: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:257: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:258: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:259: error: 'struct xinfo' has no member named 'xi_win_resetpending'
tvv.c:263: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:266: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:267: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:268: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:269: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c: In function 'parse_args':
tvv.c:282: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:285: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:296: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:312: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:313: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c: In function 'xv_setmodeinfo':
tvv.c:388: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:393: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:398: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c: In function 'dga_init':
tvv.c:427: error: 'Display' undeclared (first use in this function)
tvv.c:427: error: 'd' undeclared (first use in this function)
tvv.c:430: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:431: warning: implicit declaration of function 'DefaultScreen'
tvv.c:431: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:432: warning: implicit declaration of function 'XDGAQueryVersion'
tvv.c:435: warning: implicit declaration of function 'XF86DGAGetVideoLL'
tvv.c:436: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:437: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:439: warning: implicit declaration of function 'DefaultDepth'
tvv.c:443: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:444: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:452: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:456: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:460: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c: In function 'xv_init':
tvv.c:477: error: 'Display' undeclared (first use in this function)
tvv.c:477: error: 'd' undeclared (first use in this function)
tvv.c:478: error: 'XvAdaptorInfo' undeclared (first use in this function)
tvv.c:478: error: 'adp' undeclared (first use in this function)
tvv.c:490: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:491: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:509: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:510: warning: implicit declaration of function 'XvQueryAdaptors'
tvv.c:511: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:512: error: 'Success' undeclared (first use in this function)
tvv.c:518: warning: implicit declaration of function 'XvGrabPort'
tvv.c:518: error: 'CurrentTime' undeclared (first use in this function)
tvv.c:522: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:523: warning: implicit declaration of function 'XvFreeAdaptorInfo'
tvv.c:524: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:524: warning: implicit declaration of function 'XCreateGC'
tvv.c:524: error: 'struct xinfo' has no member named 'xi_win'
tvv.c: In function 'xv_multibuf_notify':
tvv.c:544: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:548: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:550: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:552: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:554: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:556: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:557: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:558: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:568: warning: implicit declaration of function 'XvShmPutImage'
tvv.c:568: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:569: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:570: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:571: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:572: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:574: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:576: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:576: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:577: error: 'False' undeclared (first use in this function)
tvv.c:577: error: 'Success' undeclared (first use in this function)
tvv.c:579: warning: implicit declaration of function 'XSync'
tvv.c:579: error: 'struct xinfo' has no member named 'xi_win'
tvv.c: In function 'xv_frame_notify':
tvv.c:588: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:590: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:591: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:592: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:600: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:601: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:602: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:603: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:604: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:606: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:608: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:608: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:609: error: 'False' undeclared (first use in this function)
tvv.c:609: error: 'Success' undeclared (first use in this function)
tvv.c:611: error: 'struct xinfo' has no member named 'xi_win'
tvv.c: In function 'terminate_notify':
tvv.c:621: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:622: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:623: warning: implicit declaration of function 'XFree'
tvv.c:623: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:624: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:626: warning: implicit declaration of function 'XShmDetach'
tvv.c:626: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:626: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:627: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:629: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:630: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c: In function 'start_video':
tvv.c:640: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:651: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:652: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:653: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:659: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c: In function 'stop_video':
tvv.c:672: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c: In function 'reset_viewport':
tvv.c:705: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:706: error: 'struct xinfo' has no member named 'xi_win_xpos'
tvv.c:707: error: 'struct xinfo' has no member named 'xi_win_ypos'
tvv.c:708: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:709: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:723: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:725: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:725: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:726: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:728: error: 'struct xinfo' has no member named 'xi_scr_width'
tvv.c:729: error: 'struct xinfo' has no member named 'xi_scr_width'
tvv.c:734: error: 'struct xinfo' has no member named 'xi_scr_height'
tvv.c:735: error: 'struct xinfo' has no member named 'xi_scr_height'
tvv.c:742: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:743: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:748: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:748: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:749: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:750: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:756: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:757: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:765: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:765: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:774: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:774: error: 'struct xinfo' has no member named 'xi_dgainfo'
tvv.c:781: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:782: error: 'struct xinfo' has no member named 'xi_win_width'
tvv.c:783: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:784: error: 'struct xinfo' has no member named 'xi_win_height'
tvv.c:790: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:792: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:793: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:794: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:796: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:797: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:798: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:800: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:801: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:805: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:808: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:809: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:812: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:815: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:818: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:820: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:821: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:822: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:827: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:827: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:828: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:829: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:830: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:830: error: 'False' undeclared (first use in this function)
tvv.c:831: warning: implicit declaration of function 'XShmAttach'
tvv.c:831: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:831: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:832: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:834: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:835: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:836: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:837: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:838: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:841: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:844: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:844: warning: implicit declaration of function 'XvShmCreateImage'
tvv.c:844: error: 'struct xinfo' has no member named 'xi_win'
tvv.c:845: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:846: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:849: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:850: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:851: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:853: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:853: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:856: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:860: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:861: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:863: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:864: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:867: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:870: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:871: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:906: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:911: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:912: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:925: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:933: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:935: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:945: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:946: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:953: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:960: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:968: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:976: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:978: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:983: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:1006: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c:1010: error: 'struct xinfo' has no member named 'xi_xvinfo'
tvv.c: At top level:
tvv.c:1018: error: expected ')' before 'w'
tvv.c:1138: error: expected ')' before '*' token
*** Error code 1
Stop in /tmp/saa/tvv.
*** Error code 1
Stop in /tmp/saa.
Код: Выделить всё
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o dump_eeprom dump_eeprom.c
gcc -I../kmod -DTUNER_APITYPE_PHILIPS -DTUNER_PAL -DTUNER_WR_I2CADDR=0xc0 -DTUNER_RD_I2CADDR=0xc1 -o scan_i2c scan_i2c.c
Код: Выделить всё
radio2# ./dump_eeprom /dev/iic0
0[ffffffce],1[5a],2[ffffff95],3[75],4[54],5[20],6[0],7[0],8[0],9[0],10[0],11[0],12[0],13[0],14[0],15[1],16[ffffffff],17[ffffffff],18[ffffffff],19[ffffffff],20[ffffffff],21[ffffffff],22[ffffffff],23[ffffffff],24[ffffffff],25[ffffffff],26[ffffffff],27[ffffffff],28[ffffffff],29[ffffffff],30[ffffffff],31[ffffffff],32[ffffffff],33[ffffffff],34[ffffffff],35[ffffffff],36[ffffffff],37[ffffffff],38[ffffffff],39[ffffffff],40[ffffffff],41[ffffffff],42[ffffffff],43[ffffffff],44[ffffffff],45[ffffffff],46[ffffffff],47[ffffffff],48[ffffffff],49[ffffffff],50[ffffffff],51[ffffffff],52[ffffffff],53[ffffffff],54[ffffffff],55[ffffffff],56[ffffffff],57[ffffffff],58[ffffffff],59[ffffffff],60[ffffffff],61[ffffffff],62[ffffffff],63[ffffffff],64[ffffffff],65[ffffffff],66[ffffffff],67[ffffffff],68[ffffffff],69[ffffffff],70[ffffffff],71[ffffffff],72[ffffffff],73[ffffffff],74[ffffffff],75[ffffffff],76[ffffffff],77[ffffffff],78[ffffffff],79[ffffffff],80[ffffffff],81[ffffffff],82[ffffffff],83[ffffffff],84[ffffffff],85[ffffffff],86[ffffffff],87[ffffffff],88[ffffffff],89[ffffffff],90[ffffffff],91[ffffffff],92[ffffffff],93[ffffffff],94[ffffffff],95[ffffffff],96[ffffffff],97[ffffffff],98[ffffffff],99[ffffffff],100[ffffffff],101[ffffffff],102[ffffffff],103[ffffffff],104[ffffffff],105[ffffffff],106[ffffffff],107[ffffffff],108[ffffffff],109[ffffffff],110[ffffffff],111[ffffffff],112[ffffffff],113[ffffffff],114[ffffffff],115[ffffffff],116[ffffffff],117[ffffffff],118[ffffffff],119[ffffffff],120[ffffffff],121[ffffffff],122[ffffffff],123[ffffffff],124[ffffffff],125[ffffffff],126[ffffffff],127[ffffffff],128[ffffffff],129[ffffffff],130[ffffffff],131[ffffffff],132[ffffffff],133[ffffffff],134[ffffffff],135[ffffffff],136[ffffffff],137[ffffffff],138[ffffffff],139[ffffffff],140[ffffffff],141[ffffffff],142[ffffffff],143[ffffffff],144[ffffffff],145[ffffffff],146[ffffffff],147[ffffffff],148[ffffffff],149[ffffffff],150[ffffffff],151[ffffffff],152[ffffffff],153[ffffffff],154[ffffffff],155[ffffffff],156[ffffffff],157[ffffffff],158[ffffffff],159[ffffffff],160[ffffffff],161[ffffffff],162[ffffffff],163[ffffffff],164[ffffffff],165[ffffffff],166[ffffffff],167[ffffffff],168[ffffffff],169[ffffffff],170[ffffffff],171[ffffffff],172[ffffffff],173[ffffffff],174[ffffffff],175[ffffffff],176[ffffffff],177[ffffffff],178[ffffffff],179[ffffffff],180[ffffffff],181[ffffffff],182[ffffffff],183[ffffffff],184[ffffffff],185[ffffffff],186[ffffffff],187[ffffffff],188[ffffffff],189[ffffffff],190[ffffffff],191[ffffffff],192[ffffffff],193[ffffffff],194[ffffffff],195[ffffffff],196[ffffffff],197[ffffffff],198[ffffffff],199[ffffffff],200[ffffffff],201[ffffffff],202[ffffffff],203[ffffffff],204[ffffffff],205[ffffffff],206[ffffffff],207[ffffffff],208[ffffffff],209[ffffffff],210[ffffffff],211[ffffffff],212[ffffffff],213[ffffffff],214[ffffffff],215[ffffffff],216[ffffffff],217[ffffffff],218[ffffffff],219[ffffffff],220[ffffffff],221[ffffffff],222[ffffffff],223[ffffffff],224[0],225[0],226[0],227[0],228[ffffffff],229[ffffffff],230[ffffffff],231[ffffffff],232[ffffffff],233[ffffffff],234[ffffffff],235[ffffffff],236[ffffffff],237[ffffffff],238[ffffffff],239[ffffffff],240[42],241[54],242[56],243[30],244[30],245[30],246[30],247[ffffffff],248[ffffffff],249[ffffffff],250[ffffffff],251[ffffffff],252[ffffffff],253[ffffffff],254[ffffffff],255[ffffffff],
Код: Выделить всё
radio2# ./scan_i2c /dev/iic0
scan_i2c: Device at 90
scan_i2c: Device at 91
scan_i2c: Device at 160
scan_i2c: Device at 161
Код: Выделить всё
if (ioctl(fd, I2CSTOP) != 0)
err(1, "Ioctl I2CSTOP error");
for (i=0; i < COUNT; ++i)
- printf("%c", buf[i]);
+ printf("%02x[%02x],", i, buf[i]&0xff);
return 0;