/* MTCOMPRESSION: used to enable compression. Sets the IDRC on/off.  */
int tape_std_mtcompression(struct tape_device *device, int mt_count)
/* MTCOMPRESSION: used to enable compression. Sets the IDRC on/off.  */
int tape_std_mtcompression(struct tape_device *device, int mt_count)
{
	struct tape_request *request;
	if (mt_count < 0 || mt_count > 1) {
		DBF_EXCEPTION(6, "xcom parm\n");
		return -EINVAL;
	}
	request = tape_alloc_request(2, 0);
	if (IS_ERR(request))
		return PTR_ERR(request);
	request->op = TO_NOP;
	if (mt_count == 0)
		*device->modeset_byte &= ~0x08;
	else
		*device->modeset_byte |= 0x08;
	tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, device->modeset_byte);
	tape_ccw_end(request->cpaddr + 1, NOP, 0, NULL);
	return tape_do_io_free(device, request);
}