[linux-dvb] saa7134: fixed pointer in tuner callback

sioux sioux_it at libero.it
Sat Apr 12 16:48:08 CEST 2008


Still not working.

sioux at sioux-desktop:/usr/src/v4l-dvb$ sudo make distclean
make -C /usr/src/v4l-dvb/v4l distclean
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \
                config-compat.h Module.symvers
rm -f .version .*.o.flags .*.o.d Makefile.media \
                Kconfig Kconfig.kern .config .config.cmd .myconfig \
                .kconfig.dep
rm -rf .tmp_versions
rm -f scripts/lxdialog scripts/kconfig oss
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
sioux at sioux-desktop:/usr/src/v4l-dvb$

sioux at sioux-desktop:/usr/src/v4l-dvb$ sudo make rminstall
make -C /usr/src/v4l-dvb/v4l rminstall
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
No version yet, using 2.6.22-14-rt
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
scripts/make_makefile.pl
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
-e
Removing obsolete files from 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video:

-e
Removing old /lib/modules/2.6.22-14-rt/v4l2 files

-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/dvb-usb 
files:
dvb-usb-opera.ko dvb-usb-cxusb.ko dvb-usb-vp7045.ko 
dvb-usb-af9005-remote.ko dvb-usb-ttusb2.ko dvb-usb-dib0700.ko 
dvb-usb-a800.ko dvb-usb-gp8psk.ko dvb-usb-dibusb-common.ko 
dvb-usb-au6610.ko dvb-usb-digitv.ko dvb-usb.ko dvb-usb-dibusb-mc.ko 
dvb-usb-af9005.ko dvb-usb-nova-t-usb2.ko dvb-usb-dtt200u.ko 
dvb-usb-vp702x.ko dvb-usb-umt-010.ko dvb-usb-dibusb-mb.ko 
dvb-usb-gl861.ko dvb-usb-m920x.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/ttpci files:
dvb-ttpci.ko budget-patch.ko ttpci-eeprom.ko budget-av.ko budget.ko 
budget-core.ko budget-ci.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/et61x251 files:
et61x251.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/cpia2 
files:
cpia2.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/cinergyT2 files:
cinergyT2.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/b2c2 files:
b2c2-flexcop-pci.ko b2c2-flexcop.ko b2c2-flexcop-usb.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/ivtv 
files:
ivtvfb.ko ivtv.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/frontends files:
nxt6000.ko dib7000m.ko mt2060.ko mt2131.ko s5h1420.ko nxt200x.ko 
mt352.ko isl6405.ko s5h1409.ko tda18271.ko tda827x.ko sp887x.ko 
dibx000_common.ko isl6421.ko mt312.ko or51132.ko dib3000mb.ko 
tda1004x.ko dib3000mc.ko sp8870.ko l64781.ko dib7000p.ko ves1x93.ko 
tda8083.ko dib0070.ko ves1820.ko stv0297.ko tda10086.ko cx22700.ko 
zl10353.ko qt1010.ko cx24110.ko stv0299.ko dvb-pll.ko lgdt330x.ko 
cx24123.ko cx22702.ko lnbp21.ko xc5000.ko tda10023.ko tua6100.ko 
bcm3510.ko tda10021.ko or51211.ko mt2266.ko tda826x.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/bt8xx 
files:
bttv.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/cx88 
files:
cx8802.ko cx8800.ko cx88-blackbird.ko cx88-alsa.ko cx88xx.ko 
cx88-vp3054-i2c.ko cx88-dvb.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/pluto2 
files:
pluto2.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/usbvideo files:
ibmcam.ko usbvideo.ko vicam.ko ultracam.ko konicawc.ko 
quickcam_messenger.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/sn9c102 files:
sn9c102.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/dvb-core 
files:
dvb-core.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video files:
vpx3220.ko videobuf-dma-sg.ko pms.ko bt856.ko upd64083.ko stradis.ko 
videobuf-core.ko tda9840.ko saa7191.ko cx2341x.ko wm8775.ko meye.ko 
w9968cf.ko tea5761.ko saa7185.ko tuner.ko tda8290.ko tuner-simple.ko 
zr364xx.ko ks0127.ko stv680.ko videobuf-dvb.ko tvaudio.ko tea6420.ko 
bt866.ko cafe_ccic.ko saa5246a.ko tuner-xc2028.ko msp3400.ko zr36016.ko 
tcm825x.ko wm8739.ko stkwebcam.ko dpc7146.ko saa5249.ko cpia_pp.ko 
mt20xx.ko tda7432.ko w9966.ko upd64031a.ko ir-kbd-i2c.ko ov511.ko 
tuner-3036.ko tea6415c.ko dabusb.ko bt819.ko tea5767.ko cpia_usb.ko 
videodev.ko zr36060.ko tda9875.ko adv7175.ko mxb.ko vivi.ko tda9887.ko 
cs53l32a.ko btcx-risc.ko se401.ko saa7110.ko saa7115.ko saa6588.ko 
saa7111.ko tvmixer.ko v4l2-common.ko saa7114.ko hexium_orion.ko 
hexium_gemini.ko tvp5150.ko vp27smpx.ko adv7170.ko videocodec.ko 
ov7670.ko saa7127.ko zr36067.ko m52790.ko v4l1-compat.ko 
videobuf-vmalloc.ko compat_ioctl32.ko v4l2-int-device.ko zr36050.ko 
c-qcam.ko tveeprom.ko cs5345.ko tuner-types.ko cpia.ko tlv320aic23b.ko 
bw-qcam.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/cx23885 files:
cx23885.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/usbvision files:
usbvision.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/common files:
saa7146_vv.ko ir-common.ko saa7146.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/em28xx 
files:
em28xx-alsa.ko em28xx.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/pvrusb2 files:
pvrusb2.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/radio files:
dsbr100.ko radio-maestro.ko radio-zoltrix.ko radio-terratec.ko 
radio-aimslab.ko radio-maxiradio.ko radio-gemtek.ko radio-trust.ko 
radio-sf16fmr2.ko radio-typhoon.ko radio-cadet.ko radio-aztech.ko 
radio-si470x.ko radio-sf16fmi.ko radio-rtrack2.ko radio-gemtek-pci.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/bt8xx files:
dst_ca.ko dvb-bt8xx.ko bt878.ko dst.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/cx25840 files:
cx25840.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/ttusb-dec files:
ttusbdecfe.ko ttusb_dec.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/dvb/ttusb-budget files:
dvb-ttusb-budget.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/pwc files:
pwc.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/saa7134 files:
saa6752hs.ko saa7134-empress.ko saa7134-alsa.ko saa7134-dvb.ko saa7134.ko
-e
Removing old 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video/ovcamchip files:
ovcamchip.ko
-e
Removing old /lib/modules/2.6.22-14-rt/kernel/drivers/media/video/zc0301 
files:
zc0301.ko
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
sioux at sioux-desktop:/usr/src/v4l-dvb$

