if (j->write_buffer) { kfree(j->write_buffer); j->write_buffer = NULL; j->write_buffer_size = 0; } 
j->write_buffer = NULL; j->write_buffer_size = 0; 
static int set_play_codec(IXJ *j, int rate){	int retval = 0;	j->play_codec = rate;	switch (rate) {	case G723_63:		if (j->ver.low != 0x12 || ixj_convert_loaded) {			j->play_frame_size = 12;			j->play_mode = 0;		} else {			retval = 1;		}		break;	case G723_53:		if (j->ver.low != 0x12 || ixj_convert_loaded) {			j->play_frame_size = 10;			j->play_mode = 0;		} else {			retval = 1;		}		break;	case TS85:		if (j->dsp.low == 0x20 || j->flags.ts85_loaded) {			j->play_frame_size = 16;			j->play_mode = 0;		} else {			retval = 1;		}		break;	case TS48:		if (j->ver.low != 0x12 || ixj_convert_loaded) {			j->play_frame_size = 9;			j->play_mode = 0;		} else {			retval = 1;		}		break;	case TS41:		if (j->ver.low != 0x12 || ixj_convert_loaded) {			j->play_frame_size = 8;			j->play_mode = 0;		} else {			retval = 1;		}		break;	case G728:		if (j->dsp.low != 0x20) {			j->play_frame_size = 48;			j->play_mode = 0;		} else {			retval = 1;		}		break;	case G729:		if (j->dsp.low != 0x20) {			if (!j->flags.g729_loaded) {				retval = 1;				break;			}			switch (j->baseframe.low) {			case 0xA0:				j->play_frame_size = 10;				break;			case 0x50:				j->play_frame_size = 5;				break;			default:				j->play_frame_size = 15;				break;			}			j->play_mode = 0;		} else {			retval = 1;		}		break;	case G729B:		if (j->dsp.low != 0x20) {			if (!j->flags.g729_loaded) {				retval = 1;				break;			}			switch (j->baseframe.low) {			case 0xA0:				j->play_frame_size = 12;				break;			case 0x50:				j->play_frame_size = 6;				break;			default:				j->play_frame_size = 18;				break;			}			j->play_mode = 0;		} else {			retval = 1;		}		break;	case ULAW:		switch (j->baseframe.low) {		case 0xA0:			j->play_frame_size = 80;			break;		case 0x50:			j->play_frame_size = 40;			break;		default:			j->play_frame_size = 120;			break;		}		j->play_mode = 2;		break;	case ALAW:		switch (j->baseframe.low) {		case 0xA0:			j->play_frame_size = 80;			break;		case 0x50:			j->play_frame_size = 40;			break;		default:			j->play_frame_size = 120;			break;		}		j->play_mode = 2;		break;	case LINEAR16:		switch (j->baseframe.low) {		case 0xA0:			j->play_frame_size = 160;			break;		case 0x50:			j->play_frame_size = 80;			break;		default:			j->play_frame_size = 240;			break;		}		j->play_mode = 6;		break;	case LINEAR8:		switch (j->baseframe.low) {		case 0xA0:			j->play_frame_size = 80;			break;		case 0x50:			j->play_frame_size = 40;			break;		default:			j->play_frame_size = 120;			break;		}		j->play_mode = 4;		break;	case WSS:		switch (j->baseframe.low) {		case 0xA0:			j->play_frame_size = 80;			break;		case 0x50:			j->play_frame_size = 40;			break;		default:			j->play_frame_size = 120;			break;		}		j->play_mode = 5;		break;	default:		j->play_frame_size = 0;		j->play_mode = -1;		if (j->write_buffer) {			kfree(j->write_buffer);			j->write_buffer = NULL;			j->write_buffer_size = 0;		}		retval = 1;		break;	}	return retval;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0159f76d9f5839c3c92bc3a91c865e94d5e489a8/ixj.c/buggy/drivers/telephony/ixj.c