-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] dvb: usb: cxusb: fixes for new firmware
This patch changes two things: 1) a firmware update made by the vendor, which has to be done in Windows for now, changes the DVB-data-pipe from isochronous to bulk: it fixes the data distortions (and thus the video-distortions) in DVB-T mode; there is no backwards compatibility with the old firmware as it didn't work anyway 2) with the help of Steve Toth some reverse-engineered functionality is now named correctly, thank you Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Patrick Boettcher
authored and
Linus Torvalds
committed
Sep 9, 2005
1 parent
3beab78
commit e2efeab
Showing
2 changed files
with
37 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
#ifndef _DVB_USB_CXUSB_H_ | ||
#define _DVB_USB_CXUSB_H_ | ||
|
||
#define DVB_USB_LOG_PREFIX "digitv" | ||
#define DVB_USB_LOG_PREFIX "cxusb" | ||
#include "dvb-usb.h" | ||
|
||
extern int dvb_usb_cxusb_debug; | ||
#define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args) | ||
|
||
/* usb commands - some of it are guesses, don't have a reference yet */ | ||
#define CMD_I2C_WRITE 0x08 | ||
#define CMD_I2C_READ 0x09 | ||
#define CMD_I2C_WRITE 0x08 | ||
#define CMD_I2C_READ 0x09 | ||
|
||
#define CMD_IOCTL 0x0e | ||
#define IOCTL_SET_I2C_PATH 0x02 | ||
#define CMD_GPIO_READ 0x0d | ||
#define CMD_GPIO_WRITE 0x0e | ||
#define GPIO_TUNER 0x02 | ||
|
||
#define CMD_POWER_OFF 0x50 | ||
#define CMD_POWER_ON 0x51 | ||
#define CMD_POWER_OFF 0xdc | ||
#define CMD_POWER_ON 0xde | ||
|
||
enum cxusb_i2c_pathes { | ||
PATH_UNDEF = 0x00, | ||
PATH_CX22702 = 0x01, | ||
PATH_TUNER_OTHER = 0x02, | ||
}; | ||
#define CMD_STREAMING_ON 0x36 | ||
#define CMD_STREAMING_OFF 0x37 | ||
|
||
#define CMD_ANALOG 0x50 | ||
#define CMD_DIGITAL 0x51 | ||
|
||
struct cxusb_state { | ||
enum cxusb_i2c_pathes cur_i2c_path; | ||
u8 gpio_write_state[3]; | ||
}; | ||
|
||
#endif |