Changeset 679 for GPL/trunk/alsa-kernel/pci/emu10k1/irq.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/irq.c
r305 r679 1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> … … 9 10 * TODO: 10 11 * -- 11 *12 * This program is free software; you can redistribute it and/or modify13 * it under the terms of the GNU General Public License as published by14 * the Free Software Foundation; either version 2 of the License, or15 * (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 of19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the20 * GNU General Public License for more details.21 *22 * You should have received a copy of the GNU General Public License23 * along with this program; if not, write to the Free Software24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA25 *26 12 */ 27 13 … … 42 28 handled = 1; 43 29 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"); 45 32 break; 46 33 } 47 34 if (status & IPR_PCIERROR) { 48 snd_printk(KERN_ERR"interrupt: PCI error\n");35 dev_err(emu->card->dev, "interrupt: PCI error\n"); 49 36 snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); 50 37 status &= ~IPR_PCIERROR; … … 158 145 struct snd_emu10k1_voice *cvoice = &(emu->p16v_capture_voice); 159 146 160 / /printk(KERN_INFO "status2=0x%x\n", status2);147 /* dev_dbg(emu->card->dev, "status2=0x%x\n", status2); */ 161 148 orig_status2 = status2; 162 149 if(status2 & mask) { … … 164 151 snd_pcm_period_elapsed(pvoice->epcm->substream); 165 152 } 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); 167 157 } 168 158 } 169 159 if(status2 & 0x110000) { 170 / /printk(KERN_INFO "capture int found\n");160 /* dev_info(emu->card->dev, "capture int found\n"); */ 171 161 if(cvoice->use) { 172 / /printk(KERN_INFO "capture period_elapsed\n");162 /* dev_info(emu->card->dev, "capture period_elapsed\n"); */ 173 163 snd_pcm_period_elapsed(cvoice->epcm->substream); 174 164 } … … 181 171 if (status) { 182 172 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); 184 175 //make sure any interrupts we don't handle are disabled: 185 176 bits = INTE_FXDSPENABLE | … … 203 194 } 204 195 if (timeout == 1000) 205 snd_printk(KERN_INFO"emu10k1 irq routine failure\n");196 dev_info(emu->card->dev, "emu10k1 irq routine failure\n"); 206 197 207 198 return IRQ_RETVAL(handled);
Note:
See TracChangeset
for help on using the changeset viewer.