sioux at sioux-desktop:/usr/src/v4l-dvb$ sudo make rmmod
make -C /usr/src/v4l-dvb/v4l rmmod
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
scripts/rmmod.pl unload
found 0 modules
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
sioux at sioux-desktop:/usr/src/v4l-dvb$

sioux at sioux-desktop:/usr/src/v4l-dvb$ sudo make clean
make -C /usr/src/v4l-dvb/v4l clean
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \
                config-compat.h Module.symvers
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
sioux at sioux-desktop:/usr/src/v4l-dvb$

Than:

sioux at sioux-desktop:/usr/src/v4l-dvb$ sudo make
make -C /usr/src/v4l-dvb/v4l
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.22

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

VIDEO_PLANB: Requires at least kernel 2.6.99
SOC_CAMERA: Requires at least kernel 2.6.25
SOC_CAMERA_MT9M001: Requires at least kernel 2.6.25
SOC_CAMERA_MT9V022: Requires at least kernel 2.6.25
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.22-14-rt/source 
./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
Kernel build directory is /lib/modules/2.6.22-14-rt/build
make -C /lib/modules/2.6.22-14-rt/build SUBDIRS=/usr/src/v4l-dvb/v4l  
modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.22-14-rt'
  CC [M]  /usr/src/v4l-dvb/v4l/flexcop-pci.o
  CC [M]  /usr/src/v4l-dvb/v4l/flexcop-usb.o
  ...

