commit 9654640d0af8f2de40ff3807d3695109d3463f54 Merge: b5bf28c... 004c46b... Author: Linus Torvalds Date: Wed Feb 21 13:02:17 2007 -0800 Merge master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6: [CIFS] One line missing from previous commit [CIFS] mtime bounces from local to remote when cifs nocmtime i_flags overwritten [CIFS] fix &&/& typo in cifs_setattr() commit b5bf28cde894b3bb3bd25c13a7647020562f9ea0 Author: Linus Torvalds Date: Wed Feb 21 11:21:44 2007 -0800 Revert "e1000: fix shared interrupt warning message" This reverts commit d2ed16356ff4fb9de23fbc5e5d582ce580390106. As Thomas Gleixner reports: "e1000 is not working anymore. ifup fails permanentely. ADDRCONF(NETDEV_UP): eth0: link is not ready nothing else" The broken commit was identified with "git bisect". Auke Kok says: "I think we need to drop this now. The report that says that this *fixes* something might have been on regular interrupts only. I currently suspect that it breaks all MSI interrupts, which would make sense if I look a the code. Very bad indeed." Cc: Jesse Brandeburg Acked-by: Auke Kok Cc: Andrew Morton Cc: Jeff Garzik Signed-off-by: Linus Torvalds commit 5fc7e655a50b0a19229a6b4a8a5e23bfedf700a4 Author: Linus Torvalds Date: Wed Feb 21 11:18:26 2007 -0800 Fix bogus 'inline' in drivers/char/ip2/i2lib.c Not only was the function way too big to be inlined in the first place, it was used before it was even defined. Noted-by: Faik Uygur Cc: Jiri Slaby Signed-off-by: Linus Torvalds commit e695e10bc996d6f83df7d85f1011c8d00573f68b Merge: 3a5f10e... f6982d5... Author: Linus Torvalds Date: Wed Feb 21 11:10:30 2007 -0800 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (196 commits) V4L/DVB (5253): Qt1010: whitespace / 80 column cleanups V4L/DVB (5252): Qt1010: use ARRAY_SIZE macro when appropriate V4L/DVB (5251): Qt1010: fix compiler warning V4L/DVB (5249): Fix compiler warning in vivi.c V4L/DVB (5247): Stv0297: Enable BER/UNC counting V4L/DVB (5246): Budget-ci: IR handling fixups V4L/DVB (5245): Dvb-ttpci: use i2c gate ctrl from stv0297 frontend driver V4L/DVB (5244): Dvbdev: fix illegal re-usage of fileoperations struct V4L/DVB (5178): Avoid race when deregistering the IR control for dvb-usb V4L/DVB (5240): Qt1010: use i2c_gate_ctrl where appropriate V4L/DVB (5239): Whitespace / 80-column cleanups V4L/DVB (5238): Kconfig: qt1010 should be selected by gl861 and au6610 V4L/DVB (5237): Dvb: add new qt1010 tuner module V4L/DVB (5236): Initial support for Sigmatek DVB-110 DVB-T V4L/DVB (5235): Gl861: use parallel_ts V4L/DVB (5234): Gl861: remove unneeded declaration V4L/DVB (5233): Gl861: correct address of the bulk endpoint V4L/DVB (5232): Gl861: correct oops when loading module V4L/DVB (5231): Gl861: whitespace cleanups V4L/DVB (5230): Gl861: remove NULL entry from gl861_properties ... commit f6982d59480953a8f5a84c237a9dabff39f788ce Author: Michael Krufky Date: Tue Feb 13 18:26:26 2007 -0300 V4L/DVB (5253): Qt1010: whitespace / 80 column cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 47e76c5c7904b8bc2d4c08fbe531017b704a877d Author: Michael Krufky Date: Tue Feb 13 17:53:46 2007 -0300 V4L/DVB (5252): Qt1010: use ARRAY_SIZE macro when appropriate Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit b79ea694a919ebc107c90af61b5d22becb1b1324 Author: Marco Schluessler Date: Tue Feb 13 16:46:13 2007 -0300 V4L/DVB (5251): Qt1010: fix compiler warning In function 'qt1010_init': Signed-off-by: Marco Schluessler Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4acf26703e6cabceb6838ee9c4f75f765ad96915 Author: Marcel Siegert Date: Tue Feb 13 18:44:49 2007 -0300 V4L/DVB (5249): Fix compiler warning in vivi.c The result of copy_to_user was not used, so the compiler complained now a warning will be issued if copy_to_user fails. Signed-off-by: Marcel Siegert Signed-off-by: Mauro Carvalho Chehab commit 90e3bd4ba5563f2a6efbb46ce7e10845329dfffd Author: Hartmut Birr Date: Tue Feb 13 18:01:56 2007 -0300 V4L/DVB (5247): Stv0297: Enable BER/UNC counting Enable BER/UNC counting for the stv0297 frontend. The idea for this patch comes from stv0297_cs.c. Signed-off-by: Hartmut Birr Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 59327a4897a0395d6f0358574dbb113102b63769 Author: David Härdeman Date: Tue Feb 13 09:39:58 2007 -0300 V4L/DVB (5246): Budget-ci: IR handling fixups Commit 00c4cc67512ada1d195b8bf3ef1db1d6b3951605 Oliver Endriss changed the budget-ci driver to use interrupt mode for i2c transfers. This also meant that a new bunch of IR bytes that were previously lost are now received, which allowed me to better understand how the MSP430 chip works. Unfortunately it also means that the current driver gets some assumptions wrong and might generate double keypresses for one IR command. The attached patch fixes this by throwing away the repeat bytes and by associating the correct command and device bytes. Signed-off-by: David Härdeman Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 89e4d59f2c082be9472c4de4dafb832e01bfbe01 Author: Marco Schluessler Date: Tue Feb 13 09:31:07 2007 -0300 V4L/DVB (5245): Dvb-ttpci: use i2c gate ctrl from stv0297 frontend driver Use i2c gate ctrl from stv0297 frontend driver. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit b61901024776b25ce7b8edc31bb1757c7382a88e Author: Marcel Siegert Date: Tue Feb 13 09:46:55 2007 -0300 V4L/DVB (5244): Dvbdev: fix illegal re-usage of fileoperations struct Arjan van de Ven reported an illegal re-usage of the fileoperations struct if more than one dvb device (e.g. frontend) is present. This patch fixes this issue. It allocates a new fileoperations struct each time a device is registered and copies the default template fileops. Signed-off-by: Marcel Siegert Signed-off-by: Mauro Carvalho Chehab commit e1af498063007cee5d7ec5af1e0cf25c088d05c7 Author: Chris Rankin Date: Tue Feb 6 20:29:07 2007 -0300 V4L/DVB (5178): Avoid race when deregistering the IR control for dvb-usb The work item function is dvb_usb_read_remote_control(): INIT_WORK(&d->rc_query_work, dvb_usb_read_remote_control, d); and the last piece of work it does is: schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc_interval)); Hence you need to call "cancel_rearming_delayed_work()" and not "cancel_delayed_work()", correct? I certainly haven't seen this oops reoccur since I applied this patch. Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 705d41e5da674b449f900df97ad13ebe53e82b82 Author: Antti Palosaari Date: Sat Jan 27 16:41:35 2007 -0300 V4L/DVB (5240): Qt1010: use i2c_gate_ctrl where appropriate This patch adds calls to i2c_gate_ctrl in the qt1010 dvb tuner module, while removing the temporary hack in au6610 and gl861. Tested successfully against fi-Oulu frequencies with MSI Megasky 580 GL861 and Sigmatek DVB-110 AU6610. Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 38d0629fd80464247290450d8641890d6f94b6fa Author: Michael Krufky Date: Sun Jan 21 15:57:48 2007 -0300 V4L/DVB (5239): Whitespace / 80-column cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit d4130b18f7ae5adfe2fd5761e31803554d090aa9 Author: Michael Krufky Date: Sun Jan 21 15:56:46 2007 -0300 V4L/DVB (5238): Kconfig: qt1010 should be selected by gl861 and au6610 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4c7e3ea92da379c4f31500a65680862d8c898dee Author: Antti Palosaari Date: Sun Jan 21 15:56:10 2007 -0300 V4L/DVB (5237): Dvb: add new qt1010 tuner module gl861: (MSI Megasky) - hack for enable ZL10353 / QT1010 I2C gate - use new QT1010 module instead of old code au6610: (Sigmatek DVB-110) - hack for enable ZL10353 / QT1010 I2C gate - use new QT1010 module instead of old code Tested successfully with au6610 and gl861 devices against fi-Yllas frequencies. Now it locks perfectly with both devices. There is a "hack" to enable probable i2c gate in zl10535 demodulator. QT1010 doesn't respond to any i2c messages before we write 0x1a to demodulator register 0x62. In my understanding this should be fixed to demodulator code. Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 5decdd2729066c5c155d0f6e7fdf89b844fbfc27 Author: Antti Palosaari Date: Sun Nov 5 16:05:38 2006 -0300 V4L/DVB (5236): Initial support for Sigmatek DVB-110 DVB-T This patch adds driver for Sigmatek DVB-110 USB DVB-T stick. Stick has based on hardware of Qtuantek QT1010 tuner, Zarlink ZL10353 (Intel CE 6353) demodulator and Alcor Micro AU6610 DVB-T USB controller. HW is rather similar as used in MSI Megasky GL861. Currently, the driver works only in USB 2.0. In my understanding USB 1.1 is also supported by hw but I cannot test it due to lack of USB 1.1 port. Device supports only isochronous mode transfers. There is also eeprom in usb controller(at least in address range 0x80 - 0xbf) for storing data, eg. firmware. Anyway, firmware loading is not used / required by the device. There seems to be at least one unknown I2C device in address 0xa0, probably remote control or GPIO. Windows drivers reads registers from 0x00 to 0x07 from this unknown address. Driver is based on gl861 module. Tuner has a lot of problems to lock with megasky qt1010 module with this hardware with some broadcasting standards. Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4131fd4fd40aa22cfe61b4e7c78e640b9fcfcd8c Author: Carl Lundqvist Date: Mon Oct 9 12:49:17 2006 -0300 V4L/DVB (5235): Gl861: use parallel_ts - use parallel_ts - Now this driver works. - correct typo in MODULE_VERSION Signed-off-by: Carl Lundqvist Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 05eb2a8058ecd964f0560807a0ce582909a8c30e Author: Michael Krufky Date: Mon Oct 9 01:11:07 2006 -0300 V4L/DVB (5234): Gl861: remove unneeded declaration remove unneeded declaration of .generic_bulk_ctrl_endpoint generic_bulk_ctrl_endpoint isn't being used in this device, so this is not needed here. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 8c0b24c2d2f779040a8ec21de0422eeaf56395cc Author: Jan Nijs Date: Sat Oct 7 16:29:54 2006 -0300 V4L/DVB (5233): Gl861: correct address of the bulk endpoint The megasky 580 based on gl861 has three endpoints: - 0x81 BULK/ISOC IN MPEG2 TS - 0x83 INT IN remote control receiver - 0x02 BULK OUT bulk control endpoint It doesn't look like the bulk endpoint is used, but better to have the correct one in the config. Signed-off-by: Jan Nijs Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit b3b2b8b5746cfe5af181dc2ce7a0912b5b2c598a Author: Jan Nijs Date: Sat Oct 7 01:25:53 2006 -0300 V4L/DVB (5232): Gl861: correct oops when loading module This patch moves the DVB_USB_IS_AN_I2C_ADAPTER flag from the adapter properties to the device properties. Without this patch I get an OOPS when the gl861 driver tries to access any registers. Signed-off-by: Jan Nijs Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 1f78867bc8a05b6c0bc3f2cb1c5915c10e92369e Author: Michael Krufky Date: Tue Oct 3 17:21:13 2006 -0300 V4L/DVB (5231): Gl861: whitespace cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e465ea7ed16124e926ca4988317b1d2d31f41d6f Author: Michael Krufky Date: Tue Oct 3 17:20:37 2006 -0300 V4L/DVB (5230): Gl861: remove NULL entry from gl861_properties Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6ae7232084ffea750968320241a0276d2211d736 Author: Michael Krufky Date: Tue Oct 3 17:19:30 2006 -0300 V4L/DVB (5229): Gl861: use qt1010_tuner_attach function from qt1010.h The gl861_tuner_attach function is not specific to this device. This patch removes gl861_tuner_attach, and replaces it with qt1010_tuner_attach from the qt1010 header file. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 8bb36dc7b5c9f528541b8674f9417901129dae64 Author: Michael Krufky Date: Tue Oct 3 17:17:24 2006 -0300 V4L/DVB (5228): Gl861: remove unneeded "extern int" declaration Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 73b96c09f679dfaaf8f72b7789a277fc10618328 Author: Michael Krufky Date: Tue Oct 3 17:16:44 2006 -0300 V4L/DVB (5227): Gl861: hide disabled code from upstream patch system enclose disabled code inside an #if 0 block, instead of /* comments */ Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 05ec6cc88c901fa8755fc11e847c1d6a0e31f9c5 Author: Michael Krufky Date: Tue Oct 3 17:15:26 2006 -0300 V4L/DVB (5226): Gl861: fix driver_name Rename driver_name from "gl861" to "dvb_usb_gl861" Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 947af8fdcd034e567421bdc55ec446e24b519b7f Author: Michael Krufky Date: Tue Oct 3 17:14:07 2006 -0300 V4L/DVB (5225): Gl861: fix MODULE_AUTHOR The author's email address is already in the MODULE_AUTHOR field. This patch adds his name as well. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit a9bde1d88c49cd7ab4faae5110261046555dd7a3 Author: Michael Krufky Date: Tue Oct 3 17:12:55 2006 -0300 V4L/DVB (5224): Gl861: select DVB_ZL10353 if !DVB_FE_CUSTOMISE Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6f7880f0264457e80e456b512722c7a627883fda Author: Michael Krufky Date: Tue Oct 3 17:12:14 2006 -0300 V4L/DVB (5223): Rename USB_PID_MSI_MEGASKY55801 to USB_PID_MSI_MEGASKY580_55801 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit f0c3a2ca56c5c56ecfaf46c1b47851319e9655ac Author: Carl Lundqvist Date: Tue Oct 3 17:09:30 2006 -0300 V4L/DVB (5221): Dvb-usb: initial support for MSI Mega Sky 580 DVB-T based on GL861 This patch adds support for MSI Mega Sky 580 / GL861 DVB-T USB2.0 Except for the 2 lines added to zl10353.c, zl10353_reset_attach needs to be changed. If I read the code correctly setting parallel_ts will take care of the 3rd byte, but the 2nd byte needs to be 0x0b instead of 0x03 too. I guess these changes needs to be done only for this device, not sure how to do that. The zl10353 changes have been split apart from this patch, into the next patch, soon to follow. Signed-off-by: Carl Lundqvist Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6345f0f6428cc7a3f73b83624c6f97629a9fddd1 Author: Chris Pascoe Date: Sat Feb 10 10:19:16 2007 -0300 V4L/DVB (5218): Zl10353: register definitions update Update the descriptions of "discovered" registers on the zl10353, using the equivalaent mt352 register names. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit f7f57770dc610eddd678aec483263e7980327ee9 Author: Antti Palosaari Date: Sat Feb 10 10:19:11 2007 -0300 V4L/DVB (5217): Zl10353: Implement TRL nominal rate calculation Implement trl nominal rate calculation to Zarlink ZL10353 demod, based on calculation used in Zarlink MT352. This adds support for 6 and 8MHz bandwidth transponders. Signed-off-by: Antti Palosaari Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit 0a11bb865a88a7459855ab46f74091e6ca4a1a20 Author: Antti Palosaari Date: Sat Feb 10 10:19:08 2007 -0300 V4L/DVB (5216): Zl10353: add i2c_gate_ctrl support Implement I2C gate control for Megasky GL861 and SigmaTek AU6610 support. Signed-off-by: Chris Pascoe Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 67b60aad168cfdd40ffec12f14b93e2e68f7d486 Author: Chris Pascoe Date: Sat Feb 10 10:17:57 2007 -0300 V4L/DVB (5215): Experimental support for signal strength/BER/uncorrectable count After studying many hours worth of register dumps of MT352 and ZL10353 fed with identically damaged RF signals I have made an educated guess at which registers contain the AGC level, bit error rate and uncorrectable error count values. Implement the IOCTLs that return these values to userspace. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit 90060d32ca0a941b158994f78e60d0381871c84b Author: Mike Isely Date: Thu Feb 8 02:02:53 2007 -0300 V4L/DVB (5212): Pvrusb2: Be more forgiving about encoder firmware size The pvrusb2 driver previously rejected encoder firmware whose size was not a multiple of 8192. But this is a false check because it's possible to find cx23416 firmware whose size doesn't conform to this limit. So change the firmware loader implementation to be more forgiving of the image size. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 201779f5c4a4bd8503a38749dd371ecddb7928a5 Author: Mike Isely Date: Thu Feb 8 01:48:57 2007 -0300 V4L/DVB (5210): Pvrusb2: Fix printk format typo Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6591691b259f9487f374f35c0c310aa220f829c6 Author: akpm@linux-foundation.org Date: Thu Feb 8 14:36:57 2007 -0300 V4L/DVB (5209): Kthread api conversion for dvb_frontend and av7110 fix avoid double-up(), pointed out by Oliver. Signed-off-by: Andrew Morton Acked-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 8eec14295e03f9dfe2be7bb75c8004a5fa867cdb Author: Herbert Poetzl Date: Thu Feb 8 14:32:43 2007 -0300 V4L/DVB (5208): Kthread API conversion for dvb_frontend and av7110 dvb kernel_thread to kthread API port. It is running fine here, including module load/unload and software suspend (which doesn't work as expected with or without this patch :). I didn't convert the dvb_ca_en50221 as I do not have such an interface, but if the conversion process is fine with the v4l-dvb maintainers, it should not be a problem to send a patch for that too ... Acked-by: Oliver Endriss Signed-off-by: Herbert Poetzl Signed-off-by: Andrew Morton Acked-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 2a9f8b5d25beacd034369fca416b548cbf931561 Author: Thierry MERLE Date: Wed Feb 7 10:14:38 2007 -0300 V4L/DVB (5206): Usbvision: set alternate interface modification - usb alternate selection modified to get the biggest endpoint packet size. - fix sysfs get values for brightness/contrast/hue/saturation Signed-off-by: Thierry MERLE Signed-off-by: Mauro Carvalho Chehab commit 6f78e186fe5d29dbff5e34f950adb573c4808de4 Author: Thierry MERLE Date: Wed Feb 7 10:13:11 2007 -0300 V4L/DVB (5205): Usbvision: dynamic allocation for frames - fix decoder route output - dynamic frame buffer allocation Signed-off-by: Thierry MERLE Signed-off-by: Mauro Carvalho Chehab commit c65eeaab1f04d1113b5c4fb21f7f61ded795d2bb Author: Adrian Bunk Date: Tue Feb 6 21:53:31 2007 -0300 V4L/DVB (5200): V4l_printk_ioctl_arg() is no longer used. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit b1e7df1d3543906654b9e6443aee177c8009acac Author: Michael Schimek Date: Wed Feb 7 09:15:01 2007 -0300 V4L/DVB (5204): Change videodev2.h licence to dual GPL/BSD videodev2.h contains just the V4L2 API structs and defines. By allowing this header file to be dual GPL/BSD will enable sharing userspace apps between Linux and *BSD systems. It will also allow developing newer BSD licensed drivers that can be shared on Linux and *BSD. It should be noticed that most of the current V4L drivers, and v4l core itself are GPL only. This won't be changed by this patch. Signed-off-by: Michael H. Schimek Signed-off-by: Gerd Hoffmann Signed-off-by: Bill Dirks Signed-off-by: Hans Verkuil Signed-off-by: Martin Rubli Signed-off-by: Mauro Carvalho Chehab commit 0496daa7d88d117fab4dd190c7f6e7c4a5aa15cd Author: Ahmed S. Darwish Date: Wed Feb 14 22:57:42 2007 -0200 V4L/DVB (5202): DVB: Use ARRAY_SIZE macro when appropriate Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish Acked-by: Manu Abraham Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit fd4bc4455360ff0b6ff50ec8fa5673b4da18cbb6 Author: Richard Knutsson Date: Tue Feb 6 21:55:07 2007 -0300 V4L/DVB (5201): Radio/: Convert to generic boolean-values Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit db406b58551bc7de1e331e8ad1bc11ba1545ee8b Author: Adrian Bunk Date: Tue Feb 6 21:53:04 2007 -0300 V4L/DVB (5199): Cx88-video.c: remove struct radionorms This patch removes the unused struct radionorms. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 3198cf676c18edd2b04c7016d1873f6e797b3d9a Author: Jonathan Corbet Date: Tue Feb 6 21:52:36 2007 -0300 V4L/DVB (5198): Cafe_ccic.c fix warning Quiet a spurious gcc warning. Signed-off-by: Jonathan Corbet Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit e8be02a34a43c88a7666217b186e169a30f1609b Author: Richard Knutsson Date: Tue Feb 6 21:52:04 2007 -0300 V4L/DVB (5197): Convert to generic boolean-values Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 7a9ca4a3f99129c2316ee14273ded519630c573d Author: Andrew Morton Date: Tue Feb 6 21:51:14 2007 -0300 V4L/DVB (5196): VIDEO_BUF depends on PCI m68k allmodconfig: drivers/media/video/video-buf.c: In function 'videobuf_queue_pci': drivers/media/video/video-buf.c:396: error: 'pci_map_sg' undeclared (first use in this function) drivers/media/video/video-buf.c:396: error: (Each undeclared identifier is reported only once drivers/media/video/video-buf.c:396: error: for each function it appears in.) drivers/media/video/video-buf.c:399: error: 'pci_dma_sync_sg_for_cpu' undeclared (first use in this function) drivers/media/video/video-buf.c:401: error: 'pci_unmap_sg' undeclared (first use in this function) drivers/media/video/video-buf.c: In function 'videobuf_pci_dma_map': Acked-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 346304097b47a6e1376d99af80dbffb759fa55f4 Author: Adrian Bunk Date: Tue Feb 6 21:50:36 2007 -0300 V4L/DVB (5195): Frontends: make 4 functions static This patch makes four needlessly global functions static. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 48fc923b0e43bc11975d6302f3fcb173d2f50f19 Author: Robert P. J. Day Date: Tue Feb 6 21:46:54 2007 -0300 V4L/DVB (5193): Remove the unused kernel config option VIDEO_VIDEOBUF Signed-off-by: Robert P. J. Day Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 716a4e334efe75f8ac97ce5c475bb689158bf16b Author: Marco Schluessler Date: Sat Feb 3 14:47:14 2007 -0300 V4L/DVB (5189): Budget-av: Call saa7146_vv_release on exit Call saa7146_vv_release on exit. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 6c914490210cf7155a288b3c5c2fdd305692e298 Author: Oliver Endriss Date: Fri Feb 2 19:12:53 2007 -0300 V4L/DVB (5188): Add separate configuration data for subsystem 0x13c2:0x1012 Fixed problem reported by Teemu Suikki: After a device with subsystem 0x13c2:0x1012 has been installed, devices with subsystem id 0x13c2:0x1011 did not work anymore. Reason: The driver for 0x13c2:0x1012 modified shared configuration data. Fix: Use separate configuration data for those devices. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 32ec5332f987435d42371c1c47e310c9cc211cf7 Author: Ian Armstrong Date: Sat Feb 3 06:37:25 2007 -0300 V4L/DVB (5184): Add cx23415 decoder register documentation Many thanks to Ian Armstrong for figuring out what all these registers do. Signed-off-by: Ian Armstrong Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit faeb4ab38f6fec62d50a023e1778d13e73a0b088 Author: Hans Verkuil Date: Sat Feb 3 06:35:07 2007 -0300 V4L/DVB (5183): Fix CC handling in VIDIOC_INT_G_VBI_DATA When capturing a 60 Hz input the internal field ID is inverted. The VIDIOC_INT_G_VBI_DATA didn't take that into account and so returned XDS instead of CC and vice versa. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 2675f7a88f73bc3131b817c118fbffa5cfed8868 Author: Hans Verkuil Date: Sat Feb 3 03:23:44 2007 -0300 V4L/DVB (5182): Remove #if 0 section from videodev2.h Remove a section containing basically ideas for future sliced VBI standards. This can be resurrected should any of this be actually implemented. For now it only pollutes this header file. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 4f828ef7f360ecfba6b8d81c731a56b1c8d4bc07 Author: Hans Verkuil Date: Sat Feb 3 03:19:14 2007 -0300 V4L/DVB (5181): Sliced VBI API no longer marked experimental. The Sliced VBI API is no longer marked experimental. Introduced in 2.6.14 and with only a single modification in 2.6.19 I think we can consider this API to be solid. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit b7a01e723c9edaefcadb99d42c1409371c01dde1 Author: Hans Verkuil Date: Fri Feb 2 20:49:54 2007 -0300 V4L/DVB (5180): Fix cx2584x revision reporting. Revisions >= 23 were always reported as revision 23. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit fec1bc71a314507418e65bcd0f232b3b9f36f435 Author: Hans Verkuil Date: Fri Feb 2 20:42:02 2007 -0300 V4L/DVB (5179): Cx2341x encoder documentation update. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 201f5c9cafeb88cf0658300bd3bceb5c30d28430 Author: Mike Isely Date: Sun Jan 28 16:08:36 2007 -0300 V4L/DVB (5175): Pvrusb2: VIDIOC_DBG_[S|G]_REGISTER fixups Support 64 bit register IDs internally. Only allow root access to this API (for both set and get). Note that actual 64 bit access only becomes possible once the definition for v4l2_register is updated, but this change clears the way for it from the viewpoint of the pvrusb2 driver. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6fe7d2c4660174110c6872cacc4fc2acb6e00acf Author: Mike Isely Date: Sun Jan 28 15:42:56 2007 -0300 V4L/DVB (5174): Pvrusb2: video corruption fixes Tweak the encoder setup in order to stop it from corrupting the video data when there is a disruption in the data flow (e.g. a channel change). Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit c43000ef0c9f21fff090ff3b5428ac31a41dbc99 Author: Mike Isely Date: Sun Jan 28 15:41:12 2007 -0300 V4L/DVB (5173): Pvrusb2: encoder comm protocol cleanup Update the implementation of the communication protocol for operating the encoder, using updated knowledge about the encoder. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 567d7115b9ce8145c166e3368bf31fe613451f77 Author: Mike Isely Date: Sun Jan 28 15:38:55 2007 -0300 V4L/DVB (5172): Pvrusb2: Control protocol cleanup Several special-case FX2 commands were being issued through pvr2_write_u16() and pvr2_write_8(), but there's really nothing special case about them. These date from a very early time in the driver development. This patch removes these functions and replaces their use with calls to pvr2_send_request. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit edae96bd72155b88f8682c830c63338cd699d35c Author: Mike Isely Date: Mon Jan 22 02:18:54 2007 -0300 V4L/DVB (5170): Pvrusb2: Add boilerplate to new header file Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 8d3643637e18e6590969436734c22151805d0350 Author: Michael Krufky Date: Mon Jan 22 02:17:55 2007 -0300 V4L/DVB (5169): Pvrusb2: Use macro names for FX2 commands This is a maintainability cleanup; use nice names for all the FX2 commands instead of raw bytes. This way we can easily find where we issue FX commands. Signed-off-by: Michael Krufky Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 05ad390724d1f307111a322325df83282a1479e6 Author: Trent Piepho Date: Tue Jan 30 23:26:01 2007 -0300 V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings The out of tree v4l-dvb build system didn't always override the kernel's configuration settings with v4l-dvb's settings correctly. To work around this, makefiles would define some new macro based on the setting of a config variable. e.g. the pwc Makefile would define CONFIG_PWC_DEBUG if CONFIG_USB_PWC_DEBUG (which is defined via Kconfig) was set. The v4l-dvb build system should now always override correctly, and this is no longer necessary. This patch gets ride of these extra defines and just uses the CONFIG_* settings directly. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 6827709a6148a6e8530d90027b4f31aa0aaa5ae5 Author: Trent Piepho Date: Tue Jan 30 23:25:46 2007 -0300 V4L/DVB (5164): Compat: Handle input_register_device() change and some others input_register_device() was changed to return an error code instead of being void in 2.6.15. Handle it with a macro wrapper in config.h. For this to work, linux/input.h must be included before config.h. This required some trivial header re-ordering in budget-ci.c and ttusb_dec.c. In kernel 2.6.15-rc1 a helper function called setup_timer() was added to linux/timer.h. Add to compat.h, but require that linux/timer.h be included first to give the definition of struct timer_list. A new 4GB DMA zone, __GFP_DMA32, was added in 2.6.15-rc2. Alias it to __GFP_DMA on older kernels. Handle another 2.6.15 "input_dev->dev to input_dev->cdev.dev" change for some recently added code in cinergyT2.c. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 62d50addf0774115adaa9e01e09099c3d7daa13d Author: Trent Piepho Date: Tue Jan 30 23:25:41 2007 -0300 V4L/DVB (5163): Add checks for CAP_SYS_ADMIN to VIDIOC_DBG_G_REGISTER Before, root privileges were only needed to set hardware registers, not to read them. On some hardware, reading from the wrong place at the wrong time can hang the machine. So, to be consistent, root privileges are required to read registers on all hardware. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit e7b58f5259a81dbd9fbfea79408d272f44eb894f Author: Trent Piepho Date: Tue Jan 30 22:47:18 2007 -0300 V4L/DVB (5162): Change VIDIOC_DBG_[SG]_REGISTER ioctls' reg address to 64 bits Maybe someday there will be a device with a register address space > 32-bits, or maybe an i2c device which uses a protocol > 4 bytes long to address its registers. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit e19c55ffb984c2db28191d8aa4400bb81ecd756d Author: Marco Schluessler Date: Wed Jan 31 14:32:29 2007 -0300 V4L/DVB (5161): Dvb-ttpci: call saa7146_vv_release() on exit Call saa7146_vv_release() on exit. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 58af00456ac6b3158c99a3c6b3435c88d4f25a0e Author: Marco Schluessler Date: Wed Jan 31 14:27:55 2007 -0300 V4L/DVB (5160): Saa7146_vv: pass correct memory size to pci_free_consistent Pass correct memory size to pci_free_consistent. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 7857735b3a6695a90fa3c8808bf96385ac5a95dc Author: Oliver Endriss Date: Sat Jan 27 21:13:06 2007 -0300 V4L/DVB (5158): Dvb-ttpci: Fixed unregistering the vbi device Fixed unregistering the vbi device for cards without analog tuner. Thanks to Marco Schluessler for pointing out this bug. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 357a268d59411b84fde712400585dd118c61467f Author: Matthias Schwarzott Date: Wed Jan 24 20:49:58 2007 -0300 V4L/DVB (5157): Set phys, bustype, version, vendor and product for input device Add phys-string, bustype, version, vendor and product to help udev and others using EVIOCPHYS ioctl to identify the input device node. Code taken (with little changes) from budget-ci.c Signed-off-by: Matthias Schwarzott Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit feaba7a96dd02f2fc0d1fe5c2148d79444db0717 Author: Michael Schimek Date: Fri Jan 26 08:30:05 2007 -0300 V4L/DVB (5156): Fix: dma free is being called with wrong arguments Functions buffer_release() in bttv-driver.c and vbi_buffer_release() in bttv-vbi.c are ending with: bttv_dma_free(&fh->cap,fh->btv,buf); For vbi it seems to be wrong. Both functions should end with: bttv_dma_free(q,fh->btv,buf); Thanks to Peter Schlaf for pointing this. Signed-off-by: Michael H. Schimek Signed-off-by: Mauro Carvalho Chehab commit 712642b8e371687e24ec8e1d34114beab18e92ca Author: Mauro Carvalho Chehab Date: Fri Jan 26 07:33:07 2007 -0300 V4L/DVB (5155): Properly initialize mute and radio frequency Signed-off-by: Mauro Carvalho Chehab commit f1557cebc8c5714fd463ffeb5f424dc56dd61bdf Author: Mauro Carvalho Chehab Date: Fri Jan 26 07:23:44 2007 -0300 V4L/DVB (5154): Add some debug info, depending on debug level With debug>0, it will show mute/unmute and set frequency events with debug>=4, it will show get frequency events Also, some kernel CodingStyle fixes were done. Signed-off-by: Mauro Carvalho Chehab commit b61f8d695c02dbcd3391b3409eafcf182451f10f Author: Mauro Carvalho Chehab Date: Fri Jan 26 07:07:12 2007 -0300 V4L/DVB (5153): Make it coherent with vidioc_g_tuner Signed-off-by: Mauro Carvalho Chehab commit a0c05ab9762560cf12733181d19b6529bb7231d2 Author: Mauro Carvalho Chehab Date: Thu Jan 25 16:48:13 2007 -0300 V4L/DVB (5152): Implements VIDIOC_[S|G]_INPUT on radio-aztech/radio-maxiradio fmtools use VIDIOCSTUNER, with, in turn, calls VIDIOC_S_INPUT on v4l1-compat. So, those ioctls are required for V4L1 to work properly. Signed-off-by: Mauro Carvalho Chehab commit 676b0ac7aa409d326d92ca46c65bba20bebb3c1c Author: Mauro Carvalho Chehab Date: Thu Jan 25 15:10:31 2007 -0300 V4L/DVB (5151): Implement VIDIOC_[GS]_AUDIO on aztech v4l1-compat requires those two ioctls to translate VIDIOC[SG]RADIO into V4L2 calls. Signed-off-by: Mauro Carvalho Chehab commit 140dcc46ede8dcd9032bbe0ce52eb4df104a1ab0 Author: Mauro Carvalho Chehab Date: Thu Jan 25 15:00:45 2007 -0300 V4L/DVB (5150): Implement VIDIOC_[GS]_AUDIO on maxiradio v4l1-compat requires those two ioctls to translate VIDIOC[SG]RADIO into V4L2 calls. Signed-off-by: Mauro Carvalho Chehab commit 06470ed612cf2bf99bf05d57259d0a65a5481df5 Author: Mauro Carvalho Chehab Date: Thu Jan 25 09:04:34 2007 -0300 V4L/DVB (5149): Convert radio-maxiradio to use video_ioctl2 Signed-off-by: Mauro Carvalho Chehab commit 99218fe478e2ca6d5ee660a655690ab6496e6ab5 Author: Mauro Carvalho Chehab Date: Thu Jan 25 08:09:32 2007 -0300 V4L/DVB (5148): Convert radio-aztech to use video_ioctl2 Signed-off-by: Mauro Carvalho Chehab commit b50e7fe99317c05b0bb8ba6338bc6aa7da3b918e Author: Mauro Carvalho Chehab Date: Thu Jan 25 05:00:01 2007 -0300 V4L/DVB (5147): Make vivi driver to use vmalloced pointers Before this patch, vivi were simulating a scatter gather DMA transfer. While this is academic, showing how stuff really works on a real PCI device, this means a non-optimized code. There are only two memory models that vivi implements: 1) kernel alloced memory. This is also used by read() method. On this case, a vmalloc32 buffer is allocated at kernel; 2) userspace allocated memory. This is used by most userspace apps. video-buf will store this pointer. a simple copy_to_user is enough to transfer data. The third memory model scenario supported by video-buf is overlay mode. This model is not implemented on vivi and unlikely to be implemented on newer drivers, since now, most userspace apps do some post-processing (like de-interlacing). After this patch, some cleanups may be done at video-buf.c to avoid allocating pages, when the driver doesn't need a PCI buffer. This is the case of vivi and usb drivers. Signed-off-by: Mauro Carvalho Chehab commit 52ebc763d8e0c9f2ab48af89a75e90e2318bac86 Author: Trent Piepho Date: Tue Jan 23 22:38:13 2007 -0300 V4L/DVB (5146): Make VIDIOC_INT_[SG]_REGISTER ioctls no longer internal only The direct register access ioctls were defined as kernel internal only, but they are very useful for debugging hardware from userspace and are used as such. Officially export them. VIDIOC_INT_[SG]_REGISTER is renamed to VIDIOC_DBG_[SG]_REGISTER Definition of ioctl and struct v4l2_register is moved from v4l2-common.h to videodev2.h. Types used in struct v4l2_register are changed to the userspace exportable versions (u32 -> __u32, etc). Use of VIDIOC_DBG_S_REGISTER requires CAP_SYS_ADMIN permission, so move the check into the video_ioctl2() dispatcher so it doesn't need to be duplicated in each driver's call-back function. CAP_SYS_ADMIN check is added to pvrusb2 (which doesn't use video_ioctl2). Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit dbbff48f39263f7e5c96a55624da87879de2bf71 Author: Trent Piepho Date: Mon Jan 22 23:31:53 2007 -0300 V4L/DVB (5144): Restore VIDIOC_INT_[SG]_REGISTER calls Add support for these ioctls to the video_ioctl2 system and the cx88 driver. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 758117c25b65ed5fa502c13f3cdf040a8f954161 Author: Michael Krufky Date: Tue Jan 23 15:34:10 2007 -0300 V4L/DVB (5142): M920x: move filter caps from device caps to adapter caps Move filter caps from device caps to adapter caps for the megasky driver. This fixes usb1.1 operation. Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e16c1f55642d79a80c45ace7603b284975559e78 Author: Michael Krufky Date: Tue Jan 23 15:00:42 2007 -0300 V4L/DVB (5141): M920x: group tuner / demod callback functions together Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit fa94805d0316e7706d2ce0273a9c58688482c9f6 Author: Michael Krufky Date: Sun Jan 21 15:57:48 2007 -0300 V4L/DVB (5140): Whitespace / 80-column cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 84ad7574f69b971565061663be2b0a9ade5b8ca7 Author: Aapo Tahkola Date: Sun Jan 21 15:57:20 2007 -0300 V4L/DVB (5139): M920x: Fix tuner identification bug with qt1010 module Fixes qt1010 identification bug with megasky caused by the Quantek QT1010 tuner module patch. Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 816172f8b944a98716f4b5fda801b7744cb91624 Author: Michael Krufky Date: Sun Jan 21 15:56:46 2007 -0300 V4L/DVB (5138): Kconfig: qt1010 should be selected by m920x Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit cbdc80ed8f59e204c031b52ea7e44f419029f75b Author: Antti Palosaari Date: Sun Jan 21 15:56:10 2007 -0300 V4L/DVB (5137): Dvb: add new qt1010 tuner module QT1010: - old qt1010-code totally rewritten and put in own kernel module - same enhancements as my earlier QT1010 125kHz patch - tuner initialization - register 1f calculation - register 20 calculation - register 25 calculation m920x: (MSI Megasky) - use new QT1010 module instead of old code Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 1f61f3bab303c02cfd822c952284a381089452a0 Author: Michael Krufky Date: Sat Oct 7 15:03:04 2006 -0300 V4L/DVB (5136): M920x: correct oops when loading module move .caps from the adapter properties to the device properties. Thanks to Martin Schwier for confirming this fix. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 565ef12713c5620b6f802d67861153a3f68499a4 Author: Jan Nijs Date: Sat Oct 7 01:06:54 2006 -0300 V4L/DVB (5135): Qt1010: correct hardlockup when an app access the DVB dongle This patch changes qt1010.h to use dvb_usb_device struct instead of a dvb_usb_adapter for accessing the private area of the driver. Without this patch my PC hard locks when an application tries to access the DVB tuner. Signed-off-by: Jan Nijs Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e2d79439c2253571e4d32fe959663b5615d89907 Author: Michael Krufky Date: Tue Oct 3 16:46:33 2006 -0300 V4L/DVB (5134): M920x: fix build in hg tree / other trivial fixes - removed extra newline - removed NULL entry - fixed versions.txt Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6cf2a10180e4039aaad1e4ecba5f2520f157da40 Author: Michael Krufky Date: Thu Sep 28 14:47:21 2006 -0300 V4L/DVB (5133): M920x: move qt1010_tuner_attach function into qt1010.h The megasky_tuner_attach function is not specific to this device. This patch renames it to qt1010_tuner_attach and moves it into the qt1010 header file. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 94a47dc4335a614eba30cf29aa3a953040625c92 Author: Patrick Boettcher Date: Thu Sep 28 13:48:03 2006 -0300 V4L/DVB (5132): M920x: more trivial cleanups - Removed some needless brances - Removed an unneeded check for adapter[0] - Removed unneeded declaration of .generic_bulk_ctrl_endpoint = 0x01 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 26f48eaa9e57a3436fc049f30241256dda002de5 Author: Michael Krufky Date: Thu Sep 28 01:46:49 2006 -0300 V4L/DVB (5131): M920x: more cleanups Some cleanups and suggestions from Patrick Boettcher. Dropped the mutex in m9206_rc_query using #if 0, because M9206_CORE, M9206_I2C, M9206_FILTER and M9206_FW can be accessed concurrently. Thanks to both Aapo Tahkola and Patrick Boettcher. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e2adbecf72d54515b66f8631813ec49069669d5e Author: Aapo Tahkola Date: Thu Sep 28 00:47:51 2006 -0300 V4L/DVB (5130): M920x: misc updates and fixes - hardware pid filtering no longer enabled unless in usb 1.x mode - more responsive rc handling - some minor bug fixes and code refolding - m9206_write delay dropped (doesn't seem to be needed) Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 017cf012570c955c3e1ff025802d7cb46fd1d37b Author: Michael Krufky Date: Sat Sep 23 20:40:20 2006 -0300 V4L/DVB (5129): M920x: break out qt1010 tuner code into a separate file qt1010 is a tuner used in some other devices, so this code should be put into a separate file so that it could be reused by other drivers. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 2a2bfa7d61b29170b7f9bbf42712a77229e6b935 Author: Michael Krufky Date: Sat Sep 23 20:13:12 2006 -0300 V4L/DVB (5128): M920x: trivial cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 01cb34dba930accdb9356247bbe64b1c5393c5d5 Author: Michael Krufky Date: Sat Sep 23 20:01:29 2006 -0300 V4L/DVB (5127): M920x: update megasky driver for recent changes in the dvb tree update code to use dvb_attach() update code to reflect recent changes to the dvb_usb framework Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit baa2ed09000de94c02e4b6690a6097314d282928 Author: Michael Krufky Date: Sat Sep 23 20:01:29 2006 -0300 V4L/DVB (5126): M920x: cleanups after rename from megasky.[ch] Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 2aef7d0fa0e35a3a26733bef147196c2926bd228 Author: Michael Krufky Date: Sat Sep 23 20:00:42 2006 -0300 V4L/DVB (5125): Dvb-usb: rename megasky.[ch] to m920x.[ch] Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 5fecd9fd4287dd163fe1f1f0b1e86e931ed589c4 Author: Aapo Tahkola Date: Sat Sep 23 20:00:41 2006 -0300 V4L/DVB (5124): Dvb-usb: Initial support for MSI Mega Sky 580 based on Uli m9206 Currently, the driver works in bulk mode supporting both USB 2.0 and 1.0 with and without hardware pid filters. The ULi m9205 also supports isochronous transfer mode, but I have dropped support for it because it depends on firmware and does not work on all USB host chips. Further, I have no firmware with remote controller support for this mode. Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit ef7b8b725bdc59fb4a3f781f3e9f546ad01da792 Author: Tino Keitel Date: Mon Jan 22 18:33:07 2007 -0300 V4L/DVB (5121): Proper vendor/device ID for the CinergyT2 input device I noticed that udev does not create a symlink for the CinergyT2 remote input device in /dev/input/by-id, which is required if I want to have a unique device name for lircd. The attached patch tries to achive this. However, udev still omits the input device for /dev/input/by-id symlinks. I think something is still not reported correctly. Signed-off-by: Tino Keitel Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit a63ad325c337ba634824cefe54f7ac52ee554b72 Author: Hans Verkuil Date: Mon Jan 22 18:27:47 2007 -0300 V4L/DVB (5119): Various cx2341x documentation updates/fixes. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 5cc1dd8c3d8f80dbdce4d2e981a5e452af4b4529 Author: Mauro Carvalho Chehab Date: Sun Jan 21 22:02:58 2007 -0300 V4L/DVB (5117): Fix: VIDIOC_G_TUNER were returning an endless number of tuners pvrusb2 have only one tuner inside. However, as it were not handling index, a call to v4l-info were returning as if it were an infinite number of tuners: $ v4l-info|grep VIDIOC_G_TUNER |head -5 VIDIOC_G_TUNER(0) VIDIOC_G_TUNER(1) VIDIOC_G_TUNER(2) VIDIOC_G_TUNER(3) VIDIOC_G_TUNER(4) Acked-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 69b04f0dc1c489899b610cb44209da9d728b248f Author: Mauro Carvalho Chehab Date: Sun Jan 21 22:02:35 2007 -0300 V4L/DVB (5116): Remove some warnings when compiling on x86_64 pvrusb2-encoder.c: In function 'pvr2_encoder_cmd': pvrusb2-encoder.c:195: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' pvrusb2-encoder.c:205: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' pvrusb2-encoder.c: In function 'pvr2_encoder_vcmd': pvrusb2-encoder.c:303: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' Acked-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 05eda24968a6bb7082b632769bd72126f85485a6 Author: Heiko Baums Date: Sun Jan 21 05:58:19 2007 -0300 V4L/DVB (5114): Cx88: Add support for svideo/composite input of the Terratec Cinergy 1400 DVB-T Adds support for the combined S-Video/Composite input of the Terratec Cinergy 1400 DVB-T. Signed-off-by: Heiko Baums Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4cbca185e9adf3d48205b60bf196ebb9882af043 Author: Marco Schluessler Date: Sun Jan 21 19:43:38 2007 -0300 V4L/DVB (5113): Adds video output routing Nexus CA needs to use a different routing on saa7115 module. Signed-off-by: Marco Schluessler Signed-off-by: Mauro Carvalho Chehab commit 9de271e66d1172e7fa68ba0a7ecec2f9fb8d78c1 Author: Michael Krufky Date: Tue Jan 16 18:36:40 2007 -0300 V4L/DVB (5111): Saa7134: add support for Terratec Cinergy HT PCI Add support for Terratec Cinergy HT PCI Signed-off-by: Giorgio Moscardi Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit a4b662f736c7919207da113814c35cad340c67fd Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:41 2007 -0300 V4L/DVB (5110): Keep the previous tvnorm default for cx88 and cx88-blackbird The video_ioctl2 conversion replaced the default from NTSC to PAL_BG. This broke cx88-blackbird. Probably, there are some badness at this driver, not doing all required stuff to change video standard. Signed-off-by: Mauro Carvalho Chehab commit b3c4ee7016ad9d4c51887591b8a62c05f59cc498 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:38 2007 -0300 V4L/DVB (5109): Convert cx88-blackbird to use video_ioctl2 This patch finishes cx88-blackbird conversion to use video_ioctl2. Video standards are generated automatically inside videodev.c. the big ioctl parser is removed, using, instead, video_ioctl2. Signed-off-by: Mauro Carvalho Chehab commit 7730bef9c5eaaecc3f441cd389ae189b17759117 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:35 2007 -0300 V4L/DVB (5108): Remove_cx88_ioctl cx88_ioctl were merged at the master ioctl handler on cx88-blackbird Signed-off-by: Mauro Carvalho Chehab commit 84f1b6783a8f7057f3d7a5388c5f3f4a8bce7b0b Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:32 2007 -0300 V4L/DVB (5107): Use cx88_set_freq() on cx88-blackbird.c Signed-off-by: Mauro Carvalho Chehab commit 1571720c5ecfb9b5f27aff0678e3bef0cb1821ca Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:29 2007 -0300 V4L/DVB (5106): Do some cleanups at cx88-blackbird Signed-off-by: Mauro Carvalho Chehab commit 23154f2f3b8c3c7c58548c518f28195b0d0a6c64 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:22 2007 -0300 V4L/DVB (5105): Reorder some ioctl handlers Reorder some ioctl handlers to make easy to convert to video_ioctl2 Signed-off-by: Mauro Carvalho Chehab commit ed10b06d8da204ce5f8d1b5b1a9d4df6565847c9 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:39 2007 -0300 V4L/DVB (5104): Moved several stuff that were at cx88-video to cx88-blackbird.c cx88-blackbird were using some ioctl handling that were previously on cx88-video. Signed-off-by: Mauro Carvalho Chehab commit 243d8c0fd03c77051d0f6a634cbadb7bbe28a58a Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:36 2007 -0300 V4L/DVB (5103): Fix vidioc_g_tuner handling Signed-off-by: Mauro Carvalho Chehab commit 63ab1bdc3b98b804f69bd345b1e3a491804c12de Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:33 2007 -0300 V4L/DVB (5102): make videodev to auto-generate standards v4l2_tvnorm were meant to describe video standards and its names to V4L2 API. However, this were doing by some static structures at the driver. This patch changes the internals in a way that, at the driver, only a v4l2_tvnorm (a 64 bit integer) should be filled, with all supported tvnorms. videodev will dynamically generate the proper API array based on supported standards. Signed-off-by: Mauro Carvalho Chehab commit e90311a198e21902cda4fd4cac8e09bc6ce52603 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:29 2007 -0300 V4L/DVB (5101): Renamed video_mux to cx88_video_mux video_mux is renamed to cx88_video_mux to be exported to cx88-blackbird Signed-off-by: Mauro Carvalho Chehab commit 54da49f5a4c739cf8de7838e049d0f9f548008d8 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:26 2007 -0300 V4L/DVB (5100): Make cx88-blackbird to work again Signed-off-by: Mauro Carvalho Chehab commit c526ab91a24b79cf57b8bff2fa69db0b5f4df290 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:23 2007 -0300 V4L/DVB (5099): Uncommented NTSC/443 video standard Signed-off-by: Mauro Carvalho Chehab commit 1427f6b6b96e573c0c8eb905dca9032f442a44cf Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:20 2007 -0300 V4L/DVB (5098): Added support for V4L2_STD_NTSC_443 Signed-off-by: Mauro Carvalho Chehab commit 8d87cb9f31930c7ac25d03043fa90cbd5313fe26 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:17 2007 -0300 V4L/DVB (5097): Convert cx8800 driver to video_ioctl2 handler video_ioctl2 handler provides V4L2 API parsing. Using it makes the driver simpler, and isolates API parsing. This allows future reusage of driver controls using other ways, like sysfs and/or procfs and increases isolation of driver-specific handling from the generic common ioctl processing. Signed-off-by: Mauro Carvalho Chehab commit fd69496461050296fb0fdd9acf6d789d27a0ef44 Author: Pantelis Koukousoulas Date: Sat Jan 20 01:59:54 2007 -0300 V4L/DVB (5095): Pvrusb2: Allow VIDIOC_S_FMT with -1 for resolution values With the previous patch, mplayer started but was polling the video device forever without any video actually coming out. Further analysis showed that it does a VIDIOC_S_FMT with width and height set to -1 (!!!). The code handling this only cares that both are lower than the minimum range allowed so it ends up setting the size to 19x17 (!!) This pretty much breaks the encoder here. Even if this breakage is yet another (TM) result of my setup, setting the size to 19x17 by default would surprise most users IMHO. So, special case for -1 and interpret this to be a request for the default size, please. Users can then set their favorite size both through mplayer and through sysfs. With this patch, mplayer finally works in pvr:// mode (not that we really gain anything over operating it through sysfs with lirc, sometime I might actually get off my lazy a** and contribute this setup too) Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 848ed3ca2a4eb85d6c6bde2a1b254b1f4c658e02 Author: Pantelis Koukousoulas Date: Sat Jan 20 01:57:36 2007 -0300 V4L/DVB (5094): Pvrusb2: Introduce fake audio input selection This should allow mplayer pvr:// to start. The trick is that no matter what actual input we use under this "fake" one, it will be able to do stereo :-) Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 606cf9caeb3b908426757924bfdce85cb854aa81 Author: Mike Isely Date: Sat Jan 20 01:56:04 2007 -0300 V4L/DVB (5093): Pvrusb2: Emit VIDIOC_S_TUNER correctly Audio mode changes are not private to the audio chip - other I2C modules need to see this as well. And since the command in question is VIDIOC_S_TUNER which is a standard v4l2 command, we really should be broadcasting it out. This change sets up a broadcast pathway for VIDIOC_S_TUNER and also eliminates the now redundant code from the audio chip handler. This fix enables stereo reception for the FM radio Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 27c7b710a4010e10b14500c0b27bb4c2a806de1b Author: Mike Isely Date: Sat Jan 20 00:39:17 2007 -0300 V4L/DVB (5092): Pvrusb2: Use ARRAY_SIZE wherever possible Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit ca545f7c39476c6c4c6e639452180a2b38342669 Author: Mike Isely Date: Sat Jan 20 00:37:11 2007 -0300 V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit eca8ebfc11d1935a7dd4c59cb8defb5bdff44ecd Author: Ahmed S. Darwish Date: Sat Jan 20 00:35:03 2007 -0300 V4L/DVB (5090): Pvrusb2: A patch to use ARRAY_SIZE macro when appropriate Signed-off-by: Ahmed S. Darwish Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit c1c2680d922cd36338cf3efaf4ce0067c3e26eb1 Author: Mike Isely Date: Sat Jan 20 00:30:23 2007 -0300 V4L/DVB (5089): Pvrusb2: V4L EXT_CTRLS fixup Attempts to enumerate or operate on a group of EXT_CTRLS where the group size is zero is OK; don't fail on such operations. At least one application uses this to probe for the existence of this API so let it succeed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit af75453860569b6110fbf43c7113f52f698d37a3 Author: Mike Isely Date: Sat Jan 20 00:28:15 2007 -0300 V4L/DVB (5088): Pvrusb2: Minor dead code / comment cleanups Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 293b5d94ebf1e591a6672d0c34d4559e935cd2dc Author: Mike Isely Date: Sat Jan 20 00:27:01 2007 -0300 V4L/DVB (5087): Pvrusb2: Fix sizeof() calculation foul-up This bug caused uninitalized data to be returned during a G_TUNER status poll. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 11fc76c9a8b24984d5ff701bc1f77940e04d5077 Author: Mike Isely Date: Sat Jan 20 00:24:52 2007 -0300 V4L/DVB (5086): Pvrusb2: Fix missing break statement on VIDIOC_S_TUNER The lack of a break statement in the handling of VIDIOC_S_TUNER caused errors to result. Fixed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 8433544ea9ebc4227bb5aaaf361b0a1879964f7d Author: Mike Isely Date: Sat Jan 20 00:22:28 2007 -0300 V4L/DVB (5085): Pvrusb2: trace print added Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 644afdb9cc05107f3090817b6d00e90daa9a034b Author: Mike Isely Date: Sat Jan 20 00:19:23 2007 -0300 V4L/DVB (5084): Pvrusb2: Stop hardcoding frequency ranges Rather than hardcoding frequency ranges everywhere, rely on VIDIOC_G_TUNER results wherever we can. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 7c74e57e6fb2ce986134e74634aeb78b3ea41a97 Author: Mike Isely Date: Sat Jan 20 00:15:41 2007 -0300 V4L/DVB (5083): Pvrusb2: Remove automodeswitch control The automodeswitch control was a feature that enable automatic radio / tv switching based on the selected frequency. However since frequency ranges can overlap and also since apparently in some cases it's possible for the same frequency range to be both tv and radio in a specific region, then this feature can't safely work. So it's removed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit fe23a2809d1f88887f7df7da38652826933b8ce6 Author: Mike Isely Date: Sat Jan 20 00:10:55 2007 -0300 V4L/DVB (5082): Pvrusb2: Slight debug printing efficiency fixup Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 18103c57b0168ebc0401702d483fe131f0aecc7a Author: Mike Isely Date: Sat Jan 20 00:09:47 2007 -0300 V4L/DVB (5081): Pvrusb2: VIDIOC_G_TUNER cleanup Clean up use of VIDIOC_G_TUNER; we now correctly gather info from all the I2C client modules. Also abide by V4L2_TUNER_CAP_LOW appropriately. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit af78a48b69231e129db0e1db24053da22f8eed6d Author: Mike Isely Date: Sat Jan 20 00:04:31 2007 -0300 V4L/DVB (5080): Pvrusb2: Allow streaming from /dev/radioX Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 4b85dee6a05dd963a13bd1230fafc060bf45ae45 Author: Mike Isely Date: Sat Jan 20 00:03:32 2007 -0300 V4L/DVB (5079): Pvrusb2: Use kzalloc instead of kmalloc+memset pairs Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6710fb868b289d21139bd68262388e0ea34601eb Author: Mike Isely Date: Sat Jan 20 00:02:26 2007 -0300 V4L/DVB (5078): Pvrusb2: It's safe to kfree() a null pointer Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit e5bd0260e7d3d806e66c12859f50733dca43bbcf Author: Michael Schimek Date: Thu Jan 18 16:17:39 2007 -0300 V4L/DVB (5077): Bttv cropping support Adds the missing VIDIOC_CROPCAP, G_CROP and S_CROP ioctls, permitting applications to capture or overlay a subsection of the picture or to extend the capture window beyond active video, into the VBI area and the horizontal blanking. VBI capturing can start and end on any line, including the picture area, and apps can capture different lines of each field and single fields. For compatibility with existing applications, the open() function resets the cropping and VBI capturing parameters and a VIDIOC_S_CROP call is necessary to actually enable cropping. Regrettably in PAL-M, PAL-N, PAL-Nc and NTSC-JP mode the maximum image width will increase from 640 and 768 to 747 and 923 pixels respectively. Like the VBI changes however, this should only affect applications which depend on former driver limitations, such as never getting more than 640 pixels regardless of the requested width. Also, new freedoms require additional checks for conflicts and some applications may not expect an EBUSY error from the VIDIOC_QBUF and VIDIOCMCAPTURE ioctls. These errors should be rare though. So far, the patch has been tested on a UP machine with a bt878 in PAL- BGHI and NTSC-M mode using xawtv, tvtime, mplayer/mencoder, zapping/ libzvbi and these tools: http://zapping.sf.net/bttv-crop-test.tar.bz2 I'd be grateful about comments or bug reports. Signed-off-by: Michael H. Schimek Signed-off-by: Mauro Carvalho Chehab commit 13071f0a58f285eee81f63c917078bb2a48cf51e Author: Alexey Dobriyan Date: Sun Jan 14 15:29:42 2007 -0300 V4L/DVB (5076): Cpia.c: buffer overflow If assigned minor is 10 or greater, terminator will be put beyound the end. Signed-off-by: Alexey Dobriyan Signed-off-by: Mauro Carvalho Chehab commit c74e0062684bc034a003289e2e2023f0e9ff747c Author: Mike Isely Date: Sat Dec 30 18:31:22 2006 -0300 V4L/DVB (5059): Pvrusb2: Be smarter about mode restoration Switch back to the previous input selection when the radio device is closed - but only do that if the current input selection is still the radio (i.e. it appears that it hasn't been messed with). Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit cdef8bd8c6ab69407afaf78226cc9861f916c83d Author: Mike Isely Date: Sat Dec 30 18:30:12 2006 -0300 V4L/DVB (5058): Pvrusb2: bug fix involving switch into radio mode When the input is switched by opening /dev/radioX, we must also commit that change into the driver core. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 16eb40d37d5dd4dba85245899388d2d44eb0bc2a Author: Mike Isely Date: Sat Dec 30 18:27:32 2006 -0300 V4L/DVB (5057): Pvrusb2: Stream configuration cleanups Clean up and tighten logic involving stream configuration. This mainly involves changes to pvrusb2-v4l2.c, where we better clarify how we use the stream configuration enum and implement a cleaner means to control streaming for a given device node. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit f13ed249ed8b880fe5497aaa05999bff8328a973 Author: Mike Isely Date: Sat Dec 30 18:24:35 2006 -0300 V4L/DVB (5056): Pvrusb2: Fix cut/paste bug in auto_mode_switch control Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 7a4a3770dd37a7c87a2a8a7b8e7387527cdb34e7 Author: Mike Isely Date: Wed Dec 27 23:40:59 2006 -0300 V4L/DVB (5054): Pvrusb2: cosmetic comment tweak Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 139eecf94cf5ab1f9749874cd362db5bff7dc09c Author: Mike Isely Date: Wed Dec 27 23:36:33 2006 -0300 V4L/DVB (5053): Pvrusb2: Change default volume to something sane The default volume of 65535 is too high. Make is something smaller. Note that this _only_ changes the default value. Specifically, there are no scaling or other more intrusive changes here. I'm just sick of constantly having to reduce the volume every time I plug in and test the device! (And unfortunately we can't do a better fix like scaling the volume so that 65535 makes sense because doing so will screw up any app - like MythTV - which expects the old scaling.) Too bad V4L controls don't have better defined ranges. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 62f5fdace7774a45e75e4d651237e7e1e8f05327 Author: Mike Isely Date: Wed Dec 27 23:33:00 2006 -0300 V4L/DVB (5052): Pvrusb2: Remove stream claiming hack from /dev/radio Trying to temporarily check that the stream is not claimed during open of the radio device is at best a race condition. What's to stop another app from claiming the stream anyway the instant after the check is done? The implementation for this was dicey anyway. So it's removed. The only "price" for this is that if /dev/radioX is opened while streaming video, then the video stream is just going to switch to radio mode anyway. If a user does this, he gets what he expects... Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 1bde02891b3d4d17ee743584bb49ed5f275dff01 Author: Mike Isely Date: Wed Dec 27 23:30:13 2006 -0300 V4L/DVB (5051): Pvrusb2: Better radio versus tv frequency handling Separate track radio versus tv frequency so that when we switch modes we can also switch to a sane frequency appropriate for the mode. Also implement logic to automate mode switching in certain cases. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 5549f54f46c2375761f42cd2741364316e3b2a13 Author: Mike Isely Date: Wed Dec 27 23:28:54 2006 -0300 V4L/DVB (5050): Pvrusb2: Newer frequency range checking Implement new method for doing integer range checking, so that we can more intelligently range-check radio and tv ranges at once. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 2083230084cee50580ee730cd26669704f7939b9 Author: Mike Isely Date: Wed Dec 27 23:26:55 2006 -0300 V4L/DVB (5049): Pvrusb2: Enable radio mode for 24xxx devices These changes implement correct audio routing for radio mode on a 24xxx device. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit c0e69315edd1d6901a021b85e0eea397444df702 Author: Mike Isely Date: Wed Dec 27 23:25:06 2006 -0300 V4L/DVB (5048): Pvrusb2: v4l2 API implementation frequency tweaks Report and set correctly converted frequency to/from a V4L2 app. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit f1382122ab49a7f01fa107608eaf664b12055b8b Author: Mike Isely Date: Wed Dec 27 23:23:22 2006 -0300 V4L/DVB (5047): Pvrusb2: Fix tuning calculation when in radio mode Frequency units in V4L2 are apparently different when in radio mode compared to tv mode. Why? Who knows. This change adapts the driver appropriately - so that internally we always only deal in Hz and don't have to muck with craziness like this. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 5a8a0a16422eec744ec220ccea472eef74b67180 Author: Mike Isely Date: Wed Dec 27 23:21:34 2006 -0300 V4L/DVB (5046): Pvrusb2: Fix tuner frequency calculation A conversion from Hz to V4L frequency units was accidentally removed by an earlier change. Restore it. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 0f0f257b7b46cc65c0f8f6f30444005b9c255e79 Author: Mike Isely Date: Wed Dec 27 23:19:42 2006 -0300 V4L/DVB (5045): Pvrusb2: Fix heap corruption introduced by radio mods We can't allocate v4l device structures in a block, since the v4l core governs when each device actually gets freed. This bug was introduced as part of the core radio implementation. Fix it. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 5e6862cefe004f0f7ad86e0a80df4d9465576903 Author: Mike Isely Date: Wed Dec 27 23:17:26 2006 -0300 V4L/DVB (5044): Pvrusb2: Allow overriding vbi and radio device minor numbers Support specification of vbi and radio device minor numbers in a manner similar to the video device minor number. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit f5156b06acaad13b74f72bf62025de7b76b1b8a4 Author: Mike Isely Date: Wed Dec 27 23:14:54 2006 -0300 V4L/DVB (5043): Pvrusb2: video standard broadcast fix for radio mode Ensure we don't accidentally broadcast the standard while in radio mode. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 98752102dccfd3f1bb3eac3d7833c9b38ac22fef Author: Mike Isely Date: Wed Dec 27 23:13:53 2006 -0300 V4L/DVB (5042): Pvrusb2: Make units uniform when tracking tuning frequency The initial radio implementation used different units for tuning when in radio mode. This changes everything to Hz. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 8079384eeb1c490d0ad679cef061205e1b5a1c8a Author: Mike Isely Date: Wed Dec 27 23:12:28 2006 -0300 V4L/DVB (5041): Pvrusb2: Use separate enumeration for get/store of minor number Use separate enum for get/store of minor number; we want pvr2_config to go away eventually and since it really means something different, don't use it here Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit fd5a75fe00ec13311289928c2cb17d8676f8db45 Author: Mike Isely Date: Wed Dec 27 23:11:22 2006 -0300 V4L/DVB (5040): Pvrusb2: Use enumeration for minor number get / store code Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit ae2b9e25fdfb63efed3659b19c5cc8778fd981ba Author: Pantelis Koukousoulas Date: Wed Dec 27 23:09:55 2006 -0300 V4L/DVB (5039): Pvrusb2: Implement /dev/radioX The "main" V4L2 interface patch. This is yet very incomplete, incorrect and probably inappropriate for inclusion as-is, but at least with this I 'm able to tune and play radio through a V4L2 program (pvr-radio.c, a "thumb" version of ivtv-radio.c with just the essentials). Therefore, it kinda gives an idea of what is needed to support this, hm, interface (partly used also by e.g., kradio). Please point out any mistakes on this code. I 'm sure I 'm messing up some struct initialization somewhere but currently I 'm too lazy to actually think this through until I complete the functionality (e.g., handle the VIDIOC_S_STD, ENUMINPUT, etc ioctls appropriately). Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 99cfdf5cc6dbe0bd748d810953874d4e08051a9f Author: Pantelis Koukousoulas Date: Wed Dec 27 23:08:55 2006 -0300 V4L/DVB (5038): Pvrusb2: Implement stream claim checking function Add (and expose) a new function, pvr2_channel_check_stream_no_lock(), in pvrusb2-context.c. This is hopefully the last V4L2 interface related patch to change anything outside pvrusb2-v4l2.c. We need this to implement the open() for the radio device. The reason is that within the *enter_context() section of open() we need to ensure nobody is streaming and if we cannot, we should cleanup after ourselves and return -EBUSY. We cannot just use claim_stream() because: 1) That would cause a deadlock trying to re-acquire the context lock 2) We only need to ensure that nobody is streaming. We don't need to actually acquire the stream. Again, this is a kinda ugly patch. Feel free to improve. Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 2fdf3d9c94f7f752dacbebb75bbecda3c1b082a0 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:07:58 2006 -0300 V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling This is the first patch in preparation of the V4L2/IVTV radio interface. It does away with the assumption of only one minor per device. It also adds a file to show the radio minor as well. This can be useful for a program like pvr-radio.c (when it grows up), since this way it can search for the minor of the /dev/radioX device it opened and use the video minor of the same driver instance to get to the actual stream. The implementation looks kinda ugly. Feel free to improve (that is the reason behind separate patches anyway). Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6fcb5b3ef758ca78461d390dc07bed5a4667c521 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:06:54 2006 -0300 V4L/DVB (5036): Pvrusb2: Fix for min/max control value checking In the previous patch we exploited the get_{min,max}_value facility to adjust min/max allowable frequencies on the fly, depending on tuner mode. Unfortunately, this facility was not used inside the *sym_to_val() function that translates what we echo to sysfs, which means we got an -ERANGE despite asking for a frequency between what we read to be min/max. This patch corrects this small omission. Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 25d8527a441760c333c41ec7197ba0750780b371 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:06:04 2006 -0300 V4L/DVB (5035): Pvrusb2: Enable radio mode round #2 This is the logic that: a) Ensures /sys/class/pvrusb2/sn-*/ctl_frequency/{max,min}_val are "automagically" reset to sane values on each mode change. b) Allows tuning to a radio frequency by something like: echo `perl -e "print int(94.9*16000 + 0.5)"` \ > /sys/class/pvrusb2/sn-*/ctl_input/cur_val The trick was to take advantage of the already existing .get_{min,max}_value function pointers in pvr2_ctrl, to "dynamically override" the hardcoded values for min/max frequency at runtime. For a moment I thought to dispose of the hardcoded MIN/MAX_FREQ and use the hirange/lowrange fields of the v4l2_tuner struct instead, but then I see that tuner-core.c kinda hardcodes these as well, so I decided to not bother. Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 275b2e283b139bee19e7de5929d01484b8e3ee51 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:05:19 2006 -0300 V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 This is the logic that supports switching modes via e.g., echo radio > /sys/class/pvrusb2/sn-*/ctl_input/cur_val. To do the mode switching we need to: a) broadcast AUDC_SET_RADIO and b) issue the CX2341X_ENC_MUTE_VIDEO command to the encoder. The first is done by adding a new pvr2_i2c_op and having it trigger on input change, the second by adding this command in pvr2_encoder_start() and requesting an encoder restart on input change by setting stale_subsys_mask appropriately. The clues about AUDC_SET_RADIO and CX2341X_ENC_MUTE_VIDEO were kindly provided by Hans Verkuil on the pvrusb2 mailing list. The idea to implement mode switching this way (on input change) is due to Mike Isely. Why AUDC_SET_RADIO/VIDIOC_S_STD are used for switching? I can 't be sure, but I think this can be traced to a cornell student being the first to implement radio support in ivtv "as a different standard". I think the rest just evolved from there (it 's in the ivtv ML archives). Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 0b600512860cab5a0bb4647f5f726a91bce2633c Author: Mauro Carvalho Chehab Date: Sun Jan 14 08:33:24 2007 -0300 V4L/DVB (5074): Some fixes at stream waitqueue on vivi There are several potential troubles on vivi waitqueue code: - Watchdog timer should be reset at every received frame; - Watchdog timer should be reset at the beginning of vivi_thread(); - Checks for errors when creating a newer thread with kernel_thread(); - Wake up vivi_thread() after creating it. Signed-off-by: Mauro Carvalho Chehab commit df3a710458462aa9427cdeec947bf71af257e8dd Author: Mauro Carvalho Chehab Date: Sat Jan 13 09:25:16 2007 -0300 V4L/DVB (5073): Fix OOPS on some waitqueue conditions If for some reason vivi_thread() fails, vivi will suffer an OOPS at thread stop code, since waitqueue wouldn't be properly initializated. Signed-off-by: Mauro Carvalho Chehab commit ae1942c5712f700c9ccc8cc287c51db4daaa50d7 Author: Ville-Pekka Vainio Date: Fri Jan 12 14:06:21 2007 -0300 V4L/DVB (5070): Budget-ci: add support for the Technotrend 1500 bundled remote The keymap is based on a previous patch by Jussi Kukkonen. This remote is identified by subsystem_device id 0x1010. Signed-off-by: Ville-Pekka Vainio Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 43db48d3d2f6326c571984b7b30ab355596bb3cc Author: Mauro Carvalho Chehab Date: Tue Jan 9 11:20:59 2007 -0300 V4L/DVB (5068): Fix authorship references Bill Dirks asked me to update his entries at kernel files, since he change his e-mail. I've also updated a few web broken links or obsolete info to the curent sites where V4L drivers and API are being discussed currently. CC: Bill Dirks Signed-off-by: Mauro Carvalho Chehab commit 2656312724d97ebc2e267e0a9740d51ad7aa9a04 Author: Luca Risolia Date: Mon Jan 8 11:38:36 2007 -0300 V4L/DVB (5064): ET61X251 driver updates. - Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES - Documentation updates - Generic improvements Signed-off-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab commit 7e3a0660700ad47ee6e296fe7090d771becfcf96 Author: Luca Risolia Date: Mon Jan 8 11:34:35 2007 -0300 V4L/DVB (5063): ZC0301 driver updates. - Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES - Documentation updates - Generic improvements Signed-off-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab commit f327ebbd004fb2f08291ca4c6637f5f27319683c Author: Luca Risolia Date: Mon Jan 8 10:43:56 2007 -0300 V4L/DVB (5062): SN9C102 driver updates - Add support for SN9C105 and SN9C120 - Add some more USB device identifiers - Add support for OV7660 - Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES - Add preliminary support for 0x0c45/0x6007 - Documentation updates - Generic improvements Signed-off-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab commit 19790db00bb7ff4d6621b82933afb3423586644e Author: Michael Krufky Date: Sun Jan 7 22:12:22 2007 -0300 V4L/DVB (5061): Bt8xx: add support for Ultraview DVB-T Lite Ultraview DVB-T Lite is a clone of DViCO FusionHDTV DVB-T Lite Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit de6a1b8edc48155249896f2600398e139f4860c6 Author: Dwaine Garden Date: Sun Jan 7 21:13:55 2007 -0300 V4L/DVB (5032): Improves some USBVision info messages Replaces the info statements with printk(KERN_INFO statements. This will cut down on the useless information which is showing up in the kernel messages log file. Signed-off-by: Dwaine P. Garden Signed-off-by: Mauro Carvalho Chehab commit c19049568117848a209185a61d18971e3a856bd8 Author: Dmitry Torokhov Date: Tue Jan 2 03:29:48 2007 -0300 V4L/DVB (5025): Cleanup: switch to using msecs_to_jiffies() on bttv PS.: Part of the changes at the original patch were removed due to the changes done at commit 52c14e794f6ce345343a6b8fc98ea4e0ba2dfce4 Signed-off-by: Dmitry Torokhov Signed-off-by: Mauro Carvalho Chehab commit cededbfcbc31230c1717a7ed27ff6cf82734e568 Author: Mariusz Kozlowski Date: Sun Jan 7 10:39:44 2007 -0300 V4L/DVB (5028): Tvmixer module_put cleanup Removes redundant argument check for module_put() Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab commit ac3289893052c8e6149a8e93b500e2e4c7d9d418 Author: Mariusz Kozlowski Date: Sun Jan 7 10:36:24 2007 -0300 V4L/DVB (5027): Cpia module_put cleanup No need for redundant argument check for module_put() Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab commit 22071a42a1b44ae90d232f4bd5d6d3f80ad4eaa2 Author: Mariusz Kozlowski Date: Sun Jan 7 10:33:39 2007 -0300 V4L/DVB (5026): Pvrusb2-hdw kfree cleanup Removes redundant argument check for kfree(). Signed-off-by: Mariusz Kozlowski Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 16e9495d8bd5ec8ef3c1a32cd720542b1cc2b298 Author: Mike Isely Date: Wed Jan 3 18:08:06 2007 -0300 V4L/DVB: MAINTAINERS: tag pvrusb2 list as subscribers-only Posting to the pvrusb2 mailing list is for subscribers only. Anyone can subscribe of course. This is done purely to keep spammers and similar pond scum from bothering the subscribers of the list. This patch marks the pvrusb2 list tag in MAINTAINERS to reflect this situation. Signed-off-by: Mike Isely Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 4a06b538d6c7c1713d759f79b4fbd1d91d4932ca Author: Adrian Bunk Date: Fri Dec 29 09:57:26 2006 -0300 V4L/DVB (5018): Make usbvision_rvfree() static usbvision_rvfree() can now become static. Signed-off-by: Adrian Bunk Signed-off-by: Mauro Carvalho Chehab commit c408a6f673e8fb0b67c81fc9cb29414265c1e6c1 Author: Adrian Bunk Date: Thu Dec 28 12:47:47 2006 -0300 V4L/DVB (5017): DVB: fix compile error This patch fixes the following compile error: <-- snip --> ... LD drivers/media/video/built-in.o drivers/media/video/saa7134/built-in.o:(.data+0x85ec): multiple definition of `ir_rc5_remote_gap' drivers/media/video/bt8xx/built-in.o:(.data+0x734c): first defined here drivers/media/video/saa7134/built-in.o:(.data+0x85f0): multiple definition of `ir_rc5_key_timeout' drivers/media/video/bt8xx/built-in.o:(.data+0x7350): first defined here make[4]: *** [drivers/media/video/built-in.o] Error 1 <-- snip --> Since this variables were needlessly global, this patch implements the trivial fix of making them static. Signed-off-by: Adrian Bunk Signed-off-by: Mauro Carvalho Chehab commit c36c459a5530da8869a4de832188cdcb75b60359 Author: Juan Pablo Sormani Date: Wed Dec 27 12:46:36 2006 -0300 V4L/DVB (5015): Add support for more Encore TV cards Signed-off-by: Juan Pablo Sormani Signed-off-by: Mauro Carvalho Chehab commit 95efa03bd66511ca9fb4ebc528211166ac842d27 Author: Mauro Carvalho Chehab Date: Wed Feb 14 22:55:53 2007 -0200 V4L/DVB (5012a): Remove some unused code from kernel mainstream There are some long time unused code under some media driver source files. There's no need of keeping it at mainstream. Those unused code will remain available at V4L/DVB master tree and also at kernel history. Signed-off-by: Mauro Carvalho Chehab commit d9bdf77296a00538faff95f29bf238857daea2e7 Author: Tobias Klauser Date: Tue Dec 26 07:33:48 2006 -0300 V4L/DVB (5011): DVB: Remove unneeded void * casts in ttpci/av7110 The patch removes unneeded void * casts for the following (void *) pointers: - struct file: private_data - struct dvb_device: priv - struct dvb_demux: priv - struct dvb_adapter: priv The patch also contains some whitespace and coding style cleanups in the relevant areas. Signed-off-by: Tobias Klauser Signed-off-by: Mauro Carvalho Chehab commit 9d85d776cb6ccc28ac5294a9ac4f6831295f489b Author: Antti Seppälä Date: Wed Dec 20 11:10:35 2006 -0300 V4L/DVB (4999): [PATCH] Cablestar2 support This patch changes the initialization of alps tdee4 tuner in flexcop-fe-tuner.c to match what is used in the old driver that was written specifically for Cablestar cards by Patrick Boettcher. This patch should make Cablestar2 work again with recent dvb drivers without breaking other stv0297 based cards. Signed-off-by: Antti Seppala Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit e3ab2fdd3f5efe62d266877c53c578fe5b547b31 Author: Mario Rossi Date: Wed Dec 20 10:54:30 2006 -0300 V4L/DVB (4998): [PATCH] DIB3000MC and NOVA T USB2 #2 Second part of the patch to make the autosearch work again with DiB3000P/MC. Signed-off-by: Mario Rossi Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit ce700b4e2f4b41f79815ee3a6c4f9b9390b2af36 Author: Mauro Carvalho Chehab Date: Wed Dec 20 09:53:09 2006 -0300 V4L/DVB (4993): Updated cardlist to reflect the newly added saa7134 board Signed-off-by: Mauro Carvalho Chehab commit d1158f469cb2bda369475e2bb622080dace25473 Author: Steven Walter Date: Wed Dec 20 09:29:09 2006 -0300 V4L/DVB (4989): Saa7134: add support for the Encore ENL-TV Add a board definition for the Encore ENL-TV card, and adds its PCI subdevice to the ID table. Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit d84e2bdca6e168557639b29c9244cbcf2500fe21 Author: Hans Verkuil Date: Wed Dec 20 06:50:18 2006 -0300 V4L/DVB (4987): Improve cx2341x documentation Document the program index table format, removed unused interrupt documentation and improve the documentation regarding the audio mode (stereo/joint/dual/mono). Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 75558ab92dc95c3b5a99df7c77e95a6e8484e05c Author: Hans Verkuil Date: Mon Dec 18 22:52:21 2006 -0300 V4L/DVB (4986): Removed unimplemented cx2341x API commands The commands CX2341X_DEC_SET_AUDIO_OUTPUT, CX2341X_DEC_SET_AV_DELAY and CX2341X_ENC_SET_3_2_PULLDOWN are not implemented in the Conexant firmware. So these commands are removed. This also means that the V4L2_CID_MPEG_VIDEO_PULLDOWN control in cx2341x.c and pvrusb2-hdw.c is removed. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 20a919f7960df1c0bf1cb4f637149ed4b6bc9ec3 Author: Hans Verkuil Date: Mon Dec 18 22:43:36 2006 -0300 V4L/DVB (4985): Update cx2341x documentation. Removed a few unimplemented commands. Added a note for a few fields that are not implemented in the firmware, and clarified several issues around reverse playback. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit e12ceaf4962d804320d639faed1da61e2cb85723 Author: Hans Verkuil Date: Mon Dec 18 13:06:30 2006 -0300 V4L/DVB (4981): Update cx2341x documentation. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 8387c66c7f06842b06222235a3749b31448d6637 Author: Hermann Pitton Date: Sun Dec 10 21:08:03 2006 -0300 V4L/DVB (4962): Add the Composite over S-Video input on the Asus P7131 Dual This makes a second CVBS input available. Signed-off-by: Hermann Pitton Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 9160723ed620f31bf38332dee02041b1cb4c9967 Author: Hermann Pitton Date: Thu Dec 7 21:45:28 2006 -0300 V4L/DVB (4961): Add support for the ASUS P7131 remote control Besides adding the board specific code, this patch moves the RC5 decoding code from bt8xx to ir-functions.c to make it available for all drivers. Signed-off-by: Marc Fargas Signed-off-by: Hermann Pitton Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 3a5f10e3708e00c406f154bae412652ec3eb2b48 Author: Mathieu Desnoyers Date: Wed Feb 21 10:55:59 2007 +0100 [S390] add atomic64_xchg to s390 Signed-off-by: Mathieu Desnoyers Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Martin Schwidefsky commit de61c9341ba144f6f21fdaae48ffbd811fc6637f Author: Mathieu Desnoyers Date: Wed Feb 21 10:55:55 2007 +0100 [S390] local_t cleanup : use asm-generic/local.h. Signed-off-by: Mathieu Desnoyers Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Martin Schwidefsky commit 4562c9fffc3f8fca99f22671ad497aedd1737a5e Author: Michael Holzheu Date: Wed Feb 21 10:55:46 2007 +0100 [S390] Replace $(ARCH) macros in Makefile Since $(ARCH) is always "s390" we can replace it with "s390". Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 615b04b301fd4e1b7680a498b873c4ae9baad92f Author: Heiko Carstens Date: Wed Feb 21 10:55:37 2007 +0100 [S390] nss: Free unused memory in kernel image. With CONFIG_SHARED_KERNEL the kernel text segment that might be in a read only memory sections starts at 1MB. Memory between 0x12000 and 0x100000 is unused then. Free this, so we have appr. an extra MB of memory available. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 229d9c6dfb2900559449575a56dc8abcaf0bce9d Author: Heiko Carstens Date: Wed Feb 21 10:55:29 2007 +0100 [S390] bss section clearing. Clear only memory from __bss_start to __bss_stop when clearing the bss section. Not until _end, which currently happens to be the same. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 2b9329367504d19c7c166c5aec557d070caccd70 Author: Michael Holzheu Date: Wed Feb 21 10:55:24 2007 +0100 [S390] Remove BUG() statement To avoid ugly warings for older gccs, we replace BUG() with "return NULL", which is just as well. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 46b05d2617c8efd8ec6b19acd2c95541a0118c13 Author: Michael Holzheu Date: Wed Feb 21 10:55:21 2007 +0100 [S390] New header file ipl.h Setup.h has been misused for ipl related stuff in the past. We now move everything, which has to do with ipl and reipl to a new header file named "ipl.h". Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 72960a02c270950253126ee8b339afd400f55273 Author: Michael Holzheu Date: Wed Feb 21 10:55:18 2007 +0100 [S390] New get_cpu_id() inline assembly Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 6c732de2d3673e28c6a976c98ee6ba4d197a919a Author: Heiko Carstens Date: Wed Feb 21 10:55:15 2007 +0100 [S390] etr: Add barrier() to etr_sync_cpu_start(). Force reading of *in_sync in while loop. Loops where the content that is checked for is changed by a different cpu always should have some sort of barrier() semantics. Otherwise this might lead to very subtle bugs. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 118bcd31b309d12638f67729d5d96d4974750249 Author: Heiko Carstens Date: Wed Feb 21 10:55:12 2007 +0100 [S390] Optional ZONE_DMA for s390. Disable ZONE_DMA on 31-bit. All memory is addressable by all devices and we do not need any special memory pool. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 63db6e8d41c703c26a3ce767740a9c8484765a74 Author: Jan Glauber Date: Wed Feb 21 10:55:06 2007 +0100 [S390] smp_call_function cleanup Introduce __smp_call_function_map which calls a function on all cpus given with a cpumask_t. Use it to implement smp_call_function and smp_call_function_on. Replace smp_ext_bitcall_others with smp_ext_bitcall and a for_each_cpu_mask loop. Use a cpumask_t instead of an atomic_t for cpu counting and print a warning if preempt is on in __smp_call_function_map(). Signed-off-by: Jan Glauber Signed-off-by: Martin Schwidefsky commit 188596faf788f2881a0eb316f2604832df058ea8 Author: Jan Glauber Date: Wed Feb 21 10:55:03 2007 +0100 [S390] fix non-smp compile. Fix compile of sclp_quiesce for CONFIG_SMP=n. Signed-off-by: Jan Glauber Signed-off-by: Martin Schwidefsky commit bf6f6aa46feada857a52cb67d99a7c2fe4a70e87 Author: Martin Schwidefsky Date: Wed Feb 21 10:55:00 2007 +0100 [S390] prevent softirqs if delay is called disabled The new delay implementation uses the clock comparator and an external interrupt even if it is called disabled for interrupts. To do this all external interrupt source except clock comparator are switched of before enabling external interrupts. The external interrupt at the end of the delay period may not execute softirqs or we can end up in a dead-lock. Signed-off-by: Martin Schwidefsky commit 489c80ba8aa9dde8244897cba33a9372c897e531 Author: Martin Schwidefsky Date: Wed Feb 21 10:54:57 2007 +0100 [S390] update default configuration Signed-off-by: Martin Schwidefsky commit 004c46b9e588edf549a39c5db54e37ebd0b3b3ad Author: Steve French Date: Sat Feb 17 04:34:13 2007 +0000 [CIFS] One line missing from previous commit Signed-off-by: Steve French commit 1b2b212603ceb47d60aff571dcfffc846fcfa336 Author: Steve French Date: Sat Feb 17 04:30:54 2007 +0000 [CIFS] mtime bounces from local to remote when cifs nocmtime i_flags overwritten atime flag was also overwritten. Noticed by Shirish when he was debugging an atime problem. Should help performance a bit too. cifs should be getting time stamps from the server (that was the original intent too) Signed-off-by: Steve French commit c14e894bd40868d6d1f2379705b68acf5288ba27 Author: Steve French Date: Thu Feb 15 01:33:18 2007 +0000 [CIFS] fix &&/& typo in cifs_setattr() Thanks to Dirk for pointing this out. Signed-off-by: Dirk Mueller Signed-off-by: Steve French