Changeset 34 for GPL/trunk/alsa-kernel/pci/emu10k1/emumixer.c
- Timestamp:
- Dec 11, 2005, 5:57:39 PM (20 years ago)
- File:
-
- 1 edited
-
GPL/trunk/alsa-kernel/pci/emu10k1/emumixer.c (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/emu10k1/emumixer.c
r33 r34 46 46 snd_ctl_elem_value_t * ucontrol) 47 47 { 48 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);48 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 49 49 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 50 50 unsigned long flags; … … 85 85 snd_ctl_elem_value_t * ucontrol) 86 86 { 87 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);87 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 88 88 unsigned int tmp; 89 89 unsigned long flags; … … 112 112 snd_ctl_elem_value_t * ucontrol) 113 113 { 114 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);114 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 115 115 int change; 116 116 unsigned int reg, val, tmp; … … 157 157 snd_ctl_elem_value_t * ucontrol) 158 158 { 159 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);159 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 160 160 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 161 161 int change; … … 195 195 }; 196 196 197 static void update_emu10k1_fxrt( emu10k1_t*emu, int voice, unsigned char *route)197 static void update_emu10k1_fxrt(struct snd_emu10k1 *emu, int voice, unsigned char *route) 198 198 { 199 199 if (emu->audigy) { … … 208 208 } 209 209 210 static void update_emu10k1_send_volume( emu10k1_t*emu, int voice, unsigned char *volume)210 static void update_emu10k1_send_volume(struct snd_emu10k1 *emu, int voice, unsigned char *volume) 211 211 { 212 212 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_A, voice, volume[0]); … … 227 227 static int snd_emu10k1_send_routing_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 228 228 { 229 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);229 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 230 230 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 231 231 uinfo->count = emu->audigy ? 3*8 : 3*4; … … 239 239 { 240 240 unsigned long flags; 241 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);242 emu10k1_pcm_mixer_t*mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];241 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 242 struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 243 243 int voice, idx; 244 244 int num_efx = emu->audigy ? 8 : 4; … … 258 258 { 259 259 unsigned long flags; 260 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);261 emu10k1_pcm_mixer_t*mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];260 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 261 struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 262 262 int change = 0, voice, idx, val; 263 263 int num_efx = emu->audigy ? 8 : 4; … … 300 300 static int snd_emu10k1_send_volume_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 301 301 { 302 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);302 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 303 303 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 304 304 uinfo->count = emu->audigy ? 3*8 : 3*4; … … 312 312 { 313 313 unsigned long flags; 314 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);315 emu10k1_pcm_mixer_t*mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];314 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 315 struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 316 316 int idx; 317 317 int num_efx = emu->audigy ? 8 : 4; … … 328 328 { 329 329 unsigned long flags; 330 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);331 emu10k1_pcm_mixer_t*mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];330 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 331 struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 332 332 int change = 0, idx, val; 333 333 int num_efx = emu->audigy ? 8 : 4; … … 378 378 snd_ctl_elem_value_t * ucontrol) 379 379 { 380 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);381 emu10k1_pcm_mixer_t*mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];380 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 381 struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 382 382 unsigned long flags; 383 383 int idx; … … 394 394 { 395 395 unsigned long flags; 396 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);397 emu10k1_pcm_mixer_t*mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];396 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 397 struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 398 398 int change = 0, idx, val; 399 399 … … 432 432 static int snd_emu10k1_efx_send_routing_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 433 433 { 434 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);434 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 435 435 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 436 436 uinfo->count = emu->audigy ? 8 : 4; … … 444 444 { 445 445 unsigned long flags; 446 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);447 emu10k1_pcm_mixer_t*mix = &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];446 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 447 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 448 448 int idx; 449 449 int num_efx = emu->audigy ? 8 : 4; … … 462 462 { 463 463 unsigned long flags; 464 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);464 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 465 465 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 466 emu10k1_pcm_mixer_t*mix = &emu->efx_pcm_mixer[ch];466 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; 467 467 int change = 0, idx, val; 468 468 int num_efx = emu->audigy ? 8 : 4; … … 500 500 static int snd_emu10k1_efx_send_volume_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 501 501 { 502 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);502 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 503 503 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 504 504 uinfo->count = emu->audigy ? 8 : 4; … … 512 512 { 513 513 unsigned long flags; 514 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);515 emu10k1_pcm_mixer_t*mix = &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];514 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 515 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 516 516 int idx; 517 517 int num_efx = emu->audigy ? 8 : 4; … … 528 528 { 529 529 unsigned long flags; 530 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);530 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 531 531 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 532 emu10k1_pcm_mixer_t*mix = &emu->efx_pcm_mixer[ch];532 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; 533 533 int change = 0, idx, val; 534 534 int num_efx = emu->audigy ? 8 : 4; … … 576 576 snd_ctl_elem_value_t * ucontrol) 577 577 { 578 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);579 emu10k1_pcm_mixer_t*mix = &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];578 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 579 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; 580 580 unsigned long flags; 581 581 … … 590 590 { 591 591 unsigned long flags; 592 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);592 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 593 593 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 594 emu10k1_pcm_mixer_t*mix = &emu->efx_pcm_mixer[ch];594 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; 595 595 int change = 0, val; 596 596 … … 633 633 snd_ctl_elem_value_t * ucontrol) 634 634 { 635 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);635 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 636 636 637 637 if (emu->audigy) … … 646 646 { 647 647 unsigned long flags; 648 emu10k1_t*emu = snd_kcontrol_chip(kcontrol);648 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); 649 649 unsigned int reg, val; 650 650 int change = 0; … … 695 695 static void snd_emu10k1_mixer_free_ac97(ac97_t *ac97) 696 696 { 697 emu10k1_t*emu = ac97->private_data;697 struct snd_emu10k1 *emu = ac97->private_data; 698 698 emu->ac97 = NULL; 699 699 } … … 729 729 } 730 730 731 int __devinit snd_emu10k1_mixer( emu10k1_t*emu,731 int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu, 732 732 int pcm_device, int multi_device) 733 733 { … … 881 881 /* initialize the routing and volume table for each pcm playback stream */ 882 882 for (pcm = 0; pcm < 32; pcm++) { 883 emu10k1_pcm_mixer_t*mix;883 struct snd_emu10k1_pcm_mixer *mix; 884 884 int v; 885 885 … … 901 901 /* initialize the routing and volume table for the multichannel playback stream */ 902 902 for (pcm = 0; pcm < NUM_EFX_PLAYBACK; pcm++) { 903 emu10k1_pcm_mixer_t*mix;903 struct snd_emu10k1_pcm_mixer *mix; 904 904 int v; 905 905
Note:
See TracChangeset
for help on using the changeset viewer.
