OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [sound/] [sb_card.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * sound/sb_card.c
3
 *
4
 * Detection routine for the Sound Blaster cards.
5
 */
6
/*
7
 * Copyright (C) by Hannu Savolainen 1993-1996
8
 *
9
 * USS/Lite for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
10
 * Version 2 (June 1991). See the "COPYING" file distributed with this software
11
 * for more info.
12
 */
13
#include <linux/config.h>
14
 
15
 
16
#include "sound_config.h"
17
 
18
#if defined(CONFIG_SBDSP)
19
 
20
#include "sb_mixer.h"
21
#include "sb.h"
22
 
23
void
24
attach_sb_card (struct address_info *hw_config)
25
{
26
#if defined(CONFIG_AUDIO) || defined(CONFIG_MIDI)
27
  sb_dsp_init (hw_config);
28
#endif
29
}
30
 
31
int
32
probe_sb (struct address_info *hw_config)
33
{
34
  if (check_region (hw_config->io_base, 16))
35
    {
36
      printk ("\n\nsb_dsp.c: I/O port %x already in use\n\n",
37
              hw_config->io_base);
38
      return 0;
39
    }
40
 
41
  return sb_dsp_detect (hw_config);
42
}
43
 
44
void
45
unload_sb (struct address_info *hw_config)
46
{
47
  sb_dsp_unload (hw_config);
48
}
49
 
50
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.