aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/cs4231.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 04:27:08 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:16:44 -0500
commitf739aeccedc7681a249bdae435e9af3e5476ad1d (patch)
treef0a2e33a755039a6cb3286895d8c43187c1de613 /include/sound/cs4231.h
parent0948e3c8bb187b3dea38be1e1ffd1797866014f1 (diff)
[ALSA] Clean up ISA cs4231 code
Modules: CS4231 driver Clean up ISA cs4231 code, removing experimental EBUS/SBUS merge, to improve readability. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/cs4231.h')
-rw-r--r--include/sound/cs4231.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/include/sound/cs4231.h b/include/sound/cs4231.h
index d7f90823778a..d956de947e70 100644
--- a/include/sound/cs4231.h
+++ b/include/sound/cs4231.h
@@ -26,21 +26,6 @@
26#include "pcm.h" 26#include "pcm.h"
27#include "timer.h" 27#include "timer.h"
28 28
29#ifdef CONFIG_SBUS
30#define SBUS_SUPPORT
31#include <asm/sbus.h>
32#endif
33
34#if defined(CONFIG_PCI) && defined(CONFIG_SPARC64)
35#define EBUS_SUPPORT
36#include <linux/pci.h>
37#include <asm/ebus.h>
38#endif
39
40#if !defined(SBUS_SUPPORT) && !defined(EBUS_SUPPORT)
41#define LEGACY_SUPPORT
42#endif
43
44/* IO ports */ 29/* IO ports */
45 30
46#define CS4231P(x) (c_d_c_CS4231##x) 31#define CS4231P(x) (c_d_c_CS4231##x)
@@ -236,14 +221,12 @@ typedef struct _snd_cs4231 cs4231_t;
236 221
237struct _snd_cs4231 { 222struct _snd_cs4231 {
238 unsigned long port; /* base i/o port */ 223 unsigned long port; /* base i/o port */
239#ifdef LEGACY_SUPPORT
240 struct resource *res_port; 224 struct resource *res_port;
241 unsigned long cport; /* control base i/o port (CS4236) */ 225 unsigned long cport; /* control base i/o port (CS4236) */
242 struct resource *res_cport; 226 struct resource *res_cport;
243 int irq; /* IRQ line */ 227 int irq; /* IRQ line */
244 int dma1; /* playback DMA */ 228 int dma1; /* playback DMA */
245 int dma2; /* record DMA */ 229 int dma2; /* record DMA */
246#endif
247 unsigned short version; /* version of CODEC chip */ 230 unsigned short version; /* version of CODEC chip */
248 unsigned short mode; /* see to CS4231_MODE_XXXX */ 231 unsigned short mode; /* see to CS4231_MODE_XXXX */
249 unsigned short hardware; /* see to CS4231_HW_XXXX */ 232 unsigned short hardware; /* see to CS4231_HW_XXXX */
@@ -251,24 +234,6 @@ struct _snd_cs4231 {
251 unsigned short single_dma:1, /* forced single DMA mode (GUS 16-bit daughter board) or dma1 == dma2 */ 234 unsigned short single_dma:1, /* forced single DMA mode (GUS 16-bit daughter board) or dma1 == dma2 */
252 ebus_flag:1; /* SPARC: EBUS present */ 235 ebus_flag:1; /* SPARC: EBUS present */
253 236
254#ifdef EBUS_SUPPORT
255 struct ebus_dma_info eb2c;
256 struct ebus_dma_info eb2p;
257#endif
258
259#if defined(SBUS_SUPPORT) || defined(EBUS_SUPPORT)
260 union {
261#ifdef SBUS_SUPPORT
262 struct sbus_dev *sdev;
263#endif
264#ifdef EBUS_SUPPORT
265 struct pci_dev *pdev;
266#endif
267 } dev_u;
268 unsigned int p_periods_sent;
269 unsigned int c_periods_sent;
270#endif
271
272 snd_card_t *card; 237 snd_card_t *card;
273 snd_pcm_t *pcm; 238 snd_pcm_t *pcm;
274 snd_pcm_substream_t *playback_substream; 239 snd_pcm_substream_t *playback_substream;
@@ -281,10 +246,8 @@ struct _snd_cs4231 {
281 int mce_bit; 246 int mce_bit;
282 int calibrate_mute; 247 int calibrate_mute;
283 int sw_3d_bit; 248 int sw_3d_bit;
284#ifdef LEGACY_SUPPORT
285 unsigned int p_dma_size; 249 unsigned int p_dma_size;
286 unsigned int c_dma_size; 250 unsigned int c_dma_size;
287#endif
288 251
289 spinlock_t reg_lock; 252 spinlock_t reg_lock;
290 struct semaphore mce_mutex; 253 struct semaphore mce_mutex;
@@ -299,10 +262,8 @@ struct _snd_cs4231 {
299 void (*resume) (cs4231_t *chip); 262 void (*resume) (cs4231_t *chip);
300#endif 263#endif
301 void *dma_private_data; 264 void *dma_private_data;
302#ifdef LEGACY_SUPPORT
303 int (*claim_dma) (cs4231_t *chip, void *dma_private_data, int dma); 265 int (*claim_dma) (cs4231_t *chip, void *dma_private_data, int dma);
304 int (*release_dma) (cs4231_t *chip, void *dma_private_data, int dma); 266 int (*release_dma) (cs4231_t *chip, void *dma_private_data, int dma);
305#endif
306}; 267};
307 268
308/* exported functions */ 269/* exported functions */