mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 12:38:58 +00:00
6b8afe4d37
SBlaster/Adlib/ProAudio Spectrum/Gravis/etc cards. This is a BETA test driver, please test it and get back to me!
34 lines
677 B
C
34 lines
677 B
C
|
|
/*
|
|
* linux/kernel/chr_drv/sound/sb_card.c
|
|
*
|
|
* Detection routine for the SoundBlaster cards.
|
|
*
|
|
* (C) 1992 Hannu Savolainen (hsavolai@cs.helsinki.fi) See COPYING for further
|
|
* details. Should be distributed with this file.
|
|
*/
|
|
|
|
#include "sound_config.h"
|
|
|
|
#if defined(CONFIGURE_SOUNDCARD) && !defined(EXCLUDE_SB)
|
|
|
|
long
|
|
attach_sb_card (long mem_start, struct address_info *hw_config)
|
|
{
|
|
#if !defined(EXCLUDE_AUDIO) || !defined(EXCLUDE_MIDI)
|
|
if (!sb_dsp_detect (hw_config))
|
|
return mem_start;
|
|
mem_start = sb_dsp_init (mem_start, hw_config);
|
|
#endif
|
|
|
|
return mem_start;
|
|
}
|
|
|
|
int
|
|
probe_sb (struct address_info *hw_config)
|
|
{
|
|
return sb_dsp_detect (hw_config);
|
|
}
|
|
|
|
#endif
|