xref: /OK3568_Linux_fs/kernel/drivers/media/usb/pwc/pwc-dec1.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later
2*4882a593Smuzhiyun /* Linux driver for Philips webcam
3*4882a593Smuzhiyun    Decompression for chipset version 1
4*4882a593Smuzhiyun    (C) 2004-2006 Luc Saillard (luc@saillard.org)
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun    NOTE: this version of pwc is an unofficial (modified) release of pwc & pcwx
7*4882a593Smuzhiyun    driver and thus may have bugs that are not present in the original version.
8*4882a593Smuzhiyun    Please send bug reports and support requests to <luc@saillard.org>.
9*4882a593Smuzhiyun    The decompression routines have been implemented by reverse-engineering the
10*4882a593Smuzhiyun    Nemosoft binary pwcx module. Caveat emptor.
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun */
13*4882a593Smuzhiyun #include "pwc.h"
14*4882a593Smuzhiyun 
pwc_dec1_init(struct pwc_device * pdev,const unsigned char * cmd)15*4882a593Smuzhiyun void pwc_dec1_init(struct pwc_device *pdev, const unsigned char *cmd)
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun 	struct pwc_dec1_private *pdec = &pdev->dec1;
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun 	pdec->version = pdev->release;
20*4882a593Smuzhiyun }
21