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/irq.c

    r305 r679  
     1// SPDX-License-Identifier: GPL-2.0-or-later
    12/*
    23 *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
     
    910 *  TODO:
    1011 *    --
    11  *
    12  *   This program is free software; you can redistribute it and/or modify
    13  *   it under the terms of the GNU General Public License as published by
    14  *   the Free Software Foundation; either version 2 of the License, or
    15  *   (at your option) any later version.
    16  *
    17  *   This program is distributed in the hope that it will be useful,
    18  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    19  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20  *   GNU General Public License for more details.
    21  *
    22  *   You should have received a copy of the GNU General Public License
    23  *   along with this program; if not, write to the Free Software
    24  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    25  *
    2612 */
    2713
     
    4228                handled = 1;
    4329                if ((status & 0xffffffff) == 0xffffffff) {
    44                         snd_printk(KERN_INFO "snd-emu10k1: Suspected sound card removal\n");
     30                        dev_info(emu->card->dev,
     31                                 "Suspected sound card removal\n");
    4532                        break;
    4633                }
    4734                if (status & IPR_PCIERROR) {
    48                         snd_printk(KERN_ERR "interrupt: PCI error\n");
     35                        dev_err(emu->card->dev, "interrupt: PCI error\n");
    4936                        snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE);
    5037                        status &= ~IPR_PCIERROR;
     
    158145                                struct snd_emu10k1_voice *cvoice = &(emu->p16v_capture_voice);
    159146
    160                                 //printk(KERN_INFO "status2=0x%x\n", status2);
     147                                /* dev_dbg(emu->card->dev, "status2=0x%x\n", status2); */
    161148                                orig_status2 = status2;
    162149                                if(status2 & mask) {
     
    164151                                                snd_pcm_period_elapsed(pvoice->epcm->substream);
    165152                                        } else {
    166                                                 snd_printk(KERN_ERR "p16v: status: 0x%08x, mask=0x%08x, pvoice=%p, use=%d\n", status2, mask, pvoice, pvoice->use);
     153                                                dev_err(emu->card->dev,
     154                                                        "p16v: status: 0x%08x, mask=0x%08x, pvoice=%p, use=%d\n",
     155                                                        status2, mask, pvoice,
     156                                                        pvoice->use);
    167157                                        }
    168158                                }
    169159                                if(status2 & 0x110000) {
    170                                         //printk(KERN_INFO "capture int found\n");
     160                                        /* dev_info(emu->card->dev, "capture int found\n"); */
    171161                                        if(cvoice->use) {
    172                                                 //printk(KERN_INFO "capture period_elapsed\n");
     162                                                /* dev_info(emu->card->dev, "capture period_elapsed\n"); */
    173163                                                snd_pcm_period_elapsed(cvoice->epcm->substream);
    174164                                        }
     
    181171                if (status) {
    182172                        unsigned int bits;
    183                         snd_printk(KERN_ERR "emu10k1: unhandled interrupt: 0x%08x\n", status);
     173                        dev_err(emu->card->dev,
     174                                "unhandled interrupt: 0x%08x\n", status);
    184175                        //make sure any interrupts we don't handle are disabled:
    185176                        bits = INTE_FXDSPENABLE |
     
    203194        }
    204195        if (timeout == 1000)
    205                 snd_printk(KERN_INFO "emu10k1 irq routine failure\n");
     196                dev_info(emu->card->dev, "emu10k1 irq routine failure\n");
    206197
    207198        return IRQ_RETVAL(handled);
Note: See TracChangeset for help on using the changeset viewer.