drivers/media/pci/saa7164/saa7164-api.c:915:12: warning: stack frame size of 5312 bytes in function 'saa7164_api_dump_subdevs'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2023a53bdf41b7646b1d384b6816af06309f73a5
commit: d0a3ac549f389c1511a4df0d7638536305205d20 ubsan: enable for all*config builds
date:   4 months ago
config: powerpc64-randconfig-r011-20210404 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 30df6d5d6a8537d3ec7d8fe4299289a4c5a74d5c)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d0a3ac549f389c1511a4df0d7638536305205d20
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout d0a3ac549f389c1511a4df0d7638536305205d20
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/media/pci/saa7164/saa7164-api.c:915:12: warning: stack frame size of 5312 bytes in function 'saa7164_api_dump_subdevs' [-Wframe-larger-than=]
   static int saa7164_api_dump_subdevs(struct saa7164_dev *dev, u8 *buf, int len)
              ^
   1 warning generated.


vim +/saa7164_api_dump_subdevs +915 drivers/media/pci/saa7164/saa7164-api.c

7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31   914  
5faf7db804e1e6 drivers/media/pci/saa7164/saa7164-api.c   Mauro Carvalho Chehab 2012-10-27  @915  static int saa7164_api_dump_subdevs(struct saa7164_dev *dev, u8 *buf, int len)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   916  {
61ca1500c5ee04 drivers/media/video/saa7164/saa7164-api.c Peter Huewe           2011-01-30   917  	struct saa7164_port *tsport = NULL;
61ca1500c5ee04 drivers/media/video/saa7164/saa7164-api.c Peter Huewe           2011-01-30   918  	struct saa7164_port *encport = NULL;
61ca1500c5ee04 drivers/media/video/saa7164/saa7164-api.c Peter Huewe           2011-01-30   919  	struct saa7164_port *vbiport = NULL;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   920  	u32 idx, next_offset;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   921  	int i;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   922  	struct tmComResDescrHeader *hdr, *t;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   923  	struct tmComResExtDevDescrHeader *exthdr;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   924  	struct tmComResPathDescrHeader *pathhdr;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   925  	struct tmComResAntTermDescrHeader *anttermhdr;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   926  	struct tmComResTunerDescrHeader *tunerunithdr;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   927  	struct tmComResDMATermDescrHeader *vcoutputtermhdr;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   928  	struct tmComResTSFormatDescrHeader *tsfmt;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   929  	struct tmComResPSFormatDescrHeader *psfmt;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   930  	struct tmComResSelDescrHeader *psel;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   931  	struct tmComResProcDescrHeader *pdh;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   932  	struct tmComResAFeatureDescrHeader *afd;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   933  	struct tmComResEncoderDescrHeader *edh;
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   934  	struct tmComResVBIFormatDescrHeader *vbifmt;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   935  	u32 currpath = 0;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   936  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   937  	dprintk(DBGLVL_API,
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   938  		"%s(?,?,%d) sizeof(struct tmComResDescrHeader) = %d bytes\n",
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   939  		__func__, len, (u32)sizeof(struct tmComResDescrHeader));
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   940  
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   941  	for (idx = 0; idx < (len - sizeof(struct tmComResDescrHeader));) {
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   942  
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   943  		hdr = (struct tmComResDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   944  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   945  		if (hdr->type != CS_INTERFACE)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   946  			return SAA_ERR_NOT_SUPPORTED;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   947  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   948  		dprintk(DBGLVL_API, "@ 0x%x =\n", idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   949  		switch (hdr->subtype) {
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   950  		case GENERAL_REQUEST:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   951  			dprintk(DBGLVL_API, " GENERAL_REQUEST\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   952  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   953  		case VC_TUNER_PATH:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   954  			dprintk(DBGLVL_API, " VC_TUNER_PATH\n");
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   955  			pathhdr = (struct tmComResPathDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   956  			dprintk(DBGLVL_API, "  pathid = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   957  				pathhdr->pathid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   958  			currpath = pathhdr->pathid;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   959  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   960  		case VC_INPUT_TERMINAL:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   961  			dprintk(DBGLVL_API, " VC_INPUT_TERMINAL\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   962  			anttermhdr =
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11   963  				(struct tmComResAntTermDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   964  			dprintk(DBGLVL_API, "  terminalid   = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   965  				anttermhdr->terminalid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   966  			dprintk(DBGLVL_API, "  terminaltype = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   967  				anttermhdr->terminaltype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   968  			switch (anttermhdr->terminaltype) {
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   969  			case ITT_ANTENNA:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   970  				dprintk(DBGLVL_API, "   = ITT_ANTENNA\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   971  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   972  			case LINE_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   973  				dprintk(DBGLVL_API, "   = LINE_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   974  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   975  			case SPDIF_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   976  				dprintk(DBGLVL_API, "   = SPDIF_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   977  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   978  			case COMPOSITE_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   979  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   980  					"   = COMPOSITE_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   981  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   982  			case SVIDEO_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   983  				dprintk(DBGLVL_API, "   = SVIDEO_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   984  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   985  			case COMPONENT_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   986  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   987  					"   = COMPONENT_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   988  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   989  			case STANDARD_DMA:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   990  				dprintk(DBGLVL_API, "   = STANDARD_DMA\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   991  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   992  			default:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   993  				dprintk(DBGLVL_API, "   = undefined (0x%x)\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   994  					anttermhdr->terminaltype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   995  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   996  			dprintk(DBGLVL_API, "  assocterminal= 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   997  				anttermhdr->assocterminal);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   998  			dprintk(DBGLVL_API, "  iterminal    = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09   999  				anttermhdr->iterminal);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1000  			dprintk(DBGLVL_API, "  controlsize  = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1001  				anttermhdr->controlsize);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1002  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1003  		case VC_OUTPUT_TERMINAL:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1004  			dprintk(DBGLVL_API, " VC_OUTPUT_TERMINAL\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1005  			vcoutputtermhdr =
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1006  				(struct tmComResDMATermDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1007  			dprintk(DBGLVL_API, "  unitid = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1008  				vcoutputtermhdr->unitid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1009  			dprintk(DBGLVL_API, "  terminaltype = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1010  				vcoutputtermhdr->terminaltype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1011  			switch (vcoutputtermhdr->terminaltype) {
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1012  			case ITT_ANTENNA:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1013  				dprintk(DBGLVL_API, "   = ITT_ANTENNA\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1014  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1015  			case LINE_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1016  				dprintk(DBGLVL_API, "   = LINE_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1017  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1018  			case SPDIF_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1019  				dprintk(DBGLVL_API, "   = SPDIF_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1020  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1021  			case COMPOSITE_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1022  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1023  					"   = COMPOSITE_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1024  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1025  			case SVIDEO_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1026  				dprintk(DBGLVL_API, "   = SVIDEO_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1027  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1028  			case COMPONENT_CONNECTOR:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1029  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1030  					"   = COMPONENT_CONNECTOR\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1031  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1032  			case STANDARD_DMA:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1033  				dprintk(DBGLVL_API, "   = STANDARD_DMA\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1034  				break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1035  			default:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1036  				dprintk(DBGLVL_API, "   = undefined (0x%x)\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1037  					vcoutputtermhdr->terminaltype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1038  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1039  			dprintk(DBGLVL_API, "  assocterminal= 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1040  				vcoutputtermhdr->assocterminal);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1041  			dprintk(DBGLVL_API, "  sourceid     = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1042  				vcoutputtermhdr->sourceid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1043  			dprintk(DBGLVL_API, "  iterminal    = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1044  				vcoutputtermhdr->iterminal);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1045  			dprintk(DBGLVL_API, "  BARLocation  = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1046  				vcoutputtermhdr->BARLocation);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1047  			dprintk(DBGLVL_API, "  flags        = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1048  				vcoutputtermhdr->flags);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1049  			dprintk(DBGLVL_API, "  interruptid  = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1050  				vcoutputtermhdr->interruptid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1051  			dprintk(DBGLVL_API, "  buffercount  = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1052  				vcoutputtermhdr->buffercount);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1053  			dprintk(DBGLVL_API, "  metadatasize = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1054  				vcoutputtermhdr->metadatasize);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1055  			dprintk(DBGLVL_API, "  controlsize  = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1056  				vcoutputtermhdr->controlsize);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1057  			dprintk(DBGLVL_API, "  numformats   = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1058  				vcoutputtermhdr->numformats);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1059  
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1060  			t = (struct tmComResDescrHeader *)
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1061  				((struct tmComResDMATermDescrHeader *)(buf + idx));
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1062  			next_offset = idx + (vcoutputtermhdr->len);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1063  			for (i = 0; i < vcoutputtermhdr->numformats; i++) {
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1064  				t = (struct tmComResDescrHeader *)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1065  					(buf + next_offset);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1066  				switch (t->subtype) {
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1067  				case VS_FORMAT_MPEG2TS:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1068  					tsfmt =
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1069  					(struct tmComResTSFormatDescrHeader *)t;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1070  					if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1071  						tsport = &dev->ports[SAA7164_PORT_TS1];
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1072  					else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1073  						tsport = &dev->ports[SAA7164_PORT_TS2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1074  					memcpy(&tsport->hwcfg, vcoutputtermhdr,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1075  						sizeof(*vcoutputtermhdr));
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1076  					saa7164_api_configure_port_mpeg2ts(dev,
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1077  						tsport, tsfmt);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1078  					break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1079  				case VS_FORMAT_MPEG2PS:
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1080  					psfmt =
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1081  					(struct tmComResPSFormatDescrHeader *)t;
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1082  					if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1083  						encport = &dev->ports[SAA7164_PORT_ENC1];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1084  					else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1085  						encport = &dev->ports[SAA7164_PORT_ENC2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1086  					memcpy(&encport->hwcfg, vcoutputtermhdr,
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1087  						sizeof(*vcoutputtermhdr));
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1088  					saa7164_api_configure_port_mpeg2ps(dev,
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1089  						encport, psfmt);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1090  					break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1091  				case VS_FORMAT_VBI:
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1092  					vbifmt =
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1093  					(struct tmComResVBIFormatDescrHeader *)t;
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1094  					if (currpath == 1)
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1095  						vbiport = &dev->ports[SAA7164_PORT_VBI1];
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1096  					else
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1097  						vbiport = &dev->ports[SAA7164_PORT_VBI2];
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1098  					memcpy(&vbiport->hwcfg, vcoutputtermhdr,
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1099  						sizeof(*vcoutputtermhdr));
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1100  					memcpy(&vbiport->vbi_fmt_ntsc, vbifmt,
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1101  						sizeof(*vbifmt));
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1102  					saa7164_api_configure_port_vbi(dev,
e8ce2f21665442 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1103  						vbiport);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1104  					break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1105  				case VS_FORMAT_RDS:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1106  					dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1107  						"   = VS_FORMAT_RDS\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1108  					break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1109  				case VS_FORMAT_UNCOMPRESSED:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1110  					dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1111  					"   = VS_FORMAT_UNCOMPRESSED\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1112  					break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1113  				case VS_FORMAT_TYPE:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1114  					dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1115  						"   = VS_FORMAT_TYPE\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1116  					break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1117  				default:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1118  					dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1119  						"   = undefined (0x%x)\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1120  						t->subtype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1121  				}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1122  				next_offset += t->len;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1123  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1124  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1125  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1126  		case TUNER_UNIT:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1127  			dprintk(DBGLVL_API, " TUNER_UNIT\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1128  			tunerunithdr =
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1129  				(struct tmComResTunerDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1130  			dprintk(DBGLVL_API, "  unitid = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1131  				tunerunithdr->unitid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1132  			dprintk(DBGLVL_API, "  sourceid = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1133  				tunerunithdr->sourceid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1134  			dprintk(DBGLVL_API, "  iunit = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1135  				tunerunithdr->iunit);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1136  			dprintk(DBGLVL_API, "  tuningstandards = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1137  				tunerunithdr->tuningstandards);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1138  			dprintk(DBGLVL_API, "  controlsize = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1139  				tunerunithdr->controlsize);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1140  			dprintk(DBGLVL_API, "  controls = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1141  				tunerunithdr->controls);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1142  
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1143  			if (tunerunithdr->unitid == tunerunithdr->iunit) {
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1144  				if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1145  					encport = &dev->ports[SAA7164_PORT_ENC1];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1146  				else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1147  					encport = &dev->ports[SAA7164_PORT_ENC2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1148  				memcpy(&encport->tunerunit, tunerunithdr,
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1149  					sizeof(struct tmComResTunerDescrHeader));
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1150  				dprintk(DBGLVL_API,
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1151  					"  (becomes dev->enc[%d] tuner)\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1152  					encport->nr);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1153  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1154  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1155  		case VC_SELECTOR_UNIT:
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1156  			psel = (struct tmComResSelDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1157  			dprintk(DBGLVL_API, " VC_SELECTOR_UNIT\n");
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1158  			dprintk(DBGLVL_API, "  unitid = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1159  				psel->unitid);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1160  			dprintk(DBGLVL_API, "  nrinpins = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1161  				psel->nrinpins);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1162  			dprintk(DBGLVL_API, "  sourceid = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1163  				psel->sourceid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1164  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1165  		case VC_PROCESSING_UNIT:
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1166  			pdh = (struct tmComResProcDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1167  			dprintk(DBGLVL_API, " VC_PROCESSING_UNIT\n");
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1168  			dprintk(DBGLVL_API, "  unitid = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1169  				pdh->unitid);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1170  			dprintk(DBGLVL_API, "  sourceid = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1171  				pdh->sourceid);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1172  			dprintk(DBGLVL_API, "  controlsize = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1173  				pdh->controlsize);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1174  			if (pdh->controlsize == 0x04) {
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1175  				if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1176  					encport = &dev->ports[SAA7164_PORT_ENC1];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1177  				else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1178  					encport = &dev->ports[SAA7164_PORT_ENC2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1179  				memcpy(&encport->vidproc, pdh,
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1180  					sizeof(struct tmComResProcDescrHeader));
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1181  				dprintk(DBGLVL_API, "  (becomes dev->enc[%d])\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1182  					encport->nr);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1183  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1184  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1185  		case FEATURE_UNIT:
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1186  			afd = (struct tmComResAFeatureDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1187  			dprintk(DBGLVL_API, " FEATURE_UNIT\n");
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1188  			dprintk(DBGLVL_API, "  unitid = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1189  				afd->unitid);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1190  			dprintk(DBGLVL_API, "  sourceid = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1191  				afd->sourceid);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1192  			dprintk(DBGLVL_API, "  controlsize = 0x%x\n",
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1193  				afd->controlsize);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1194  			if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1195  				encport = &dev->ports[SAA7164_PORT_ENC1];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1196  			else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1197  				encport = &dev->ports[SAA7164_PORT_ENC2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1198  			memcpy(&encport->audfeat, afd,
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1199  				sizeof(struct tmComResAFeatureDescrHeader));
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1200  			dprintk(DBGLVL_API, "  (becomes dev->enc[%d])\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1201  				encport->nr);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1202  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1203  		case ENCODER_UNIT:
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1204  			edh = (struct tmComResEncoderDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1205  			dprintk(DBGLVL_API, " ENCODER_UNIT\n");
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1206  			dprintk(DBGLVL_API, "  subtype = 0x%x\n", edh->subtype);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1207  			dprintk(DBGLVL_API, "  unitid = 0x%x\n", edh->unitid);
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1208  			dprintk(DBGLVL_API, "  vsourceid = 0x%x\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1209  			edh->vsourceid);
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1210  			dprintk(DBGLVL_API, "  asourceid = 0x%x\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1211  				edh->asourceid);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1212  			dprintk(DBGLVL_API, "  iunit = 0x%x\n", edh->iunit);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1213  			if (edh->iunit == edh->unitid) {
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1214  				if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1215  					encport = &dev->ports[SAA7164_PORT_ENC1];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1216  				else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1217  					encport = &dev->ports[SAA7164_PORT_ENC2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1218  				memcpy(&encport->encunit, edh,
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1219  					sizeof(struct tmComResEncoderDescrHeader));
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1220  				dprintk(DBGLVL_API,
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1221  					"  (becomes dev->enc[%d])\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1222  					encport->nr);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1223  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1224  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1225  		case EXTENSION_UNIT:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1226  			dprintk(DBGLVL_API, " EXTENSION_UNIT\n");
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1227  			exthdr = (struct tmComResExtDevDescrHeader *)(buf + idx);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1228  			dprintk(DBGLVL_API, "  unitid = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1229  				exthdr->unitid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1230  			dprintk(DBGLVL_API, "  deviceid = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1231  				exthdr->deviceid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1232  			dprintk(DBGLVL_API, "  devicetype = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1233  				exthdr->devicetype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1234  			if (exthdr->devicetype & 0x1)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1235  				dprintk(DBGLVL_API, "   = Decoder Device\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1236  			if (exthdr->devicetype & 0x2)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1237  				dprintk(DBGLVL_API, "   = GPIO Source\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1238  			if (exthdr->devicetype & 0x4)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1239  				dprintk(DBGLVL_API, "   = Video Decoder\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1240  			if (exthdr->devicetype & 0x8)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1241  				dprintk(DBGLVL_API, "   = Audio Decoder\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1242  			if (exthdr->devicetype & 0x20)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1243  				dprintk(DBGLVL_API, "   = Crossbar\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1244  			if (exthdr->devicetype & 0x40)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1245  				dprintk(DBGLVL_API, "   = Tuner\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1246  			if (exthdr->devicetype & 0x80)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1247  				dprintk(DBGLVL_API, "   = IF PLL\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1248  			if (exthdr->devicetype & 0x100)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1249  				dprintk(DBGLVL_API, "   = Demodulator\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1250  			if (exthdr->devicetype & 0x200)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1251  				dprintk(DBGLVL_API, "   = RDS Decoder\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1252  			if (exthdr->devicetype & 0x400)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1253  				dprintk(DBGLVL_API, "   = Encoder\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1254  			if (exthdr->devicetype & 0x800)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1255  				dprintk(DBGLVL_API, "   = IR Decoder\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1256  			if (exthdr->devicetype & 0x1000)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1257  				dprintk(DBGLVL_API, "   = EEPROM\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1258  			if (exthdr->devicetype & 0x2000)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1259  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1260  					"   = VBI Decoder\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1261  			if (exthdr->devicetype & 0x10000)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1262  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1263  					"   = Streaming Device\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1264  			if (exthdr->devicetype & 0x20000)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1265  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1266  					"   = DRM Device\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1267  			if (exthdr->devicetype & 0x40000000)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1268  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1269  					"   = Generic Device\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1270  			if (exthdr->devicetype & 0x80000000)
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1271  				dprintk(DBGLVL_API,
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1272  					"   = Config Space Device\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1273  			dprintk(DBGLVL_API, "  numgpiopins = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1274  				exthdr->numgpiopins);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1275  			dprintk(DBGLVL_API, "  numgpiogroups = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1276  				exthdr->numgpiogroups);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1277  			dprintk(DBGLVL_API, "  controlsize = 0x%x\n",
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1278  				exthdr->controlsize);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1279  			if (exthdr->devicetype & 0x80) {
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1280  				if (currpath == 1)
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1281  					encport = &dev->ports[SAA7164_PORT_ENC1];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1282  				else
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1283  					encport = &dev->ports[SAA7164_PORT_ENC2];
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1284  				memcpy(&encport->ifunit, exthdr,
4d270cfb36683f drivers/media/video/saa7164/saa7164-api.c Mauro Carvalho Chehab 2010-10-11  1285  					sizeof(struct tmComResExtDevDescrHeader));
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1286  				dprintk(DBGLVL_API,
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1287  					"  (becomes dev->enc[%d])\n",
bc25068495b110 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-11-12  1288  					encport->nr);
7615e434aefd95 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2010-07-31  1289  			}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1290  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1291  		case PVC_INFRARED_UNIT:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1292  			dprintk(DBGLVL_API, " PVC_INFRARED_UNIT\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1293  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1294  		case DRM_UNIT:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1295  			dprintk(DBGLVL_API, " DRM_UNIT\n");
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1296  			break;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1297  		default:
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1298  			dprintk(DBGLVL_API, "default %d\n", hdr->subtype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1299  		}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1300  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1301  		dprintk(DBGLVL_API, " 1.%x\n", hdr->len);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1302  		dprintk(DBGLVL_API, " 2.%x\n", hdr->type);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1303  		dprintk(DBGLVL_API, " 3.%x\n", hdr->subtype);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1304  		dprintk(DBGLVL_API, " 4.%x\n", hdr->unitid);
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1305  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1306  		idx += hdr->len;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1307  	}
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1308  
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1309  	return 0;
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1310  }
443c1228d50518 drivers/media/video/saa7164/saa7164-api.c Steven Toth           2009-05-09  1311  

:::::: The code at line 915 was first introduced by commit
:::::: 5faf7db804e1e67ab8f78edb305d1858779a6279 [media] saa7164: get rid of warning: no previous prototype

:::::: TO: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux