Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15993
b: refs/heads/master
c: 3d19f80
h: refs/heads/master
i:
  15991: 40cf545
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 3, 2006
1 parent 0670ba7 commit 1cab295
Show file tree
Hide file tree
Showing 17 changed files with 939 additions and 904 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af26367f69a474ed809e4a59abb5855b47daaff4
refs/heads/master: 3d19f804ef5f1d15fe001fc8d1ed58fac9d591fb
87 changes: 43 additions & 44 deletions trunk/include/sound/cs46xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -1631,42 +1631,41 @@
#define CS46XX_MIXER_SPDIF_INPUT_ELEMENT 1
#define CS46XX_MIXER_SPDIF_OUTPUT_ELEMENT 2

typedef struct _snd_cs46xx cs46xx_t;

typedef struct _snd_cs46xx_pcm_t {
struct snd_cs46xx_pcm {
struct snd_dma_buffer hw_buf;

unsigned int ctl;
unsigned int shift; /* Shift count to trasform frames in bytes */
snd_pcm_indirect_t pcm_rec;
snd_pcm_substream_t *substream;
struct snd_pcm_indirect pcm_rec;
struct snd_pcm_substream *substream;

pcm_channel_descriptor_t * pcm_channel;
struct dsp_pcm_channel_descriptor * pcm_channel;

int pcm_channel_id; /* Fron Rear, Center Lfe ... */
} cs46xx_pcm_t;
};

typedef struct {
struct snd_cs46xx_region {
char name[24];
unsigned long base;
void __iomem *remap_addr;
unsigned long size;
struct resource *resource;
} snd_cs46xx_region_t;
};

struct _snd_cs46xx {
struct snd_cs46xx {
int irq;
unsigned long ba0_addr;
unsigned long ba1_addr;
union {
struct {
snd_cs46xx_region_t ba0;
snd_cs46xx_region_t data0;
snd_cs46xx_region_t data1;
snd_cs46xx_region_t pmem;
snd_cs46xx_region_t reg;
struct snd_cs46xx_region ba0;
struct snd_cs46xx_region data0;
struct snd_cs46xx_region data1;
struct snd_cs46xx_region pmem;
struct snd_cs46xx_region reg;
} name;
snd_cs46xx_region_t idx[5];
struct snd_cs46xx_region idx[5];
} region;

unsigned int mode;
Expand All @@ -1676,34 +1675,34 @@ struct _snd_cs46xx {

unsigned int ctl;
unsigned int shift; /* Shift count to trasform frames in bytes */
snd_pcm_indirect_t pcm_rec;
snd_pcm_substream_t *substream;
struct snd_pcm_indirect pcm_rec;
struct snd_pcm_substream *substream;
} capt;


int nr_ac97_codecs;
ac97_bus_t *ac97_bus;
ac97_t *ac97[MAX_NR_AC97];
struct snd_ac97_bus *ac97_bus;
struct snd_ac97 *ac97[MAX_NR_AC97];

struct pci_dev *pci;
snd_card_t *card;
snd_pcm_t *pcm;
struct snd_card *card;
struct snd_pcm *pcm;

snd_rawmidi_t *rmidi;
snd_rawmidi_substream_t *midi_input;
snd_rawmidi_substream_t *midi_output;
struct snd_rawmidi *rmidi;
struct snd_rawmidi_substream *midi_input;
struct snd_rawmidi_substream *midi_output;

spinlock_t reg_lock;
unsigned int midcr;
unsigned int uartm;

int amplifier;
void (*amplifier_ctrl)(cs46xx_t *, int);
void (*active_ctrl)(cs46xx_t *, int);
void (*mixer_init)(cs46xx_t *);
void (*amplifier_ctrl)(struct snd_cs46xx *, int);
void (*active_ctrl)(struct snd_cs46xx *, int);
void (*mixer_init)(struct snd_cs46xx *);

int acpi_port;
snd_kcontrol_t *eapd_switch; /* for amplifier hack */
struct snd_kcontrol *eapd_switch; /* for amplifier hack */
int accept_valid; /* accept mmap valid (for OSS) */

struct gameport *gameport;
Expand All @@ -1714,29 +1713,29 @@ struct _snd_cs46xx {
#ifdef CONFIG_SND_CS46XX_NEW_DSP
struct semaphore spos_mutex;

dsp_spos_instance_t * dsp_spos_instance;
struct dsp_spos_instance * dsp_spos_instance;

snd_pcm_t *pcm_rear;
snd_pcm_t *pcm_center_lfe;
snd_pcm_t *pcm_iec958;
struct snd_pcm *pcm_rear;
struct snd_pcm *pcm_center_lfe;
struct snd_pcm *pcm_iec958;
#else /* for compatibility */
cs46xx_pcm_t *playback_pcm;
struct snd_cs46xx_pcm *playback_pcm;
unsigned int play_ctl;
#endif
};

int snd_cs46xx_create(snd_card_t *card,
int snd_cs46xx_create(struct snd_card *card,
struct pci_dev *pci,
int external_amp, int thinkpad,
cs46xx_t **rcodec);

int snd_cs46xx_pcm(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
int snd_cs46xx_pcm_rear(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
int snd_cs46xx_pcm_iec958(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
int snd_cs46xx_pcm_center_lfe(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
int snd_cs46xx_mixer(cs46xx_t *chip, int spdif_device);
int snd_cs46xx_midi(cs46xx_t *chip, int device, snd_rawmidi_t **rmidi);
int snd_cs46xx_start_dsp(cs46xx_t *chip);
int snd_cs46xx_gameport(cs46xx_t *chip);
struct snd_cs46xx **rcodec);

int snd_cs46xx_pcm(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
int snd_cs46xx_pcm_rear(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
int snd_cs46xx_pcm_iec958(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
int snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
int snd_cs46xx_mixer(struct snd_cs46xx *chip, int spdif_device);
int snd_cs46xx_midi(struct snd_cs46xx *chip, int device, struct snd_rawmidi **rmidi);
int snd_cs46xx_start_dsp(struct snd_cs46xx *chip);
int snd_cs46xx_gameport(struct snd_cs46xx *chip);

#endif /* __SOUND_CS46XX_H */
Loading

0 comments on commit 1cab295

Please sign in to comment.