ypcm 238 sound/pci/ymfpci/ymfpci.h struct snd_ymfpci_pcm *ypcm; ypcm 277 sound/pci/ymfpci/ymfpci_main.c pvoice->ypcm->use_441_slot = 0; ypcm 280 sound/pci/ymfpci/ymfpci_main.c pvoice->ypcm = NULL; ypcm 292 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 295 sound/pci/ymfpci/ymfpci_main.c if ((ypcm = voice->ypcm) == NULL) ypcm 297 sound/pci/ymfpci/ymfpci_main.c if (ypcm->substream == NULL) ypcm 300 sound/pci/ymfpci/ymfpci_main.c if (ypcm->running) { ypcm 302 sound/pci/ymfpci/ymfpci_main.c if (pos < ypcm->last_pos) ypcm 303 sound/pci/ymfpci/ymfpci_main.c delta = pos + (ypcm->buffer_size - ypcm->last_pos); ypcm 305 sound/pci/ymfpci/ymfpci_main.c delta = pos - ypcm->last_pos; ypcm 306 sound/pci/ymfpci/ymfpci_main.c ypcm->period_pos += delta; ypcm 307 sound/pci/ymfpci/ymfpci_main.c ypcm->last_pos = pos; ypcm 308 sound/pci/ymfpci/ymfpci_main.c if (ypcm->period_pos >= ypcm->period_size) { ypcm 315 sound/pci/ymfpci/ymfpci_main.c ypcm->period_pos %= ypcm->period_size; ypcm 317 sound/pci/ymfpci/ymfpci_main.c snd_pcm_period_elapsed(ypcm->substream); ypcm 321 sound/pci/ymfpci/ymfpci_main.c if (unlikely(ypcm->update_pcm_vol)) { ypcm 322 sound/pci/ymfpci/ymfpci_main.c unsigned int subs = ypcm->substream->number; ypcm 330 sound/pci/ymfpci/ymfpci_main.c if (ypcm->output_rear) ypcm 332 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[1]) ypcm 333 sound/pci/ymfpci/ymfpci_main.c bank = &ypcm->voices[1]->bank[next_bank]; ypcm 336 sound/pci/ymfpci/ymfpci_main.c if (ypcm->output_rear) ypcm 338 sound/pci/ymfpci/ymfpci_main.c ypcm->update_pcm_vol--; ypcm 347 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 348 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci *chip = ypcm->chip; ypcm 352 sound/pci/ymfpci/ymfpci_main.c if (ypcm->running) { ypcm 353 sound/pci/ymfpci/ymfpci_main.c pos = le32_to_cpu(chip->bank_capture[ypcm->capture_bank_number][chip->active_bank]->start) >> ypcm->shift; ypcm 354 sound/pci/ymfpci/ymfpci_main.c if (pos < ypcm->last_pos) ypcm 355 sound/pci/ymfpci/ymfpci_main.c delta = pos + (ypcm->buffer_size - ypcm->last_pos); ypcm 357 sound/pci/ymfpci/ymfpci_main.c delta = pos - ypcm->last_pos; ypcm 358 sound/pci/ymfpci/ymfpci_main.c ypcm->period_pos += delta; ypcm 359 sound/pci/ymfpci/ymfpci_main.c ypcm->last_pos = pos; ypcm 360 sound/pci/ymfpci/ymfpci_main.c if (ypcm->period_pos >= ypcm->period_size) { ypcm 361 sound/pci/ymfpci/ymfpci_main.c ypcm->period_pos %= ypcm->period_size; ypcm 380 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; ypcm 385 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[0] == NULL) { ypcm 393 sound/pci/ymfpci/ymfpci_main.c chip->ctrl_playback[ypcm->voices[0]->number + 1] = cpu_to_le32(ypcm->voices[0]->bank_addr); ypcm 394 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[1] != NULL && !ypcm->use_441_slot) ypcm 395 sound/pci/ymfpci/ymfpci_main.c chip->ctrl_playback[ypcm->voices[1]->number + 1] = cpu_to_le32(ypcm->voices[1]->bank_addr); ypcm 396 sound/pci/ymfpci/ymfpci_main.c ypcm->running = 1; ypcm 399 sound/pci/ymfpci/ymfpci_main.c if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { ypcm 406 sound/pci/ymfpci/ymfpci_main.c chip->ctrl_playback[ypcm->voices[0]->number + 1] = 0; ypcm 407 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[1] != NULL && !ypcm->use_441_slot) ypcm 408 sound/pci/ymfpci/ymfpci_main.c chip->ctrl_playback[ypcm->voices[1]->number + 1] = 0; ypcm 409 sound/pci/ymfpci/ymfpci_main.c ypcm->running = 0; ypcm 425 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; ypcm 434 sound/pci/ymfpci/ymfpci_main.c tmp = snd_ymfpci_readl(chip, YDSXGR_MAPOFREC) | (1 << ypcm->capture_bank_number); ypcm 436 sound/pci/ymfpci/ymfpci_main.c ypcm->running = 1; ypcm 441 sound/pci/ymfpci/ymfpci_main.c tmp = snd_ymfpci_readl(chip, YDSXGR_MAPOFREC) & ~(1 << ypcm->capture_bank_number); ypcm 443 sound/pci/ymfpci/ymfpci_main.c ypcm->running = 0; ypcm 453 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_pcm_voice_alloc(struct snd_ymfpci_pcm *ypcm, int voices) ypcm 457 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[1] != NULL && voices < 2) { ypcm 458 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_voice_free(ypcm->chip, ypcm->voices[1]); ypcm 459 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[1] = NULL; ypcm 461 sound/pci/ymfpci/ymfpci_main.c if (voices == 1 && ypcm->voices[0] != NULL) ypcm 463 sound/pci/ymfpci/ymfpci_main.c if (voices == 2 && ypcm->voices[0] != NULL && ypcm->voices[1] != NULL) ypcm 466 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[0] != NULL && ypcm->voices[1] == NULL) { ypcm 467 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_voice_free(ypcm->chip, ypcm->voices[0]); ypcm 468 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[0] = NULL; ypcm 471 sound/pci/ymfpci/ymfpci_main.c err = snd_ymfpci_voice_alloc(ypcm->chip, YMFPCI_PCM, voices > 1, &ypcm->voices[0]); ypcm 474 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[0]->ypcm = ypcm; ypcm 475 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[0]->interrupt = snd_ymfpci_pcm_interrupt; ypcm 477 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[1] = &ypcm->chip->voices[ypcm->voices[0]->number + 1]; ypcm 478 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[1]->ypcm = ypcm; ypcm 483 sound/pci/ymfpci/ymfpci_main.c static void snd_ymfpci_pcm_init_voice(struct snd_ymfpci_pcm *ypcm, unsigned int voiceidx, ypcm 487 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_voice *voice = ypcm->voices[voiceidx]; ypcm 508 sound/pci/ymfpci/ymfpci_main.c vol_left = cpu_to_le32(ypcm->chip->pcm_mixer ypcm 509 sound/pci/ymfpci/ymfpci_main.c [ypcm->substream->number].left << 15); ypcm 510 sound/pci/ymfpci/ymfpci_main.c vol_right = cpu_to_le32(ypcm->chip->pcm_mixer ypcm 511 sound/pci/ymfpci/ymfpci_main.c [ypcm->substream->number].right << 15); ypcm 516 sound/pci/ymfpci/ymfpci_main.c spin_lock_irqsave(&ypcm->chip->voice_lock, flags); ypcm 520 sound/pci/ymfpci/ymfpci_main.c else if (ypcm->chip->device_id == PCI_DEVICE_ID_YAMAHA_754 && ypcm 522 sound/pci/ymfpci/ymfpci_main.c voiceidx == 0 && (ypcm->chip->src441_used == -1 || ypcm 523 sound/pci/ymfpci/ymfpci_main.c ypcm->chip->src441_used == voice->number)) { ypcm 524 sound/pci/ymfpci/ymfpci_main.c ypcm->chip->src441_used = voice->number; ypcm 525 sound/pci/ymfpci/ymfpci_main.c ypcm->use_441_slot = 1; ypcm 528 sound/pci/ymfpci/ymfpci_main.c if (ypcm->chip->src441_used == voice->number && ypcm 530 sound/pci/ymfpci/ymfpci_main.c ypcm->chip->src441_used = -1; ypcm 531 sound/pci/ymfpci/ymfpci_main.c ypcm->use_441_slot = 0; ypcm 535 sound/pci/ymfpci/ymfpci_main.c spin_unlock_irqrestore(&ypcm->chip->voice_lock, flags); ypcm 541 sound/pci/ymfpci/ymfpci_main.c bank->loop_end = cpu_to_le32(ypcm->buffer_size); ypcm 550 sound/pci/ymfpci/ymfpci_main.c if (ypcm->output_front) { ypcm 560 sound/pci/ymfpci/ymfpci_main.c if (ypcm->output_rear) { ypcm 561 sound/pci/ymfpci/ymfpci_main.c if (!ypcm->swap_rear) { ypcm 628 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 633 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ymfpci_pcm_voice_alloc(ypcm, params_channels(hw_params))) < 0) ypcm 642 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 646 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; ypcm 651 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[1]) { ypcm 652 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_voice_free(chip, ypcm->voices[1]); ypcm 653 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[1] = NULL; ypcm 655 sound/pci/ymfpci/ymfpci_main.c if (ypcm->voices[0]) { ypcm 656 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_voice_free(chip, ypcm->voices[0]); ypcm 657 sound/pci/ymfpci/ymfpci_main.c ypcm->voices[0] = NULL; ypcm 666 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 670 sound/pci/ymfpci/ymfpci_main.c ypcm->period_size = runtime->period_size; ypcm 671 sound/pci/ymfpci/ymfpci_main.c ypcm->buffer_size = runtime->buffer_size; ypcm 672 sound/pci/ymfpci/ymfpci_main.c ypcm->period_pos = 0; ypcm 673 sound/pci/ymfpci/ymfpci_main.c ypcm->last_pos = 0; ypcm 675 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_pcm_init_voice(ypcm, nvoice, runtime, ypcm 678 sound/pci/ymfpci/ymfpci_main.c if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { ypcm 705 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 710 sound/pci/ymfpci/ymfpci_main.c ypcm->period_size = runtime->period_size; ypcm 711 sound/pci/ymfpci/ymfpci_main.c ypcm->buffer_size = runtime->buffer_size; ypcm 712 sound/pci/ymfpci/ymfpci_main.c ypcm->period_pos = 0; ypcm 713 sound/pci/ymfpci/ymfpci_main.c ypcm->last_pos = 0; ypcm 714 sound/pci/ymfpci/ymfpci_main.c ypcm->shift = 0; ypcm 719 sound/pci/ymfpci/ymfpci_main.c ypcm->shift++; ypcm 724 sound/pci/ymfpci/ymfpci_main.c ypcm->shift++; ypcm 725 sound/pci/ymfpci/ymfpci_main.c switch (ypcm->capture_bank_number) { ypcm 736 sound/pci/ymfpci/ymfpci_main.c bank = chip->bank_capture[ypcm->capture_bank_number][nbank]; ypcm 738 sound/pci/ymfpci/ymfpci_main.c bank->loop_end = cpu_to_le32(ypcm->buffer_size << ypcm->shift); ypcm 749 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 750 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_voice *voice = ypcm->voices[0]; ypcm 752 sound/pci/ymfpci/ymfpci_main.c if (!(ypcm->running && voice)) ypcm 761 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 763 sound/pci/ymfpci/ymfpci_main.c if (!ypcm->running) ypcm 765 sound/pci/ymfpci/ymfpci_main.c return le32_to_cpu(chip->bank_capture[ypcm->capture_bank_number][chip->active_bank]->start) >> ypcm->shift; ypcm 887 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 901 sound/pci/ymfpci/ymfpci_main.c ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL); ypcm 902 sound/pci/ymfpci/ymfpci_main.c if (ypcm == NULL) ypcm 904 sound/pci/ymfpci/ymfpci_main.c ypcm->chip = chip; ypcm 905 sound/pci/ymfpci/ymfpci_main.c ypcm->type = PLAYBACK_VOICE; ypcm 906 sound/pci/ymfpci/ymfpci_main.c ypcm->substream = substream; ypcm 907 sound/pci/ymfpci/ymfpci_main.c runtime->private_data = ypcm; ypcm 941 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 946 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; ypcm 947 sound/pci/ymfpci/ymfpci_main.c ypcm->output_front = 1; ypcm 948 sound/pci/ymfpci/ymfpci_main.c ypcm->output_rear = chip->mode_dup4ch ? 1 : 0; ypcm 949 sound/pci/ymfpci/ymfpci_main.c ypcm->swap_rear = 0; ypcm 951 sound/pci/ymfpci/ymfpci_main.c if (ypcm->output_rear) { ypcm 963 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 968 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; ypcm 969 sound/pci/ymfpci/ymfpci_main.c ypcm->output_front = 0; ypcm 970 sound/pci/ymfpci/ymfpci_main.c ypcm->output_rear = 1; ypcm 971 sound/pci/ymfpci/ymfpci_main.c ypcm->swap_rear = 1; ypcm 991 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 996 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; ypcm 997 sound/pci/ymfpci/ymfpci_main.c ypcm->output_front = 0; ypcm 998 sound/pci/ymfpci/ymfpci_main.c ypcm->output_rear = 1; ypcm 999 sound/pci/ymfpci/ymfpci_main.c ypcm->swap_rear = 0; ypcm 1012 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm; ypcm 1026 sound/pci/ymfpci/ymfpci_main.c ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL); ypcm 1027 sound/pci/ymfpci/ymfpci_main.c if (ypcm == NULL) ypcm 1029 sound/pci/ymfpci/ymfpci_main.c ypcm->chip = chip; ypcm 1030 sound/pci/ymfpci/ymfpci_main.c ypcm->type = capture_bank_number + CAPTURE_REC; ypcm 1031 sound/pci/ymfpci/ymfpci_main.c ypcm->substream = substream; ypcm 1032 sound/pci/ymfpci/ymfpci_main.c ypcm->capture_bank_number = capture_bank_number; ypcm 1034 sound/pci/ymfpci/ymfpci_main.c runtime->private_data = ypcm; ypcm 1058 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; ypcm 1061 sound/pci/ymfpci/ymfpci_main.c if (ypcm->output_rear && chip->rear_opened > 0) { ypcm 1103 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; ypcm 1105 sound/pci/ymfpci/ymfpci_main.c if (ypcm != NULL) { ypcm 1106 sound/pci/ymfpci/ymfpci_main.c chip->capture_substream[ypcm->capture_bank_number] = NULL; ypcm 1755 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; ypcm 1756 sound/pci/ymfpci/ymfpci_main.c if (!ypcm->use_441_slot) ypcm 1757 sound/pci/ymfpci/ymfpci_main.c ypcm->update_pcm_vol = 2;