You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'topic/misc' into for-linus
This commit is contained in:
+1
-1
@@ -450,7 +450,7 @@ struct snd_pcm_notify {
|
||||
|
||||
extern const struct file_operations snd_pcm_f_ops[2];
|
||||
|
||||
int snd_pcm_new(struct snd_card *card, char *id, int device,
|
||||
int snd_pcm_new(struct snd_card *card, const char *id, int device,
|
||||
int playback_count, int capture_count,
|
||||
struct snd_pcm **rpcm);
|
||||
int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* include/version.h */
|
||||
#define CONFIG_SND_VERSION "1.0.18a"
|
||||
#define CONFIG_SND_VERSION "1.0.19"
|
||||
#define CONFIG_SND_DATE ""
|
||||
|
||||
+31
-18
@@ -1160,9 +1160,11 @@ snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream, const
|
||||
runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
|
||||
#ifdef OSS_DEBUG
|
||||
if (runtime->status->state == SNDRV_PCM_STATE_XRUN)
|
||||
printk("pcm_oss: write: recovering from XRUN\n");
|
||||
printk(KERN_DEBUG "pcm_oss: write: "
|
||||
"recovering from XRUN\n");
|
||||
else
|
||||
printk("pcm_oss: write: recovering from SUSPEND\n");
|
||||
printk(KERN_DEBUG "pcm_oss: write: "
|
||||
"recovering from SUSPEND\n");
|
||||
#endif
|
||||
ret = snd_pcm_oss_prepare(substream);
|
||||
if (ret < 0)
|
||||
@@ -1196,9 +1198,11 @@ snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream, char *p
|
||||
runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
|
||||
#ifdef OSS_DEBUG
|
||||
if (runtime->status->state == SNDRV_PCM_STATE_XRUN)
|
||||
printk("pcm_oss: read: recovering from XRUN\n");
|
||||
printk(KERN_DEBUG "pcm_oss: read: "
|
||||
"recovering from XRUN\n");
|
||||
else
|
||||
printk("pcm_oss: read: recovering from SUSPEND\n");
|
||||
printk(KERN_DEBUG "pcm_oss: read: "
|
||||
"recovering from SUSPEND\n");
|
||||
#endif
|
||||
ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
|
||||
if (ret < 0)
|
||||
@@ -1242,9 +1246,11 @@ snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void
|
||||
runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
|
||||
#ifdef OSS_DEBUG
|
||||
if (runtime->status->state == SNDRV_PCM_STATE_XRUN)
|
||||
printk("pcm_oss: writev: recovering from XRUN\n");
|
||||
printk(KERN_DEBUG "pcm_oss: writev: "
|
||||
"recovering from XRUN\n");
|
||||
else
|
||||
printk("pcm_oss: writev: recovering from SUSPEND\n");
|
||||
printk(KERN_DEBUG "pcm_oss: writev: "
|
||||
"recovering from SUSPEND\n");
|
||||
#endif
|
||||
ret = snd_pcm_oss_prepare(substream);
|
||||
if (ret < 0)
|
||||
@@ -1278,9 +1284,11 @@ snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void *
|
||||
runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
|
||||
#ifdef OSS_DEBUG
|
||||
if (runtime->status->state == SNDRV_PCM_STATE_XRUN)
|
||||
printk("pcm_oss: readv: recovering from XRUN\n");
|
||||
printk(KERN_DEBUG "pcm_oss: readv: "
|
||||
"recovering from XRUN\n");
|
||||
else
|
||||
printk("pcm_oss: readv: recovering from SUSPEND\n");
|
||||
printk(KERN_DEBUG "pcm_oss: readv: "
|
||||
"recovering from SUSPEND\n");
|
||||
#endif
|
||||
ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
|
||||
if (ret < 0)
|
||||
@@ -1533,7 +1541,7 @@ static int snd_pcm_oss_sync1(struct snd_pcm_substream *substream, size_t size)
|
||||
init_waitqueue_entry(&wait, current);
|
||||
add_wait_queue(&runtime->sleep, &wait);
|
||||
#ifdef OSS_DEBUG
|
||||
printk("sync1: size = %li\n", size);
|
||||
printk(KERN_DEBUG "sync1: size = %li\n", size);
|
||||
#endif
|
||||
while (1) {
|
||||
result = snd_pcm_oss_write2(substream, runtime->oss.buffer, size, 1);
|
||||
@@ -1590,7 +1598,7 @@ static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file)
|
||||
mutex_lock(&runtime->oss.params_lock);
|
||||
if (runtime->oss.buffer_used > 0) {
|
||||
#ifdef OSS_DEBUG
|
||||
printk("sync: buffer_used\n");
|
||||
printk(KERN_DEBUG "sync: buffer_used\n");
|
||||
#endif
|
||||
size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width;
|
||||
snd_pcm_format_set_silence(format,
|
||||
@@ -1603,7 +1611,7 @@ static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file)
|
||||
}
|
||||
} else if (runtime->oss.period_ptr > 0) {
|
||||
#ifdef OSS_DEBUG
|
||||
printk("sync: period_ptr\n");
|
||||
printk(KERN_DEBUG "sync: period_ptr\n");
|
||||
#endif
|
||||
size = runtime->oss.period_bytes - runtime->oss.period_ptr;
|
||||
snd_pcm_format_set_silence(format,
|
||||
@@ -1952,7 +1960,7 @@ static int snd_pcm_oss_set_trigger(struct snd_pcm_oss_file *pcm_oss_file, int tr
|
||||
int err, cmd;
|
||||
|
||||
#ifdef OSS_DEBUG
|
||||
printk("pcm_oss: trigger = 0x%x\n", trigger);
|
||||
printk(KERN_DEBUG "pcm_oss: trigger = 0x%x\n", trigger);
|
||||
#endif
|
||||
|
||||
psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
|
||||
@@ -2170,7 +2178,9 @@ static int snd_pcm_oss_get_space(struct snd_pcm_oss_file *pcm_oss_file, int stre
|
||||
}
|
||||
|
||||
#ifdef OSS_DEBUG
|
||||
printk("pcm_oss: space: bytes = %i, fragments = %i, fragstotal = %i, fragsize = %i\n", info.bytes, info.fragments, info.fragstotal, info.fragsize);
|
||||
printk(KERN_DEBUG "pcm_oss: space: bytes = %i, fragments = %i, "
|
||||
"fragstotal = %i, fragsize = %i\n",
|
||||
info.bytes, info.fragments, info.fragstotal, info.fragsize);
|
||||
#endif
|
||||
if (copy_to_user(_info, &info, sizeof(info)))
|
||||
return -EFAULT;
|
||||
@@ -2473,7 +2483,7 @@ static long snd_pcm_oss_ioctl(struct file *file, unsigned int cmd, unsigned long
|
||||
if (((cmd >> 8) & 0xff) != 'P')
|
||||
return -EINVAL;
|
||||
#ifdef OSS_DEBUG
|
||||
printk("pcm_oss: ioctl = 0x%x\n", cmd);
|
||||
printk(KERN_DEBUG "pcm_oss: ioctl = 0x%x\n", cmd);
|
||||
#endif
|
||||
switch (cmd) {
|
||||
case SNDCTL_DSP_RESET:
|
||||
@@ -2627,7 +2637,8 @@ static ssize_t snd_pcm_oss_read(struct file *file, char __user *buf, size_t coun
|
||||
#else
|
||||
{
|
||||
ssize_t res = snd_pcm_oss_read1(substream, buf, count);
|
||||
printk("pcm_oss: read %li bytes (returned %li bytes)\n", (long)count, (long)res);
|
||||
printk(KERN_DEBUG "pcm_oss: read %li bytes "
|
||||
"(returned %li bytes)\n", (long)count, (long)res);
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
@@ -2646,7 +2657,8 @@ static ssize_t snd_pcm_oss_write(struct file *file, const char __user *buf, size
|
||||
substream->f_flags = file->f_flags & O_NONBLOCK;
|
||||
result = snd_pcm_oss_write1(substream, buf, count);
|
||||
#ifdef OSS_DEBUG
|
||||
printk("pcm_oss: write %li bytes (wrote %li bytes)\n", (long)count, (long)result);
|
||||
printk(KERN_DEBUG "pcm_oss: write %li bytes (wrote %li bytes)\n",
|
||||
(long)count, (long)result);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
@@ -2720,7 +2732,7 @@ static int snd_pcm_oss_mmap(struct file *file, struct vm_area_struct *area)
|
||||
int err;
|
||||
|
||||
#ifdef OSS_DEBUG
|
||||
printk("pcm_oss: mmap begin\n");
|
||||
printk(KERN_DEBUG "pcm_oss: mmap begin\n");
|
||||
#endif
|
||||
pcm_oss_file = file->private_data;
|
||||
switch ((area->vm_flags & (VM_READ | VM_WRITE))) {
|
||||
@@ -2770,7 +2782,8 @@ static int snd_pcm_oss_mmap(struct file *file, struct vm_area_struct *area)
|
||||
runtime->silence_threshold = 0;
|
||||
runtime->silence_size = 0;
|
||||
#ifdef OSS_DEBUG
|
||||
printk("pcm_oss: mmap ok, bytes = 0x%x\n", runtime->oss.mmap_bytes);
|
||||
printk(KERN_DEBUG "pcm_oss: mmap ok, bytes = 0x%x\n",
|
||||
runtime->oss.mmap_bytes);
|
||||
#endif
|
||||
/* In mmap mode we never stop */
|
||||
runtime->stop_threshold = runtime->boundary;
|
||||
|
||||
@@ -176,7 +176,7 @@ static inline int snd_pcm_plug_slave_format(int format, struct snd_mask *format_
|
||||
#endif
|
||||
|
||||
#ifdef PLUGIN_DEBUG
|
||||
#define pdprintf( fmt, args... ) printk( "plugin: " fmt, ##args)
|
||||
#define pdprintf(fmt, args...) printk(KERN_DEBUG "plugin: " fmt, ##args)
|
||||
#else
|
||||
#define pdprintf(fmt, args...)
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -691,7 +691,7 @@ EXPORT_SYMBOL(snd_pcm_new_stream);
|
||||
*
|
||||
* Returns zero if successful, or a negative error code on failure.
|
||||
*/
|
||||
int snd_pcm_new(struct snd_card *card, char *id, int device,
|
||||
int snd_pcm_new(struct snd_card *card, const char *id, int device,
|
||||
int playback_count, int capture_count,
|
||||
struct snd_pcm ** rpcm)
|
||||
{
|
||||
|
||||
@@ -186,7 +186,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
|
||||
if (!(params->rmask & (1 << k)))
|
||||
continue;
|
||||
#ifdef RULES_DEBUG
|
||||
printk("%s = ", snd_pcm_hw_param_names[k]);
|
||||
printk(KERN_DEBUG "%s = ", snd_pcm_hw_param_names[k]);
|
||||
printk("%04x%04x%04x%04x -> ", m->bits[3], m->bits[2], m->bits[1], m->bits[0]);
|
||||
#endif
|
||||
changed = snd_mask_refine(m, constrs_mask(constrs, k));
|
||||
@@ -206,7 +206,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
|
||||
if (!(params->rmask & (1 << k)))
|
||||
continue;
|
||||
#ifdef RULES_DEBUG
|
||||
printk("%s = ", snd_pcm_hw_param_names[k]);
|
||||
printk(KERN_DEBUG "%s = ", snd_pcm_hw_param_names[k]);
|
||||
if (i->empty)
|
||||
printk("empty");
|
||||
else
|
||||
@@ -251,7 +251,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
|
||||
if (!doit)
|
||||
continue;
|
||||
#ifdef RULES_DEBUG
|
||||
printk("Rule %d [%p]: ", k, r->func);
|
||||
printk(KERN_DEBUG "Rule %d [%p]: ", k, r->func);
|
||||
if (r->var >= 0) {
|
||||
printk("%s = ", snd_pcm_hw_param_names[r->var]);
|
||||
if (hw_is_mask(r->var)) {
|
||||
|
||||
@@ -181,7 +181,7 @@ char *enabled_str(int bool);
|
||||
/* for debug */
|
||||
#ifdef SNDRV_SEQ_OSS_DEBUG
|
||||
extern int seq_oss_debug;
|
||||
#define debug_printk(x) do { if (seq_oss_debug > 0) snd_printk x; } while (0)
|
||||
#define debug_printk(x) do { if (seq_oss_debug > 0) snd_printd x; } while (0)
|
||||
#else
|
||||
#define debug_printk(x) /**/
|
||||
#endif
|
||||
|
||||
@@ -321,7 +321,8 @@ void snd_seq_prioq_leave(struct snd_seq_prioq * f, int client, int timestamp)
|
||||
freeprev = cell;
|
||||
} else {
|
||||
#if 0
|
||||
printk("type = %i, source = %i, dest = %i, client = %i\n",
|
||||
printk(KERN_DEBUG "type = %i, source = %i, dest = %i, "
|
||||
"client = %i\n",
|
||||
cell->event.type,
|
||||
cell->event.source.client,
|
||||
cell->event.dest.client,
|
||||
|
||||
@@ -303,8 +303,10 @@ static void snd_mtpav_output_port_write(struct mtpav *mtp_card,
|
||||
|
||||
snd_mtpav_send_byte(mtp_card, 0xf5);
|
||||
snd_mtpav_send_byte(mtp_card, portp->hwport);
|
||||
//snd_printk("new outport: 0x%x\n", (unsigned int) portp->hwport);
|
||||
|
||||
/*
|
||||
snd_printk(KERN_DEBUG "new outport: 0x%x\n",
|
||||
(unsigned int) portp->hwport);
|
||||
*/
|
||||
if (!(outbyte & 0x80) && portp->running_status)
|
||||
snd_mtpav_send_byte(mtp_card, portp->running_status);
|
||||
}
|
||||
@@ -540,7 +542,7 @@ static void snd_mtpav_read_bytes(struct mtpav *mcrd)
|
||||
|
||||
u8 sbyt = snd_mtpav_getreg(mcrd, SREG);
|
||||
|
||||
//printk("snd_mtpav_read_bytes() sbyt: 0x%x\n", sbyt);
|
||||
/* printk(KERN_DEBUG "snd_mtpav_read_bytes() sbyt: 0x%x\n", sbyt); */
|
||||
|
||||
if (!(sbyt & SIGS_BYTE))
|
||||
return;
|
||||
@@ -585,12 +587,12 @@ static irqreturn_t snd_mtpav_irqh(int irq, void *dev_id)
|
||||
static int __devinit snd_mtpav_get_ISA(struct mtpav * mcard)
|
||||
{
|
||||
if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) {
|
||||
snd_printk("MTVAP port 0x%lx is busy\n", port);
|
||||
snd_printk(KERN_ERR "MTVAP port 0x%lx is busy\n", port);
|
||||
return -EBUSY;
|
||||
}
|
||||
mcard->port = port;
|
||||
if (request_irq(irq, snd_mtpav_irqh, IRQF_DISABLED, "MOTU MTPAV", mcard)) {
|
||||
snd_printk("MTVAP IRQ %d busy\n", irq);
|
||||
snd_printk(KERN_ERR "MTVAP IRQ %d busy\n", irq);
|
||||
return -EBUSY;
|
||||
}
|
||||
mcard->irq = irq;
|
||||
|
||||
@@ -1015,7 +1015,7 @@ static int __devinit snd_mts64_probe(struct platform_device *pdev)
|
||||
goto __err;
|
||||
}
|
||||
|
||||
snd_printk("ESI Miditerminal 4140 on 0x%lx\n", p->base);
|
||||
snd_printk(KERN_INFO "ESI Miditerminal 4140 on 0x%lx\n", p->base);
|
||||
return 0;
|
||||
|
||||
__err:
|
||||
|
||||
@@ -302,7 +302,7 @@ void snd_opl3_interrupt(struct snd_hwdep * hw)
|
||||
opl3 = hw->private_data;
|
||||
status = inb(opl3->l_port);
|
||||
#if 0
|
||||
snd_printk("AdLib IRQ status = 0x%x\n", status);
|
||||
snd_printk(KERN_DEBUG "AdLib IRQ status = 0x%x\n", status);
|
||||
#endif
|
||||
if (!(status & 0x80))
|
||||
return;
|
||||
|
||||
@@ -125,7 +125,7 @@ static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) {
|
||||
int i;
|
||||
char *str = "x.24";
|
||||
|
||||
printk("time %.5i: %s [%.2i]: ", opl3->use_time, s, voice);
|
||||
printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice);
|
||||
for (i = 0; i < opl3->max_voices; i++)
|
||||
printk("%c", *(str + opl3->voices[i].state + 1));
|
||||
printk("\n");
|
||||
@@ -218,7 +218,7 @@ static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op,
|
||||
for (i = 0; i < END; i++) {
|
||||
if (best[i].voice >= 0) {
|
||||
#ifdef DEBUG_ALLOC
|
||||
printk("%s %iop allocation on voice %i\n",
|
||||
printk(KERN_DEBUG "%s %iop allocation on voice %i\n",
|
||||
alloc_type[i], instr_4op ? 4 : 2,
|
||||
best[i].voice);
|
||||
#endif
|
||||
@@ -317,7 +317,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
|
||||
opl3 = p;
|
||||
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("Note on, ch %i, inst %i, note %i, vel %i\n",
|
||||
snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n",
|
||||
chan->number, chan->midi_program, note, vel);
|
||||
#endif
|
||||
|
||||
@@ -372,7 +372,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk(" --> OPL%i instrument: %s\n",
|
||||
snd_printk(KERN_DEBUG " --> OPL%i instrument: %s\n",
|
||||
instr_4op ? 3 : 2, patch->name);
|
||||
#endif
|
||||
/* in SYNTH mode, application takes care of voices */
|
||||
@@ -431,7 +431,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
|
||||
}
|
||||
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk(" --> setting OPL3 connection: 0x%x\n",
|
||||
snd_printk(KERN_DEBUG " --> setting OPL3 connection: 0x%x\n",
|
||||
opl3->connection_reg);
|
||||
#endif
|
||||
/*
|
||||
@@ -466,7 +466,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
|
||||
/* Program the FM voice characteristics */
|
||||
for (i = 0; i < (instr_4op ? 4 : 2); i++) {
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk(" --> programming operator %i\n", i);
|
||||
snd_printk(KERN_DEBUG " --> programming operator %i\n", i);
|
||||
#endif
|
||||
op_offset = snd_opl3_regmap[voice_offset][i];
|
||||
|
||||
@@ -546,7 +546,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
|
||||
blocknum |= OPL3_KEYON_BIT;
|
||||
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk(" --> trigger voice %i\n", voice);
|
||||
snd_printk(KERN_DEBUG " --> trigger voice %i\n", voice);
|
||||
#endif
|
||||
/* Set OPL3 KEYON_BLOCK register of requested voice */
|
||||
opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset);
|
||||
@@ -602,7 +602,7 @@ void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
|
||||
prg = extra_prg - 1;
|
||||
}
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk(" *** allocating extra program\n");
|
||||
snd_printk(KERN_DEBUG " *** allocating extra program\n");
|
||||
#endif
|
||||
goto __extra_prg;
|
||||
}
|
||||
@@ -633,7 +633,7 @@ static void snd_opl3_kill_voice(struct snd_opl3 *opl3, int voice)
|
||||
|
||||
/* kill voice */
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk(" --> kill voice %i\n", voice);
|
||||
snd_printk(KERN_DEBUG " --> kill voice %i\n", voice);
|
||||
#endif
|
||||
opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset);
|
||||
/* clear Key ON bit */
|
||||
@@ -670,7 +670,7 @@ void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan
|
||||
opl3 = p;
|
||||
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("Note off, ch %i, inst %i, note %i\n",
|
||||
snd_printk(KERN_DEBUG "Note off, ch %i, inst %i, note %i\n",
|
||||
chan->number, chan->midi_program, note);
|
||||
#endif
|
||||
|
||||
@@ -709,7 +709,7 @@ void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *cha
|
||||
|
||||
opl3 = p;
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("Key pressure, ch#: %i, inst#: %i\n",
|
||||
snd_printk(KERN_DEBUG "Key pressure, ch#: %i, inst#: %i\n",
|
||||
chan->number, chan->midi_program);
|
||||
#endif
|
||||
}
|
||||
@@ -723,7 +723,7 @@ void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan)
|
||||
|
||||
opl3 = p;
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("Terminate note, ch#: %i, inst#: %i\n",
|
||||
snd_printk(KERN_DEBUG "Terminate note, ch#: %i, inst#: %i\n",
|
||||
chan->number, chan->midi_program);
|
||||
#endif
|
||||
}
|
||||
@@ -812,7 +812,7 @@ void snd_opl3_control(void *p, int type, struct snd_midi_channel *chan)
|
||||
|
||||
opl3 = p;
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("Controller, TYPE = %i, ch#: %i, inst#: %i\n",
|
||||
snd_printk(KERN_DEBUG "Controller, TYPE = %i, ch#: %i, inst#: %i\n",
|
||||
type, chan->number, chan->midi_program);
|
||||
#endif
|
||||
|
||||
@@ -849,7 +849,7 @@ void snd_opl3_nrpn(void *p, struct snd_midi_channel *chan,
|
||||
|
||||
opl3 = p;
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("NRPN, ch#: %i, inst#: %i\n",
|
||||
snd_printk(KERN_DEBUG "NRPN, ch#: %i, inst#: %i\n",
|
||||
chan->number, chan->midi_program);
|
||||
#endif
|
||||
}
|
||||
@@ -864,6 +864,6 @@ void snd_opl3_sysex(void *p, unsigned char *buf, int len,
|
||||
|
||||
opl3 = p;
|
||||
#ifdef DEBUG_MIDI
|
||||
snd_printk("SYSEX\n");
|
||||
snd_printk(KERN_DEBUG "SYSEX\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -220,14 +220,14 @@ static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
|
||||
return -EINVAL;
|
||||
|
||||
if (count < (int)sizeof(sbi)) {
|
||||
snd_printk("FM Error: Patch record too short\n");
|
||||
snd_printk(KERN_ERR "FM Error: Patch record too short\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (copy_from_user(&sbi, buf, sizeof(sbi)))
|
||||
return -EFAULT;
|
||||
|
||||
if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) {
|
||||
snd_printk("FM Error: Invalid instrument number %d\n",
|
||||
snd_printk(KERN_ERR "FM Error: Invalid instrument number %d\n",
|
||||
sbi.channel);
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -254,7 +254,9 @@ static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd,
|
||||
opl3 = arg->private_data;
|
||||
switch (cmd) {
|
||||
case SNDCTL_FM_LOAD_INSTR:
|
||||
snd_printk("OPL3: Obsolete ioctl(SNDCTL_FM_LOAD_INSTR) used. Fix the program.\n");
|
||||
snd_printk(KERN_ERR "OPL3: "
|
||||
"Obsolete ioctl(SNDCTL_FM_LOAD_INSTR) used. "
|
||||
"Fix the program.\n");
|
||||
return -EINVAL;
|
||||
|
||||
case SNDCTL_SYNTH_MEMAVL:
|
||||
|
||||
@@ -168,7 +168,7 @@ int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file,
|
||||
|
||||
#ifdef CONFIG_SND_DEBUG
|
||||
default:
|
||||
snd_printk("unknown IOCTL: 0x%x\n", cmd);
|
||||
snd_printk(KERN_WARNING "unknown IOCTL: 0x%x\n", cmd);
|
||||
#endif
|
||||
}
|
||||
return -ENOTTY;
|
||||
|
||||
@@ -57,7 +57,7 @@ static int __devinit snd_pcsp_create(struct snd_card *card)
|
||||
else
|
||||
min_div = MAX_DIV;
|
||||
#if PCSP_DEBUG
|
||||
printk("PCSP: lpj=%li, min_div=%i, res=%li\n",
|
||||
printk(KERN_DEBUG "PCSP: lpj=%li, min_div=%i, res=%li\n",
|
||||
loops_per_jiffy, min_div, tp.tv_nsec);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -241,7 +241,8 @@ static void snd_uart16550_io_loop(struct snd_uart16550 * uart)
|
||||
snd_rawmidi_receive(uart->midi_input[substream], &c, 1);
|
||||
|
||||
if (status & UART_LSR_OE)
|
||||
snd_printk("%s: Overrun on device at 0x%lx\n",
|
||||
snd_printk(KERN_WARNING
|
||||
"%s: Overrun on device at 0x%lx\n",
|
||||
uart->rmidi->name, uart->base);
|
||||
}
|
||||
|
||||
@@ -636,7 +637,8 @@ static int snd_uart16550_output_byte(struct snd_uart16550 *uart,
|
||||
}
|
||||
} else {
|
||||
if (!snd_uart16550_write_buffer(uart, midi_byte)) {
|
||||
snd_printk("%s: Buffer overrun on device at 0x%lx\n",
|
||||
snd_printk(KERN_WARNING
|
||||
"%s: Buffer overrun on device at 0x%lx\n",
|
||||
uart->rmidi->name, uart->base);
|
||||
return 0;
|
||||
}
|
||||
@@ -815,7 +817,8 @@ static int __devinit snd_uart16550_create(struct snd_card *card,
|
||||
if (irq >= 0 && irq != SNDRV_AUTO_IRQ) {
|
||||
if (request_irq(irq, snd_uart16550_interrupt,
|
||||
IRQF_DISABLED, "Serial MIDI", uart)) {
|
||||
snd_printk("irq %d busy. Using Polling.\n", irq);
|
||||
snd_printk(KERN_WARNING
|
||||
"irq %d busy. Using Polling.\n", irq);
|
||||
} else {
|
||||
uart->irq = irq;
|
||||
}
|
||||
@@ -919,19 +922,22 @@ static int __devinit snd_serial_probe(struct platform_device *devptr)
|
||||
case SNDRV_SERIAL_GENERIC:
|
||||
break;
|
||||
default:
|
||||
snd_printk("Adaptor type is out of range 0-%d (%d)\n",
|
||||
snd_printk(KERN_ERR
|
||||
"Adaptor type is out of range 0-%d (%d)\n",
|
||||
SNDRV_SERIAL_MAX_ADAPTOR, adaptor[dev]);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (outs[dev] < 1 || outs[dev] > SNDRV_SERIAL_MAX_OUTS) {
|
||||
snd_printk("Count of outputs is out of range 1-%d (%d)\n",
|
||||
snd_printk(KERN_ERR
|
||||
"Count of outputs is out of range 1-%d (%d)\n",
|
||||
SNDRV_SERIAL_MAX_OUTS, outs[dev]);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) {
|
||||
snd_printk("Count of inputs is out of range 1-%d (%d)\n",
|
||||
snd_printk(KERN_ERR
|
||||
"Count of inputs is out of range 1-%d (%d)\n",
|
||||
SNDRV_SERIAL_MAX_INS, ins[dev]);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,9 @@ static int __devinit snd_virmidi_probe(struct platform_device *devptr)
|
||||
vmidi->card = card;
|
||||
|
||||
if (midi_devs[dev] > MAX_MIDI_DEVICES) {
|
||||
snd_printk("too much midi devices for virmidi %d: force to use %d\n", dev, MAX_MIDI_DEVICES);
|
||||
snd_printk(KERN_WARNING
|
||||
"too much midi devices for virmidi %d: "
|
||||
"force to use %d\n", dev, MAX_MIDI_DEVICES);
|
||||
midi_devs[dev] = MAX_MIDI_DEVICES;
|
||||
}
|
||||
for (idx = 0; idx < midi_devs[dev]; idx++) {
|
||||
|
||||
@@ -688,7 +688,8 @@ int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp)
|
||||
image = dsp->data + i;
|
||||
/* Wait DSP ready for a new read */
|
||||
if ((err = vx_wait_isr_bit(chip, ISR_TX_EMPTY)) < 0) {
|
||||
printk("dsp loading error at position %d\n", i);
|
||||
printk(KERN_ERR
|
||||
"dsp loading error at position %d\n", i);
|
||||
return err;
|
||||
}
|
||||
cptr = image;
|
||||
|
||||
@@ -103,7 +103,7 @@ static void vx_write_one_cbit(struct vx_core *chip, int index, int val)
|
||||
* returns the frequency of UER, or 0 if not sync,
|
||||
* or a negative error code.
|
||||
*/
|
||||
static int vx_read_uer_status(struct vx_core *chip, int *mode)
|
||||
static int vx_read_uer_status(struct vx_core *chip, unsigned int *mode)
|
||||
{
|
||||
int val, freq;
|
||||
|
||||
|
||||
@@ -143,6 +143,7 @@ static const struct ac97_codec_id snd_ac97_codec_ids[] = {
|
||||
{ 0x43525970, 0xfffffff8, "CS4202", NULL, NULL },
|
||||
{ 0x43585421, 0xffffffff, "HSD11246", NULL, NULL }, // SmartMC II
|
||||
{ 0x43585428, 0xfffffff8, "Cx20468", patch_conexant, NULL }, // SmartAMC fixme: the mask might be different
|
||||
{ 0x43585430, 0xffffffff, "Cx20468-31", patch_conexant, NULL },
|
||||
{ 0x43585431, 0xffffffff, "Cx20551", patch_cx20551, NULL },
|
||||
{ 0x44543031, 0xfffffff0, "DT0398", NULL, NULL },
|
||||
{ 0x454d4328, 0xffffffff, "EM28028", NULL, NULL }, // same as TR28028?
|
||||
@@ -1643,7 +1644,10 @@ static int snd_ac97_modem_build(struct snd_card *card, struct snd_ac97 * ac97)
|
||||
{
|
||||
int err, idx;
|
||||
|
||||
//printk("AC97_GPIO_CFG = %x\n",snd_ac97_read(ac97,AC97_GPIO_CFG));
|
||||
/*
|
||||
printk(KERN_DEBUG "AC97_GPIO_CFG = %x\n",
|
||||
snd_ac97_read(ac97,AC97_GPIO_CFG));
|
||||
*/
|
||||
snd_ac97_write(ac97, AC97_GPIO_CFG, 0xffff & ~(AC97_GPIO_LINE1_OH));
|
||||
snd_ac97_write(ac97, AC97_GPIO_POLARITY, 0xffff & ~(AC97_GPIO_LINE1_OH));
|
||||
snd_ac97_write(ac97, AC97_GPIO_STICKY, 0xffff);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user