Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/emu10k1/emumpu401.c

    r598 r679  
     1// SPDX-License-Identifier: GPL-2.0-or-later
    12/*
    23 *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
    34 *  Routines for control of EMU10K1 MPU-401 in UART mode
    4  *
    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., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    19  *
    205 */
    216
     
    6550#ifdef CONFIG_SND_DEBUG
    6651        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));
    6855#endif
    6956}
     
    142129        spin_unlock_irqrestore(&midi->input_lock, flags);
    143130        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",
    145133                           cmd, emu->port,
    146134                           mpu401_read_stat(emu, midi),
     
    306294 */
    307295
    308 static struct snd_rawmidi_ops snd_emu10k1_midi_output =
     296static const struct snd_rawmidi_ops snd_emu10k1_midi_output =
    309297{
    310298        .open =         snd_emu10k1_midi_output_open,
     
    313301};
    314302
    315 static struct snd_rawmidi_ops snd_emu10k1_midi_input =
     303static const struct snd_rawmidi_ops snd_emu10k1_midi_input =
    316304{
    317305        .open =         snd_emu10k1_midi_input_open,
     
    327315}
    328316
    329 static int __devinit emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name)
     317static int emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name)
    330318{
    331319        struct snd_rawmidi *rmidi;
     
    350338}
    351339
    352 int __devinit snd_emu10k1_midi(struct snd_emu10k1 *emu)
     340int snd_emu10k1_midi(struct snd_emu10k1 *emu)
    353341{
    354342        struct snd_emu10k1_midi *midi = &emu->midi;
     
    367355}
    368356
    369 int __devinit snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu)
     357int snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu)
    370358{
    371359        struct snd_emu10k1_midi *midi;
Note: See TracChangeset for help on using the changeset viewer.