• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/cs46xx/

Lines Matching defs:ins

46 	struct dsp_spos_instance * ins = chip->dsp_spos_instance;
47 int symbol_index = (int)(symbol - ins->symbol_table.symbols);
49 if (snd_BUG_ON(ins->symbol_table.nsymbols <= 0))
52 symbol_index >= ins->symbol_table.nsymbols))
55 ins->symbol_table.symbols[symbol_index].deleted = 1;
57 if (symbol_index < ins->symbol_table.highest_frag_index) {
58 ins->symbol_table.highest_frag_index = symbol_index;
61 if (symbol_index == ins->symbol_table.nsymbols - 1)
62 ins->symbol_table.nsymbols --;
64 if (ins->symbol_table.highest_frag_index > ins->symbol_table.nsymbols) {
65 ins->symbol_table.highest_frag_index = ins->symbol_table.nsymbols;
76 struct dsp_spos_instance * ins;
81 ins = chip->dsp_spos_instance;
117 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
127 if (scb->next_scb_ptr == ins->the_null_scb) {
131 if (scb->sub_list_ptr != ins->the_null_scb) {
134 scb->sub_list_ptr = ins->the_null_scb;
139 if (scb->next_scb_ptr != ins->the_null_scb) {
143 scb->next_scb_ptr = ins->the_null_scb;
148 if (scb->next_scb_ptr != ins->the_null_scb) {
152 scb->next_scb_ptr = ins->the_null_scb;
179 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
184 scb->index >= ins->nscb ||
185 (ins->scbs + scb->index) != scb))
198 ins->scbs[scb->index].deleted = 1;
200 kfree(ins->scbs[scb->index].data);
201 ins->scbs[scb->index].data = NULL;
204 if (scb->index < ins->scb_highest_frag_index)
205 ins->scb_highest_frag_index = scb->index;
207 if (scb->index == ins->nscb - 1) {
208 ins->nscb --;
211 if (ins->scb_highest_frag_index > ins->nscb) {
212 ins->scb_highest_frag_index = ins->nscb;
236 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
241 if (ins->snd_card != NULL && ins->proc_dsp_dir != NULL &&
244 if ((entry = snd_info_create_card_entry(ins->snd_card, scb->scb_name,
245 ins->proc_dsp_dir)) != NULL) {
280 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
285 if (snd_BUG_ON(!ins->the_null_scb))
290 (ins->the_null_scb->address << 0x10) | ins->the_null_scb->address;
300 scb->sub_list_ptr = ins->the_null_scb;
301 scb->next_scb_ptr = ins->the_null_scb;
312 ins->the_null_scb))
319 ins->the_null_scb))
481 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
558 if (ins->null_algorithm == NULL) {
559 ins->null_algorithm = cs46xx_dsp_lookup_symbol (chip,"NULLALGORITHM",
562 if (ins->null_algorithm == NULL) {
569 dest,ins->null_algorithm,parent_scb,
587 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
641 0xffff - ins->dac_volume_right,0xffff - ins->dac_volume_left,
642 0xffff - ins->dac_volume_right,0xffff - ins->dac_volume_left
646 if (ins->s16_up == NULL) {
647 ins->s16_up = cs46xx_dsp_lookup_symbol (chip,"S16_UPSRC",
650 if (ins->s16_up == NULL) {
670 dest,ins->s16_up,parent_scb,
916 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
946 0xffff - ins->spdif_input_volume_right,0xffff - ins->spdif_input_volume_left,
947 0xffff - ins->spdif_input_volume_right,0xffff - ins->spdif_input_volume_left,
1035 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1038 while (scb->next_scb_ptr != ins->the_null_scb) {
1123 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1134 mixer_scb = ins->master_mix_scb;
1137 mixer_scb = ins->rear_mix_scb;
1140 mixer_scb = ins->center_lfe_mix_scb;
1147 if (snd_BUG_ON(!ins->asynch_tx_scb))
1149 mixer_scb = ins->asynch_tx_scb;
1175 if (ins->pcm_channels[i].active) {
1177 ins->pcm_channels[i].sample_rate == sample_rate &&
1178 ins->pcm_channels[i].mixer_scb == mixer_scb) {
1179 src_scb = ins->pcm_channels[i].src_scb;
1180 ins->pcm_channels[i].src_scb->ref_count ++;
1181 src_index = ins->pcm_channels[i].src_slot;
1194 if (ins->nsrc_scb >= DSP_MAX_SRC_NR) {
1201 if (ins->src_scb_slots[i] == 0) {
1203 ins->src_scb_slots[i] = 1;
1211 if (mixer_scb->sub_list_ptr == ins->the_null_scb) {
1239 ins->nsrc_scb ++;
1264 ins->pcm_channels[pcm_index].sample_rate = sample_rate;
1265 ins->pcm_channels[pcm_index].pcm_reader_scb = pcm_scb;
1266 ins->pcm_channels[pcm_index].src_scb = src_scb;
1267 ins->pcm_channels[pcm_index].unlinked = 1;
1268 ins->pcm_channels[pcm_index].private_data = private_data;
1269 ins->pcm_channels[pcm_index].src_slot = src_index;
1270 ins->pcm_channels[pcm_index].active = 1;
1271 ins->pcm_channels[pcm_index].pcm_slot = pcm_index;
1272 ins->pcm_channels[pcm_index].mixer_scb = mixer_scb;
1273 ins->npcm_channels ++;
1276 return (ins->pcm_channels + pcm_index);
1359 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1363 ins->npcm_channels <= 0 ||
1372 ins->npcm_channels --;
1384 ins->src_scb_slots[pcm_channel->src_slot] = 0;
1385 ins->nsrc_scb --;
1415 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1429 if (src_scb->sub_list_ptr != ins->the_null_scb) {
1454 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1459 if (snd_BUG_ON(!ins->record_mixer_scb))
1462 if (ins->record_mixer_scb->sub_list_ptr != ins->the_null_scb) {
1463 parent = find_next_free_scb (chip,ins->record_mixer_scb->sub_list_ptr);
1466 parent = ins->record_mixer_scb;
1496 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1501 if (snd_BUG_ON(!ins->master_mix_scb))
1504 if (ins->master_mix_scb->sub_list_ptr != ins->the_null_scb) {
1505 parent_scb = find_next_free_scb (chip,ins->master_mix_scb->sub_list_ptr);
1508 parent_scb = ins->master_mix_scb;
1522 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1524 if ( ! (ins->spdif_status_out & DSP_SPDIF_STATUS_HW_ENABLED) ) {
1529 if ( ins->spdif_status_out & DSP_SPDIF_STATUS_PLAYBACK_OPEN) {
1533 ins->spdif_status_out |= DSP_SPDIF_STATUS_OUTPUT_ENABLED;
1538 if (snd_BUG_ON(ins->asynch_tx_scb))
1540 if (snd_BUG_ON(ins->master_mix_scb->next_scb_ptr !=
1541 ins->the_null_scb))
1545 snd_cs46xx_poke (chip, (ins->ref_snoop_scb->address + 2) << 2,
1549 ins->asynch_tx_scb = cs46xx_dsp_create_asynch_fg_tx_scb(chip,"AsynchFGTxSCB",ASYNCTX_SCB_ADDR,
1552 ins->master_mix_scb,
1554 if (!ins->asynch_tx_scb) return -ENOMEM;
1556 ins->spdif_pcm_input_scb = cs46xx_dsp_create_pcm_serial_input_scb(chip,"PCMSerialInput_II",
1558 ins->ref_snoop_scb,
1559 ins->asynch_tx_scb,
1563 if (!ins->spdif_pcm_input_scb) return -ENOMEM;
1566 ins->spdif_status_out |= DSP_SPDIF_STATUS_OUTPUT_ENABLED;
1573 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1576 if ( ins->spdif_status_out & DSP_SPDIF_STATUS_PLAYBACK_OPEN) {
1577 ins->spdif_status_out &= ~DSP_SPDIF_STATUS_OUTPUT_ENABLED;
1582 if (snd_BUG_ON(!ins->asynch_tx_scb))
1584 if (snd_BUG_ON(!ins->spdif_pcm_input_scb))
1586 if (snd_BUG_ON(ins->master_mix_scb->next_scb_ptr != ins->asynch_tx_scb))
1588 if (snd_BUG_ON(ins->asynch_tx_scb->parent_scb_ptr !=
1589 ins->master_mix_scb))
1592 cs46xx_dsp_remove_scb (chip,ins->spdif_pcm_input_scb);
1593 cs46xx_dsp_remove_scb (chip,ins->asynch_tx_scb);
1595 ins->spdif_pcm_input_scb = NULL;
1596 ins->asynch_tx_scb = NULL;
1602 ins->spdif_status_out &= ~DSP_SPDIF_STATUS_OUTPUT_ENABLED;
1610 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1612 if ( ins->spdif_status_out & DSP_SPDIF_STATUS_OUTPUT_ENABLED ) {
1617 ins->spdif_status_out |= DSP_SPDIF_STATUS_OUTPUT_ENABLED;
1621 if ( !(ins->spdif_status_out & DSP_SPDIF_STATUS_HW_ENABLED) ) {
1626 ins->asynch_tx_scb = cs46xx_dsp_create_asynch_fg_tx_scb(chip,"AsynchFGTxSCB",ASYNCTX_SCB_ADDR,
1629 ins->master_mix_scb,
1634 cs46xx_poke_via_dsp (chip,SP_SPDOUT_CSUV, ins->spdif_csuv_stream);
1636 ins->spdif_status_out |= DSP_SPDIF_STATUS_PLAYBACK_OPEN;
1643 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
1645 if (snd_BUG_ON(!ins->asynch_tx_scb))
1648 ins->spdif_status_out &= ~DSP_SPDIF_STATUS_PLAYBACK_OPEN;
1651 cs46xx_poke_via_dsp (chip,SP_SPDOUT_CSUV, ins->spdif_csuv_default);
1654 if (ins->spdif_pcm_input_scb != NULL) {
1655 cs46xx_dsp_remove_scb (chip,ins->spdif_pcm_input_scb);
1656 ins->spdif_pcm_input_scb = NULL;
1659 cs46xx_dsp_remove_scb (chip,ins->asynch_tx_scb);
1660 ins->asynch_tx_scb = NULL;
1666 if ( ins->spdif_status_out & DSP_SPDIF_STATUS_OUTPUT_ENABLED ) {