Changeset 34 for GPL/trunk/alsa-kernel/pci/als4000.c
- Timestamp:
- Dec 11, 2005, 5:57:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/als4000.c
r33 r34 118 118 } 119 119 120 static inline void snd_als4000_gcr_write(s b_t*sb, u32 reg, u32 val)120 static inline void snd_als4000_gcr_write(struct snd_sb *sb, u32 reg, u32 val) 121 121 { 122 122 snd_als4000_gcr_write_addr(sb->alt_port, reg, val); … … 129 129 } 130 130 131 static inline u32 snd_als4000_gcr_read(s b_t*sb, u32 reg)131 static inline u32 snd_als4000_gcr_read(struct snd_sb *sb, u32 reg) 132 132 { 133 133 return snd_als4000_gcr_read_addr(sb->alt_port, reg); 134 134 } 135 135 136 static void snd_als4000_set_rate(s b_t*chip, unsigned int rate)136 static void snd_als4000_set_rate(struct snd_sb *chip, unsigned int rate) 137 137 { 138 138 if (!(chip->mode & SB_RATE_LOCK)) { … … 143 143 } 144 144 145 static void snd_als4000_set_capture_dma(s b_t*chip, dma_addr_t addr, unsigned size)145 static void snd_als4000_set_capture_dma(struct snd_sb *chip, dma_addr_t addr, unsigned size) 146 146 { 147 147 snd_als4000_gcr_write(chip, 0xa2, addr); … … 149 149 } 150 150 151 static void snd_als4000_set_playback_dma(s b_t*chip, dma_addr_t addr, unsigned size)151 static void snd_als4000_set_playback_dma(struct snd_sb *chip, dma_addr_t addr, unsigned size) 152 152 { 153 153 snd_als4000_gcr_write(chip, 0x91, addr); … … 226 226 { 227 227 unsigned long flags; 228 s b_t*chip = snd_pcm_substream_chip(substream);228 struct snd_sb *chip = snd_pcm_substream_chip(substream); 229 229 snd_pcm_runtime_t *runtime = substream->runtime; 230 230 unsigned long size; … … 254 254 { 255 255 unsigned long flags; 256 s b_t*chip = snd_pcm_substream_chip(substream);256 struct snd_sb *chip = snd_pcm_substream_chip(substream); 257 257 snd_pcm_runtime_t *runtime = substream->runtime; 258 258 unsigned long size; … … 292 292 static int snd_als4000_capture_trigger(snd_pcm_substream_t * substream, int cmd) 293 293 { 294 s b_t*chip = snd_pcm_substream_chip(substream);294 struct snd_sb *chip = snd_pcm_substream_chip(substream); 295 295 int result = 0; 296 296 … … 311 311 static int snd_als4000_playback_trigger(snd_pcm_substream_t * substream, int cmd) 312 312 { 313 s b_t*chip = snd_pcm_substream_chip(substream);313 struct snd_sb *chip = snd_pcm_substream_chip(substream); 314 314 int result = 0; 315 315 … … 330 330 static snd_pcm_uframes_t snd_als4000_capture_pointer(snd_pcm_substream_t * substream) 331 331 { 332 s b_t*chip = snd_pcm_substream_chip(substream);332 struct snd_sb *chip = snd_pcm_substream_chip(substream); 333 333 unsigned int result; 334 334 … … 341 341 static snd_pcm_uframes_t snd_als4000_playback_pointer(snd_pcm_substream_t * substream) 342 342 { 343 s b_t*chip = snd_pcm_substream_chip(substream);343 struct snd_sb *chip = snd_pcm_substream_chip(substream); 344 344 unsigned result; 345 345 … … 352 352 static irqreturn_t snd_als4000_interrupt(int irq, void *dev_id, struct pt_regs *regs) 353 353 { 354 s b_t*chip = dev_id;354 struct snd_sb *chip = dev_id; 355 355 unsigned gcr_status; 356 356 unsigned sb_status; … … 480 480 static int snd_als4000_playback_open(snd_pcm_substream_t * substream) 481 481 { 482 s b_t*chip = snd_pcm_substream_chip(substream);482 struct snd_sb *chip = snd_pcm_substream_chip(substream); 483 483 snd_pcm_runtime_t *runtime = substream->runtime; 484 484 … … 490 490 static int snd_als4000_playback_close(snd_pcm_substream_t * substream) 491 491 { 492 s b_t*chip = snd_pcm_substream_chip(substream);492 struct snd_sb *chip = snd_pcm_substream_chip(substream); 493 493 494 494 chip->playback_substream = NULL; … … 499 499 static int snd_als4000_capture_open(snd_pcm_substream_t * substream) 500 500 { 501 s b_t*chip = snd_pcm_substream_chip(substream);501 struct snd_sb *chip = snd_pcm_substream_chip(substream); 502 502 snd_pcm_runtime_t *runtime = substream->runtime; 503 503 … … 509 509 static int snd_als4000_capture_close(snd_pcm_substream_t * substream) 510 510 { 511 s b_t*chip = snd_pcm_substream_chip(substream);511 struct snd_sb *chip = snd_pcm_substream_chip(substream); 512 512 513 513 chip->capture_substream = NULL; … … 566 566 static void snd_als4000_pcm_free(snd_pcm_t *pcm) 567 567 { 568 s b_t*chip = pcm->private_data;568 struct snd_sb *chip = pcm->private_data; 569 569 chip->pcm = NULL; 570 570 snd_pcm_lib_preallocate_free_for_all(pcm); 571 571 } 572 572 573 static int __devinit snd_als4000_pcm(s b_t*chip, int device)573 static int __devinit snd_als4000_pcm(struct snd_sb *chip, int device) 574 574 { 575 575 snd_pcm_t *pcm; … … 615 615 } 616 616 617 static void __devinit snd_als4000_configure(s b_t*chip)617 static void __devinit snd_als4000_configure(struct snd_sb *chip) 618 618 { 619 619 unsigned tmp; … … 664 664 snd_card_als4000_t *acard; 665 665 unsigned long gcr; 666 s b_t*chip;666 struct snd_sb *chip; 667 667 opl3_t *opl3; 668 668 unsigned short word;
Note:
See TracChangeset
for help on using the changeset viewer.