Changeset 679 for GPL/trunk/alsa-kernel/pci/emu10k1/emumpu401.c
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/emu10k1/emumpu401.c
r598 r679 1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 3 4 * Routines for control of EMU10K1 MPU-401 in UART mode 4 *5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by8 * the Free Software Foundation; either version 2 of the License, or9 * (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 of13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14 * GNU General Public License for more details.15 *16 * You should have received a copy of the GNU General Public License17 * along with this program; if not, write to the Free Software18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19 *20 5 */ 21 6 … … 65 50 #ifdef CONFIG_SND_DEBUG 66 51 if (timeout <= 0) 67 snd_printk(KERN_ERR "cmd: clear rx timeout (status = 0x%x)\n", mpu401_read_stat(emu, mpu)); 52 dev_err(emu->card->dev, 53 "cmd: clear rx timeout (status = 0x%x)\n", 54 mpu401_read_stat(emu, mpu)); 68 55 #endif 69 56 } … … 142 129 spin_unlock_irqrestore(&midi->input_lock, flags); 143 130 if (!ok) { 144 snd_printk(KERN_ERR "midi_cmd: 0x%x failed at 0x%lx (status = 0x%x, data = 0x%x)!!!\n", 131 dev_err(emu->card->dev, 132 "midi_cmd: 0x%x failed at 0x%lx (status = 0x%x, data = 0x%x)!!!\n", 145 133 cmd, emu->port, 146 134 mpu401_read_stat(emu, midi), … … 306 294 */ 307 295 308 static struct snd_rawmidi_ops snd_emu10k1_midi_output =296 static const struct snd_rawmidi_ops snd_emu10k1_midi_output = 309 297 { 310 298 .open = snd_emu10k1_midi_output_open, … … 313 301 }; 314 302 315 static struct snd_rawmidi_ops snd_emu10k1_midi_input =303 static const struct snd_rawmidi_ops snd_emu10k1_midi_input = 316 304 { 317 305 .open = snd_emu10k1_midi_input_open, … … 327 315 } 328 316 329 static int __devinitemu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name)317 static int emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name) 330 318 { 331 319 struct snd_rawmidi *rmidi; … … 350 338 } 351 339 352 int __devinitsnd_emu10k1_midi(struct snd_emu10k1 *emu)340 int snd_emu10k1_midi(struct snd_emu10k1 *emu) 353 341 { 354 342 struct snd_emu10k1_midi *midi = &emu->midi; … … 367 355 } 368 356 369 int __devinitsnd_emu10k1_audigy_midi(struct snd_emu10k1 *emu)357 int snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu) 370 358 { 371 359 struct snd_emu10k1_midi *midi;
Note:
See TracChangeset
for help on using the changeset viewer.