if ((rme96->pci->device != PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST && rme96->pci->device != PCI_DEVICE_ID_DIGI96_8_PRO) || (rme96->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST && 
if ((rme96->pci->device != PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST && rme96->pci->device != PCI_DEVICE_ID_RME_DIGI96_8_PRO) || (rme96->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST && 
snd_rme96_setinputtype(rme96_t *rme96,		       int type){	int n;	switch (type) {	case RME96_INPUT_OPTICAL:		rme96->wcreg = (rme96->wcreg & ~RME96_WCR_INP_0) &			~RME96_WCR_INP_1;		break;	case RME96_INPUT_COAXIAL:		rme96->wcreg = (rme96->wcreg | RME96_WCR_INP_0) &			~RME96_WCR_INP_1;		break;	case RME96_INPUT_INTERNAL:		rme96->wcreg = (rme96->wcreg & ~RME96_WCR_INP_0) |			RME96_WCR_INP_1;		break;	case RME96_INPUT_XLR:		if ((rme96->pci->device != PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST &&		     rme96->pci->device != PCI_DEVICE_ID_DIGI96_8_PRO) ||		    (rme96->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST &&		     rme96->rev > 4))		{			/* Only Digi96/8 PRO and Digi96/8 PAD supports XLR */			return -EINVAL;		}		rme96->wcreg = (rme96->wcreg | RME96_WCR_INP_0) |			RME96_WCR_INP_1;		break;	case RME96_INPUT_ANALOG:		if (!RME96_HAS_ANALOG_IN(rme96)) {			return -EINVAL;		}		rme96->areg |= RME96_AR_ANALOG;		writel(rme96->areg, rme96->iobase + RME96_IO_ADDITIONAL_REG);		if (rme96->rev < 4) {			/*			 * Revision less than 004 does not support 64 and			 * 88.2 kHz			 */			if (snd_rme96_capture_getrate(rme96, &n) == 88200) {				snd_rme96_capture_analog_setrate(rme96, 44100);			}			if (snd_rme96_capture_getrate(rme96, &n) == 64000) {				snd_rme96_capture_analog_setrate(rme96, 32000);			}		}		return 0;	default:		return -EINVAL;	}	if (type != RME96_INPUT_ANALOG && RME96_HAS_ANALOG_IN(rme96)) {		rme96->areg &= ~RME96_AR_ANALOG;		writel(rme96->areg, rme96->iobase + RME96_IO_ADDITIONAL_REG);	}	writel(rme96->wcreg, rme96->iobase + RME96_IO_CONTROL_REGISTER);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/8b7fc4214b550fafe595330e28d7c2c72b8b62f6/rme96.c/buggy/sound/pci/rme96.c