forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/drivers/portman2x4.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for Midiman Portman2x4 parallel port midi interface
34 *
45 * 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.
196 *
207 * ChangeLog
218 * Jan 24 2007 Matthias Koenig <mkoenig@suse.de>
....@@ -470,7 +457,7 @@
470457
471458 /* Set for RXDATA0 where no damage will be done. */
472459 /* 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. */
474461
475462 /* 6 */
476463 if ((parport_read_status(p) & ESTB) != ESTB)
....@@ -480,7 +467,7 @@
480467 parport_write_control(p, 0); /* Reset Strobe=0. */
481468
482469 /* 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.
484471 */
485472 /* 8 */
486473 parport_write_control(p, TXDATA0); /* Tx channel 0, strobe off. */