int value = (source&0x07)<<8|(source==0 ? 0x00:0x20); 
int value = (source&0x07)<<8|(source==0 ? 0x30:0x20); 
static void msp34xxg_set_source(struct i2c_client *client, int source){	struct msp3400c *msp = i2c_get_clientdata(client);	/* fix matrix mode to stereo and let the msp choose what	 * to output according to 'source', as recommended	 */	int value = (source&0x07)<<8|(source==0 ? 0x00:0x20);	dprintk("msp34xxg: set source to %d (0x%x)\n", source, value);	msp3400c_write(client,		       I2C_MSP3400C_DFP,		       0x08, /* Loudspeaker Output */		       value);	msp3400c_write(client,		       I2C_MSP3400C_DFP,		       0x0a, /* SCART1 DA Output */		       value);	msp3400c_write(client,		       I2C_MSP3400C_DFP,		       0x0c, /* Quasi-peak detector */		       value);	/*	 * set identification threshold. Personally, I	 * I set it to a higher value that the default	 * of 0x190 to ignore noisy stereo signals.	 * this needs tuning. (recommended range 0x00a0-0x03c0)	 * 0x7f0 = forced mono mode	 */	msp3400c_write(client,		       I2C_MSP3400C_DEM,		       0x22, /* a2 threshold for stereo/bilingual */		       source==0 ? 0x7f0:stereo_threshold);	msp->source=source;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/faf8b24968ce6392ea68d9afc7de1ffbc38c1f6c/msp3400.c/buggy/drivers/media/video/msp3400.c