1/*
2 *	SiS 7018, Trident 4D Wave DX/NX, Acer Lab M5451 Sound Driver.
3 *	Copyright (c) 2002, 2008-2011 S.Zharski <imker@gmx.li>
4 *	Distributed under the terms of the MIT license.
5 *
6 */
7#ifndef _SiS7018_SETTINGS_H_
8#define _SiS7018_SETTINGS_H_
9
10
11#include <driver_settings.h>
12
13#include "Driver.h"
14
15
16#ifdef _countof
17#warning "_countof(...) WAS ALREADY DEFINED!!! Remove local definition!"
18#undef _countof
19#endif
20#define _countof(array)(sizeof(array) / sizeof(array[0]))
21
22
23void load_settings();
24void release_settings();
25
26void SiS7018_trace(bool force, const char *func, const char *fmt, ...);
27
28#ifdef TRACE
29#undef TRACE
30#endif
31#define	TRACE(x...) SiS7018_trace(false, __func__, x)
32
33#ifdef ERROR
34#undef ERROR
35#endif
36#define ERROR(x...) SiS7018_trace(true, __func__, x)
37
38
39#endif //_SiS7018_SETTINGS_H_
40
41