| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for Midiman Portman2x4 parallel port midi interface |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) by Levent Guendogdu <levon@feature-it.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License |
|---|
| 17 | | - * along with this program; if not, write to the Free Software |
|---|
| 18 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 19 | 6 | * |
|---|
| 20 | 7 | * ChangeLog |
|---|
| 21 | 8 | * Jan 24 2007 Matthias Koenig <mkoenig@suse.de> |
|---|
| .. | .. |
|---|
| 470 | 457 | |
|---|
| 471 | 458 | /* Set for RXDATA0 where no damage will be done. */ |
|---|
| 472 | 459 | /* 5 */ |
|---|
| 473 | | - parport_write_control(p, RXDATA0 + STROBE); /* Write Strobe=1 to command reg. */ |
|---|
| 460 | + parport_write_control(p, RXDATA0 | STROBE); /* Write Strobe=1 to command reg. */ |
|---|
| 474 | 461 | |
|---|
| 475 | 462 | /* 6 */ |
|---|
| 476 | 463 | if ((parport_read_status(p) & ESTB) != ESTB) |
|---|
| .. | .. |
|---|
| 480 | 467 | parport_write_control(p, 0); /* Reset Strobe=0. */ |
|---|
| 481 | 468 | |
|---|
| 482 | 469 | /* Check if Tx circuitry is functioning properly. If initialized |
|---|
| 483 | | - * unit TxEmpty is false, send out char and see if if goes true. |
|---|
| 470 | + * unit TxEmpty is false, send out char and see if it goes true. |
|---|
| 484 | 471 | */ |
|---|
| 485 | 472 | /* 8 */ |
|---|
| 486 | 473 | parport_write_control(p, TXDATA0); /* Tx channel 0, strobe off. */ |
|---|