sioux at sioux-desktop:/usr/src/v4l-dvb$ sudo make install
make -C /usr/src/v4l-dvb/v4l install
make[1]: Entering directory `/usr/src/v4l-dvb/v4l'
Stripping debug info from files
-e
Removing obsolete files from 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/video:

Installing kernel modules under 
/lib/modules/2.6.22-14-rt/kernel/drivers/media/:
        dvb/dvb-usb/: dvb-usb-opera.ko dvb-usb-cxusb.ko dvb-usb-vp7045.ko
                dvb-usb-af9005-remote.ko dvb-usb-ttusb2.ko 
dvb-usb-dib0700.ko
                dvb-usb-a800.ko dvb-usb-gp8psk.ko dvb-usb-dibusb-common.ko
                dvb-usb-au6610.ko dvb-usb-digitv.ko dvb-usb.ko
                dvb-usb-dibusb-mc.ko dvb-usb-af9005.ko 
dvb-usb-nova-t-usb2.ko
                dvb-usb-dtt200u.ko dvb-usb-vp702x.ko dvb-usb-umt-010.ko
                dvb-usb-dibusb-mb.ko dvb-usb-gl861.ko dvb-usb-m920x.ko
        dvb/ttpci/: dvb-ttpci.ko budget-patch.ko ttpci-eeprom.ko
                budget-av.ko budget.ko budget-core.ko
                budget-ci.ko
        video/et61x251/: et61x251.ko
        video/cpia2/: cpia2.ko
        dvb/cinergyT2/: cinergyT2.ko
        dvb/b2c2/: b2c2-flexcop-pci.ko b2c2-flexcop.ko b2c2-flexcop-usb.ko
        video/ivtv/: ivtvfb.ko ivtv.ko
        dvb/frontends/: nxt6000.ko dib7000m.ko mt2060.ko
                mt2131.ko s5h1420.ko nxt200x.ko
                mt352.ko isl6405.ko s5h1409.ko
                tda18271.ko tda827x.ko sp887x.ko
                dibx000_common.ko isl6421.ko mt312.ko
                or51132.ko dib3000mb.ko tda1004x.ko
                dib3000mc.ko sp8870.ko l64781.ko
                dib7000p.ko ves1x93.ko tda8083.ko
                dib0070.ko ves1820.ko stv0297.ko
                tda10086.ko cx22700.ko zl10353.ko
                qt1010.ko cx24110.ko stv0299.ko
                dvb-pll.ko lgdt330x.ko cx24123.ko
                cx22702.ko lnbp21.ko xc5000.ko
                tda10023.ko tua6100.ko bcm3510.ko
                tda10021.ko or51211.ko mt2266.ko
                tda826x.ko
        video/bt8xx/: bttv.ko
        video/cx88/: cx8802.ko cx8800.ko cx88-blackbird.ko
                cx88-alsa.ko cx88xx.ko cx88-vp3054-i2c.ko
                cx88-dvb.ko
        dvb/pluto2/: pluto2.ko
        video/usbvideo/: ibmcam.ko usbvideo.ko vicam.ko
                ultracam.ko konicawc.ko quickcam_messenger.ko
        video/sn9c102/: sn9c102.ko
        dvb/dvb-core/: dvb-core.ko
        video/: vpx3220.ko videobuf-dma-sg.ko pms.ko
                bt856.ko upd64083.ko stradis.ko
                videobuf-core.ko tda9840.ko saa7191.ko
                cx2341x.ko wm8775.ko meye.ko
                w9968cf.ko tea5761.ko saa7185.ko
                tuner.ko tda8290.ko tuner-simple.ko
                zr364xx.ko ks0127.ko stv680.ko
                videobuf-dvb.ko tvaudio.ko tea6420.ko
                bt866.ko cafe_ccic.ko saa5246a.ko
                tuner-xc2028.ko msp3400.ko zr36016.ko
                tcm825x.ko wm8739.ko stkwebcam.ko
                dpc7146.ko saa5249.ko cpia_pp.ko
                mt20xx.ko tda7432.ko w9966.ko
                upd64031a.ko ir-kbd-i2c.ko ov511.ko
                tuner-3036.ko tea6415c.ko dabusb.ko
                bt819.ko tea5767.ko cpia_usb.ko
                videodev.ko zr36060.ko tda9875.ko
                adv7175.ko mxb.ko vivi.ko
                tda9887.ko cs53l32a.ko btcx-risc.ko
                se401.ko saa7110.ko saa7115.ko
                saa6588.ko saa7111.ko tvmixer.ko
                v4l2-common.ko saa7114.ko hexium_orion.ko
                hexium_gemini.ko tvp5150.ko vp27smpx.ko
                adv7170.ko videocodec.ko ov7670.ko
                saa7127.ko zr36067.ko m52790.ko
                v4l1-compat.ko videobuf-vmalloc.ko compat_ioctl32.ko
                v4l2-int-device.ko zr36050.ko c-qcam.ko
                tveeprom.ko cs5345.ko tuner-types.ko
                cpia.ko tlv320aic23b.ko bw-qcam.ko
        video/cx23885/: cx23885.ko
        video/usbvision/: usbvision.ko
        common/: saa7146_vv.ko ir-common.ko saa7146.ko
        video/em28xx/: em28xx-alsa.ko em28xx.ko
        video/pvrusb2/: pvrusb2.ko
        radio/: dsbr100.ko radio-maestro.ko radio-zoltrix.ko
                radio-terratec.ko radio-aimslab.ko radio-maxiradio.ko
                radio-gemtek.ko radio-trust.ko radio-sf16fmr2.ko
                radio-typhoon.ko radio-cadet.ko radio-aztech.ko
                radio-si470x.ko radio-sf16fmi.ko radio-rtrack2.ko
                radio-gemtek-pci.ko
        dvb/bt8xx/: dst_ca.ko dvb-bt8xx.ko bt878.ko
                dst.ko
        video/cx25840/: cx25840.ko
        dvb/ttusb-dec/: ttusbdecfe.ko ttusb_dec.ko
        dvb/ttusb-budget/: dvb-ttusb-budget.ko
        video/pwc/: pwc.ko
        video/saa7134/: saa6752hs.ko saa7134-empress.ko saa7134-alsa.ko
                saa7134-dvb.ko saa7134.ko
        video/ovcamchip/: ovcamchip.ko
        video/zc0301/: zc0301.ko
/sbin/depmod -a 2.6.22-14-rt
make[1]: Leaving directory `/usr/src/v4l-dvb/v4l'
sioux at sioux-desktop:/usr/src/v4l-dvb$

dmesg | grep saa

saa7134_alsa: disagrees about version of symbol snd_ctl_add
saa7134_alsa: Unknown symbol snd_ctl_add
saa7134_alsa: disagrees about version of symbol snd_pcm_new
saa7134_alsa: Unknown symbol snd_pcm_new
saa7134_alsa: disagrees about version of symbol snd_card_register
...



_______________________________________________________


Mauro Carvalho Chehab ha scritto:
>> Does anybody else have an idea what the reason might be?
>> The handling of kernel symbol versions is tricky, i have no idea
>> what sioux might have done wrong.
>> But the patch in question does not even touch the sound code...
>>     
>
> There are some distros that have .gz modules. Those aren't overridden by make install.
>
> The better procedure to generate a clean driver is to do:
> 	make distclean
> 	make rminstall
> 	make rmmod
> 	make
> 	make install
>
> If make rminstall still doesn't remove the old modules, you can always do:
> 	rm -rf /lib/modules/`uname -r`/kernel/drivers/media
>
> And then, reinstall again, with make install.
>
> Cheers,
> Mauro
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080412/8c6354d1/attachment-0001.htm 


More information about the linux-dvb mailing list