static char *m[] = {"stereo", "dual mono", "mono", "sap"}; static char *p[] = {"no pilot", "pilot c1", "pilot c2", "?"}; u32 reg,mode,pilot; 
static char *m[] = { "stereo", "dual mono", "mono", "sap" }; static char *p[] = { "no pilot", "pilot c1", "pilot c2", "?" }; u32 reg, mode, pilot; 
void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t){	static char *m[] = {"stereo", "dual mono", "mono", "sap"};	static char *p[] = {"no pilot", "pilot c1", "pilot c2", "?"};	u32 reg,mode,pilot;	reg   = cx_read(AUD_STATUS);	mode  = reg & 0x03;	pilot = (reg >> 2) & 0x03;	if (core->astat != reg)		dprintk("AUD_STATUS: 0x%x [%s/%s] ctl=%s\n",			reg, m[mode], p[pilot],			aud_ctl_names[cx_read(AUD_CTL) & 63]);	core->astat = reg;/* TODO       Reading from AUD_STATUS is not enough       for auto-detecting sap/dual-fm/nicam.       Add some code here later.*/# if 0	t->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_SAP |		V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2;	t->rxsubchans = V4L2_TUNER_SUB_MONO;	t->audmode    = V4L2_TUNER_MODE_MONO;	switch (core->tvaudio) {	case WW_BTSC:		t->capability = V4L2_TUNER_CAP_STEREO |			V4L2_TUNER_CAP_SAP;		t->rxsubchans = V4L2_TUNER_SUB_STEREO;		if (1 == pilot) {			/* SAP */			t->rxsubchans |= V4L2_TUNER_SUB_SAP;		}		break;	case WW_A2_BG:	case WW_A2_DK:	case WW_A2_M:		if (1 == pilot) {			/* stereo */			t->rxsubchans = V4L2_TUNER_SUB_MONO | V4L2_TUNER_SUB_STEREO;			if (0 == mode)				t->audmode = V4L2_TUNER_MODE_STEREO;		}		if (2 == pilot) {			/* dual language -- FIXME */			t->rxsubchans = V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2;			t->audmode = V4L2_TUNER_MODE_LANG1;		}		break;	case WW_NICAM_BGDKL:		if (0 == mode) {			t->audmode = V4L2_TUNER_MODE_STEREO;			t->rxsubchans |= V4L2_TUNER_SUB_STEREO;		}		break;	case WW_SYSTEM_L_AM:		if (0x0 == mode && !(cx_read(AUD_INIT) & 0x04)) {			t->audmode = V4L2_TUNER_MODE_STEREO;			t->rxsubchans |= V4L2_TUNER_SUB_STEREO;		}		break ;	default:		/* nothing */		break;	}# endif	return;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7b3c6d659fc392cfd80e57840c10ccd4c6ab62c5/cx88-tvaudio.c/buggy/drivers/media/video/cx88/cx88-tvaudio.c