2 * Driver for Digigram VX soundcards
6 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include <sound/driver.h>
24 #include <linux/delay.h>
25 #include <linux/slab.h>
26 #include <linux/interrupt.h>
27 #include <linux/init.h>
28 #include <linux/firmware.h>
29 #include <sound/core.h>
30 #include <sound/pcm.h>
31 #include <sound/asoundef.h>
32 #include <sound/info.h>
34 #include <sound/vx_core.h>
37 MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>");
38 MODULE_DESCRIPTION("Common routines for Digigram VX drivers");
39 MODULE_LICENSE("GPL");
43 * snd_vx_delay - delay for the specified time
44 * @xmsec: the time to delay in msec
46 void snd_vx_delay(vx_core_t *chip, int xmsec)
48 if (! in_interrupt() && xmsec >= 1000 / HZ) {
49 set_current_state(TASK_UNINTERRUPTIBLE);
50 schedule_timeout((xmsec * HZ + 999) / 1000);
57 * vx_check_reg_bit - wait for the specified bit is set/reset on a register
58 * @reg: register to check
60 * @bit: resultant bit to be checked
61 * @time: time-out of loop in msec
63 * returns zero if a bit matches, or a negative error code.
65 int snd_vx_check_reg_bit(vx_core_t *chip, int reg, int mask, int bit, int time)
67 unsigned long end_time = jiffies + (time * HZ + 999) / 1000;
68 #ifdef CONFIG_SND_DEBUG
69 static char *reg_names[VX_REG_MAX] = {
70 "ICR", "CVR", "ISR", "IVR", "RXH", "RXM", "RXL",
71 "DMA", "CDSP", "RFREQ", "RUER/V2", "DATA", "MEMIRQ",
72 "ACQ", "BIT0", "BIT1", "MIC0", "MIC1", "MIC2",
73 "MIC3", "INTCSR", "CNTRL", "GPIOC",
74 "LOFREQ", "HIFREQ", "CSUER", "RUER"
78 if ((snd_vx_inb(chip, reg) & mask) == bit)
80 //snd_vx_delay(chip, 10);
81 } while (time_after_eq(end_time, jiffies));
82 snd_printd(KERN_DEBUG "vx_check_reg_bit: timeout, reg=%s, mask=0x%x, val=0x%x\n", reg_names[reg], mask, snd_vx_inb(chip, reg));
87 * vx_send_irq_dsp - set command irq bit
88 * @num: the requested IRQ type, IRQ_XXX
90 * this triggers the specified IRQ request
91 * returns 0 if successful, or a negative error code.
94 static int vx_send_irq_dsp(vx_core_t *chip, int num)
99 if (snd_vx_check_reg_bit(chip, VX_CVR, CVR_HC, 0, 200) < 0)
103 if (vx_has_new_dsp(chip))
104 nirq += VXP_IRQ_OFFSET;
105 vx_outb(chip, CVR, (nirq >> 1) | CVR_HC);
111 * vx_reset_chk - reset CHK bit on ISR
113 * returns 0 if successful, or a negative error code.
115 static int vx_reset_chk(vx_core_t *chip)
118 if (vx_send_irq_dsp(chip, IRQ_RESET_CHK) < 0)
120 /* Wait until CHK = 0 */
121 if (vx_check_isr(chip, ISR_CHK, 0, 200) < 0)
127 * vx_transfer_end - terminate message transfer
128 * @cmd: IRQ message to send (IRQ_MESS_XXX_END)
130 * returns 0 if successful, or a negative error code.
131 * the error code can be VX-specific, retrieved via vx_get_error().
132 * NB: call with spinlock held!
134 static int vx_transfer_end(vx_core_t *chip, int cmd)
138 if ((err = vx_reset_chk(chip)) < 0)
141 /* irq MESS_READ/WRITE_END */
142 if ((err = vx_send_irq_dsp(chip, cmd)) < 0)
146 if ((err = vx_wait_isr_bit(chip, ISR_CHK)) < 0)
149 /* If error, Read RX */
150 if ((err = vx_inb(chip, ISR)) & ISR_ERR) {
151 if ((err = vx_wait_for_rx_full(chip)) < 0) {
152 snd_printd(KERN_DEBUG "transfer_end: error in rx_full\n");
155 err = vx_inb(chip, RXH) << 16;
156 err |= vx_inb(chip, RXM) << 8;
157 err |= vx_inb(chip, RXL);
158 snd_printd(KERN_DEBUG "transfer_end: error = 0x%x\n", err);
159 return -(VX_ERR_MASK | err);
165 * vx_read_status - return the status rmh
166 * @rmh: rmh record to store the status
168 * returns 0 if successful, or a negative error code.
169 * the error code can be VX-specific, retrieved via vx_get_error().
170 * NB: call with spinlock held!
172 static int vx_read_status(vx_core_t *chip, struct vx_rmh *rmh)
174 int i, err, val, size;
176 /* no read necessary? */
177 if (rmh->DspStat == RMH_SSIZE_FIXED && rmh->LgStat == 0)
180 /* Wait for RX full (with timeout protection)
181 * The first word of status is in RX
183 err = vx_wait_for_rx_full(chip);
188 val = vx_inb(chip, RXH) << 16;
189 val |= vx_inb(chip, RXM) << 8;
190 val |= vx_inb(chip, RXL);
192 /* If status given by DSP, let's decode its size */
193 switch (rmh->DspStat) {
196 rmh->Stat[0] = val & 0xffff00;
197 rmh->LgStat = size + 1;
200 /* Let's count the arg numbers from a mask */
208 rmh->LgStat = size + 1;
211 /* else retrieve the status length given by the driver */
213 rmh->Stat[0] = val; /* Val is the status 1st word */
214 size--; /* hence adjust remaining length */
220 snd_assert(size <= SIZE_MAX_STATUS, return -EINVAL);
222 for (i = 1; i <= size; i++) {
223 /* trigger an irq MESS_WRITE_NEXT */
224 err = vx_send_irq_dsp(chip, IRQ_MESS_WRITE_NEXT);
227 /* Wait for RX full (with timeout protection) */
228 err = vx_wait_for_rx_full(chip);
231 rmh->Stat[i] = vx_inb(chip, RXH) << 16;
232 rmh->Stat[i] |= vx_inb(chip, RXM) << 8;
233 rmh->Stat[i] |= vx_inb(chip, RXL);
236 return vx_transfer_end(chip, IRQ_MESS_WRITE_END);
240 #define MASK_MORE_THAN_1_WORD_COMMAND 0x00008000
241 #define MASK_1_WORD_COMMAND 0x00ff7fff
244 * vx_send_msg_nolock - send a DSP message and read back the status
245 * @rmh: the rmh record to send and receive
247 * returns 0 if successful, or a negative error code.
248 * the error code can be VX-specific, retrieved via vx_get_error().
250 * this function doesn't call spinlock at all.
252 int vx_send_msg_nolock(vx_core_t *chip, struct vx_rmh *rmh)
256 if (chip->chip_status & VX_STAT_IS_STALE)
259 if ((err = vx_reset_chk(chip)) < 0) {
260 snd_printd(KERN_DEBUG "vx_send_msg: vx_reset_chk error\n");
265 printk(KERN_DEBUG "rmh: cmd = 0x%06x, length = %d, stype = %d\n",
266 rmh->Cmd[0], rmh->LgCmd, rmh->DspStat);
267 if (rmh->LgCmd > 1) {
268 printk(KERN_DEBUG " ");
269 for (i = 1; i < rmh->LgCmd; i++)
270 printk("0x%06x ", rmh->Cmd[i]);
274 /* Check bit M is set according to length of the command */
276 rmh->Cmd[0] |= MASK_MORE_THAN_1_WORD_COMMAND;
278 rmh->Cmd[0] &= MASK_1_WORD_COMMAND;
280 /* Wait for TX empty */
281 if ((err = vx_wait_isr_bit(chip, ISR_TX_EMPTY)) < 0) {
282 snd_printd(KERN_DEBUG "vx_send_msg: wait tx empty error\n");
287 vx_outb(chip, TXH, (rmh->Cmd[0] >> 16) & 0xff);
288 vx_outb(chip, TXM, (rmh->Cmd[0] >> 8) & 0xff);
289 vx_outb(chip, TXL, rmh->Cmd[0] & 0xff);
291 /* Trigger irq MESSAGE */
292 if ((err = vx_send_irq_dsp(chip, IRQ_MESSAGE)) < 0) {
293 snd_printd(KERN_DEBUG "vx_send_msg: send IRQ_MESSAGE error\n");
297 /* Wait for CHK = 1 */
298 if ((err = vx_wait_isr_bit(chip, ISR_CHK)) < 0)
301 /* If error, get error value from RX */
302 if (vx_inb(chip, ISR) & ISR_ERR) {
303 if ((err = vx_wait_for_rx_full(chip)) < 0) {
304 snd_printd(KERN_DEBUG "vx_send_msg: rx_full read error\n");
307 err = vx_inb(chip, RXH) << 16;
308 err |= vx_inb(chip, RXM) << 8;
309 err |= vx_inb(chip, RXL);
310 snd_printd(KERN_DEBUG "msg got error = 0x%x at cmd[0]\n", err);
311 err = -(VX_ERR_MASK | err);
315 /* Send the other words */
316 if (rmh->LgCmd > 1) {
317 for (i = 1; i < rmh->LgCmd; i++) {
318 /* Wait for TX ready */
319 if ((err = vx_wait_isr_bit(chip, ISR_TX_READY)) < 0) {
320 snd_printd(KERN_DEBUG "vx_send_msg: tx_ready error\n");
325 vx_outb(chip, TXH, (rmh->Cmd[i] >> 16) & 0xff);
326 vx_outb(chip, TXM, (rmh->Cmd[i] >> 8) & 0xff);
327 vx_outb(chip, TXL, rmh->Cmd[i] & 0xff);
329 /* Trigger irq MESS_READ_NEXT */
330 if ((err = vx_send_irq_dsp(chip, IRQ_MESS_READ_NEXT)) < 0) {
331 snd_printd(KERN_DEBUG "vx_send_msg: IRQ_READ_NEXT error\n");
335 /* Wait for TX empty */
336 if ((err = vx_wait_isr_bit(chip, ISR_TX_READY)) < 0) {
337 snd_printd(KERN_DEBUG "vx_send_msg: TX_READY error\n");
340 /* End of transfer */
341 err = vx_transfer_end(chip, IRQ_MESS_READ_END);
346 return vx_read_status(chip, rmh);
351 * vx_send_msg - send a DSP message with spinlock
352 * @rmh: the rmh record to send and receive
354 * returns 0 if successful, or a negative error code.
355 * see vx_send_msg_nolock().
357 int vx_send_msg(vx_core_t *chip, struct vx_rmh *rmh)
362 spin_lock_irqsave(&chip->lock, flags);
363 err = vx_send_msg_nolock(chip, rmh);
364 spin_unlock_irqrestore(&chip->lock, flags);
370 * vx_send_rih_nolock - send an RIH to xilinx
371 * @cmd: the command to send
373 * returns 0 if successful, or a negative error code.
374 * the error code can be VX-specific, retrieved via vx_get_error().
376 * this function doesn't call spinlock at all.
378 * unlike RMH, no command is sent to DSP.
380 int vx_send_rih_nolock(vx_core_t *chip, int cmd)
384 if (chip->chip_status & VX_STAT_IS_STALE)
388 printk(KERN_DEBUG "send_rih: cmd = 0x%x\n", cmd);
390 if ((err = vx_reset_chk(chip)) < 0)
393 if ((err = vx_send_irq_dsp(chip, cmd)) < 0)
396 if ((err = vx_wait_isr_bit(chip, ISR_CHK)) < 0)
398 /* If error, read RX */
399 if (vx_inb(chip, ISR) & ISR_ERR) {
400 if ((err = vx_wait_for_rx_full(chip)) < 0)
402 err = vx_inb(chip, RXH) << 16;
403 err |= vx_inb(chip, RXM) << 8;
404 err |= vx_inb(chip, RXL);
405 return -(VX_ERR_MASK | err);
412 * vx_send_rih - send an RIH with spinlock
413 * @cmd: the command to send
415 * see vx_send_rih_nolock().
417 int vx_send_rih(vx_core_t *chip, int cmd)
422 spin_lock_irqsave(&chip->lock, flags);
423 err = vx_send_rih_nolock(chip, cmd);
424 spin_unlock_irqrestore(&chip->lock, flags);
428 #define END_OF_RESET_WAIT_TIME 500 /* us */
431 * snd_vx_boot_xilinx - boot up the xilinx interface
432 * @boot: the boot record to load
434 int snd_vx_load_boot_image(vx_core_t *chip, const struct firmware *boot)
437 int no_fillup = vx_has_new_dsp(chip);
439 /* check the length of boot image */
440 snd_assert(boot->size > 0, return -EINVAL);
441 snd_assert(boot->size % 3 == 0, return -EINVAL);
444 /* more strict check */
445 unsigned int c = ((u32)boot->data[0] << 16) | ((u32)boot->data[1] << 8) | boot->data[2];
446 snd_assert(boot->size == (c + 2) * 3, return -EINVAL);
453 udelay(END_OF_RESET_WAIT_TIME); /* another wait? */
455 /* download boot strap */
456 for (i = 0; i < 0x600; i += 3) {
457 if (i >= boot->size) {
460 if (vx_wait_isr_bit(chip, ISR_TX_EMPTY) < 0) {
461 snd_printk(KERN_ERR "dsp boot failed at %d\n", i);
464 vx_outb(chip, TXH, 0);
465 vx_outb(chip, TXM, 0);
466 vx_outb(chip, TXL, 0);
468 unsigned char *image = boot->data + i;
469 if (vx_wait_isr_bit(chip, ISR_TX_EMPTY) < 0) {
470 snd_printk(KERN_ERR "dsp boot failed at %d\n", i);
473 vx_outb(chip, TXH, image[0]);
474 vx_outb(chip, TXM, image[1]);
475 vx_outb(chip, TXL, image[2]);
482 * vx_test_irq_src - query the source of interrupts
484 * called from irq handler only
486 static int vx_test_irq_src(vx_core_t *chip, unsigned int *ret)
490 vx_init_rmh(&chip->irq_rmh, CMD_TEST_IT);
491 spin_lock(&chip->lock);
492 err = vx_send_msg_nolock(chip, &chip->irq_rmh);
496 *ret = chip->irq_rmh.Stat[0];
497 spin_unlock(&chip->lock);
503 * vx_interrupt - soft irq handler
505 static void vx_interrupt(unsigned long private_data)
507 vx_core_t *chip = (vx_core_t *) private_data;
510 if (chip->chip_status & VX_STAT_IS_STALE)
513 if (vx_test_irq_src(chip, &events) < 0)
517 if (events & 0x000800)
518 printk(KERN_ERR "DSP Stream underrun ! IRQ events = 0x%x\n", events);
520 // printk(KERN_DEBUG "IRQ events = 0x%x\n", events);
522 /* We must prevent any application using this DSP
523 * and block any further request until the application
524 * either unregisters or reloads the DSP
526 if (events & FATAL_DSP_ERROR) {
527 snd_printk(KERN_ERR "vx_core: fatal DSP error!!\n");
531 /* The start on time code conditions are filled (ie the time code
532 * received by the board is equal to one of those given to it).
534 if (events & TIME_CODE_EVENT_PENDING)
535 ; /* so far, nothing to do yet */
537 /* The frequency has changed on the board (UER mode). */
538 if (events & FREQUENCY_CHANGE_EVENT_PENDING)
539 vx_change_frequency(chip);
541 /* update the pcm streams */
542 vx_pcm_update_intr(chip, events);
547 * snd_vx_irq_handler - interrupt handler
549 irqreturn_t snd_vx_irq_handler(int irq, void *dev, struct pt_regs *regs)
551 vx_core_t *chip = dev;
553 if (! (chip->chip_status & VX_STAT_CHIP_INIT) ||
554 (chip->chip_status & VX_STAT_IS_STALE))
556 if (! vx_test_and_ack(chip))
557 tasklet_hi_schedule(&chip->tq);
564 static void vx_reset_board(vx_core_t *chip, int cold_reset)
566 snd_assert(chip->ops->reset_board, return);
568 /* current source, later sync'ed with target */
569 chip->audio_source = VX_AUDIO_SRC_LINE;
571 chip->audio_source_target = chip->audio_source;
572 chip->clock_source = INTERNAL_QUARTZ;
573 chip->clock_mode = VX_CLOCK_MODE_AUTO;
575 chip->uer_detected = VX_UER_MODE_NOT_PRESENT;
576 chip->uer_bits = SNDRV_PCM_DEFAULT_CON_SPDIF;
579 chip->ops->reset_board(chip, cold_reset);
581 vx_reset_codec(chip, cold_reset);
583 vx_set_internal_clock(chip, chip->freq);
588 if (vx_is_pcmcia(chip)) {
589 /* Acknowledge any pending IRQ and reset the MEMIRQ flag. */
590 vx_test_and_ack(chip);
591 vx_validate_irq(chip, 1);
595 vx_set_iec958_status(chip, chip->uer_bits);
603 static void vx_proc_read(snd_info_entry_t *entry, snd_info_buffer_t *buffer)
605 vx_core_t *chip = entry->private_data;
606 static char *audio_src_vxp[] = { "Line", "Mic", "Digital" };
607 static char *audio_src_vx2[] = { "Analog", "Analog", "Digital" };
608 static char *clock_mode[] = { "Auto", "Internal", "External" };
609 static char *clock_src[] = { "Internal", "External" };
610 static char *uer_type[] = { "Consumer", "Professional", "Not Present" };
612 snd_iprintf(buffer, "%s\n", chip->card->longname);
613 snd_iprintf(buffer, "DSP audio info:");
614 if (chip->audio_info & VX_AUDIO_INFO_REAL_TIME)
615 snd_iprintf(buffer, " realtime");
616 if (chip->audio_info & VX_AUDIO_INFO_OFFLINE)
617 snd_iprintf(buffer, " offline");
618 if (chip->audio_info & VX_AUDIO_INFO_MPEG1)
619 snd_iprintf(buffer, " mpeg1");
620 if (chip->audio_info & VX_AUDIO_INFO_MPEG2)
621 snd_iprintf(buffer, " mpeg2");
622 if (chip->audio_info & VX_AUDIO_INFO_LINEAR_8)
623 snd_iprintf(buffer, " linear8");
624 if (chip->audio_info & VX_AUDIO_INFO_LINEAR_16)
625 snd_iprintf(buffer, " linear16");
626 if (chip->audio_info & VX_AUDIO_INFO_LINEAR_24)
627 snd_iprintf(buffer, " linear24");
628 snd_iprintf(buffer, "\n");
629 snd_iprintf(buffer, "Input Source: %s\n", vx_is_pcmcia(chip) ?
630 audio_src_vxp[chip->audio_source] :
631 audio_src_vx2[chip->audio_source]);
632 snd_iprintf(buffer, "Clock Mode: %s\n", clock_mode[chip->clock_mode]);
633 snd_iprintf(buffer, "Clock Source: %s\n", clock_src[chip->clock_source]);
634 snd_iprintf(buffer, "Frequency: %d\n", chip->freq);
635 snd_iprintf(buffer, "Detected Frequency: %d\n", chip->freq_detected);
636 snd_iprintf(buffer, "Detected UER type: %s\n", uer_type[chip->uer_detected]);
637 snd_iprintf(buffer, "Min/Max/Cur IBL: %d/%d/%d (granularity=%d)\n",
638 chip->ibl.min_size, chip->ibl.max_size, chip->ibl.size,
639 chip->ibl.granularity);
642 static void vx_proc_init(vx_core_t *chip)
644 snd_info_entry_t *entry;
646 if (! snd_card_proc_new(chip->card, "vx-status", &entry))
647 snd_info_set_text_ops(entry, chip, 1024, vx_proc_read);
652 * snd_vx_dsp_boot - load the DSP boot
654 int snd_vx_dsp_boot(vx_core_t *chip, const struct firmware *boot)
657 int cold_reset = !(chip->chip_status & VX_STAT_DEVICE_INIT);
659 vx_reset_board(chip, cold_reset);
660 vx_validate_irq(chip, 0);
662 if ((err = snd_vx_load_boot_image(chip, boot)) < 0)
664 snd_vx_delay(chip, 10);
670 * snd_vx_dsp_load - load the DSP image
672 int snd_vx_dsp_load(vx_core_t *chip, const struct firmware *dsp)
676 unsigned int csum = 0;
677 unsigned char *image, *cptr;
679 snd_assert(dsp->size % 3 == 0, return -EINVAL);
681 vx_toggle_dac_mute(chip, 1);
683 /* Transfert data buffer from PC to DSP */
684 for (i = 0; i < dsp->size; i += 3) {
685 image = dsp->data + i;
686 /* Wait DSP ready for a new read */
687 if ((err = vx_wait_isr_bit(chip, ISR_TX_EMPTY)) < 0) {
688 printk("dsp loading error at position %d\n", i);
693 csum = (csum >> 24) | (csum << 8);
694 vx_outb(chip, TXH, *cptr++);
696 csum = (csum >> 24) | (csum << 8);
697 vx_outb(chip, TXM, *cptr++);
699 csum = (csum >> 24) | (csum << 8);
700 vx_outb(chip, TXL, *cptr++);
702 snd_printdd(KERN_DEBUG "checksum = 0x%08x\n", csum);
704 snd_vx_delay(chip, 200);
706 if ((err = vx_wait_isr_bit(chip, ISR_CHK)) < 0)
709 vx_toggle_dac_mute(chip, 0);
711 vx_test_and_ack(chip);
712 vx_validate_irq(chip, 1);
721 static int snd_vx_suspend(snd_card_t *card, unsigned int state)
723 vx_core_t *chip = card->pm_private_data;
726 snd_assert(chip, return -EINVAL);
728 chip->chip_status |= VX_STAT_IN_SUSPEND;
729 for (i = 0; i < chip->hw->num_codecs; i++)
730 snd_pcm_suspend_all(chip->pcm[i]);
738 static int snd_vx_resume(snd_card_t *card, unsigned int state)
740 vx_core_t *chip = card->pm_private_data;
743 snd_assert(chip, return -EINVAL);
745 chip->chip_status &= ~VX_STAT_CHIP_INIT;
747 for (i = 0; i < 4; i++) {
748 if (! chip->firmware[i])
750 err = chip->ops->load_dsp(chip, i, chip->firmware[i]);
752 snd_printk(KERN_ERR "vx: firmware resume error at DSP %d\n", i);
757 chip->chip_status |= VX_STAT_CHIP_INIT;
758 chip->chip_status &= ~VX_STAT_IN_SUSPEND;
766 * snd_vx_create - constructor for vx_core_t
767 * @hw: hardware specific record
769 * this function allocates the instance and prepare for the hardware
772 * return the instance pointer if successful, NULL in error.
774 vx_core_t *snd_vx_create(snd_card_t *card, struct snd_vx_hardware *hw,
775 struct snd_vx_ops *ops,
780 snd_assert(card && hw && ops, return NULL);
782 chip = kcalloc(1, sizeof(*chip) + extra_size, GFP_KERNEL);
784 snd_printk(KERN_ERR "vx_core: no memory\n");
787 spin_lock_init(&chip->lock);
788 spin_lock_init(&chip->irq_lock);
791 chip->type = hw->type;
793 tasklet_init(&chip->tq, vx_interrupt, (unsigned long)chip);
794 init_MUTEX(&chip->mixer_mutex);
797 card->private_data = chip;
798 strcpy(card->driver, hw->name);
799 sprintf(card->shortname, "Digigram %s", hw->name);
801 snd_card_set_pm_callback(card, snd_vx_suspend, snd_vx_resume, chip);
811 static int __init alsa_vx_core_init(void)
816 static void __exit alsa_vx_core_exit(void)
820 module_init(alsa_vx_core_init)
821 module_exit(alsa_vx_core_exit)
826 EXPORT_SYMBOL(snd_vx_check_reg_bit);
827 EXPORT_SYMBOL(snd_vx_create);
828 EXPORT_SYMBOL(snd_vx_setup_firmware);
829 EXPORT_SYMBOL(snd_vx_free_firmware);
830 EXPORT_SYMBOL(snd_vx_irq_handler);
831 EXPORT_SYMBOL(snd_vx_delay);
832 EXPORT_SYMBOL(snd_vx_dsp_boot);
833 EXPORT_SYMBOL(snd_vx_dsp_load);
834 EXPORT_SYMBOL(snd_vx_load_boot_image);