Lines Matching refs:ins
51 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in shadow_and_reallocate_code() local
60 if (ins->code.offset > 0) { in shadow_and_reallocate_code()
80 address += (ins->code.offset / 2) - overlay_begin_address; in shadow_and_reallocate_code()
104 ins->code.data[ins->code.size++] = loval; in shadow_and_reallocate_code()
105 ins->code.data[ins->code.size++] = hival; in shadow_and_reallocate_code()
125 static int find_free_symbol_index (struct dsp_spos_instance * ins) in find_free_symbol_index() argument
127 int index = ins->symbol_table.nsymbols,i; in find_free_symbol_index()
129 for (i = ins->symbol_table.highest_frag_index; i < ins->symbol_table.nsymbols; ++i) { in find_free_symbol_index()
130 if (ins->symbol_table.symbols[i].deleted) { in find_free_symbol_index()
142 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in add_symbols() local
152 if (ins->symbol_table.nsymbols == (DSP_MAX_SYMBOLS - 1)) { in add_symbols()
163 ins->symbol_table.symbols[ins->symbol_table.nsymbols] = module->symbol_table.symbols[i]; in add_symbols()
164 …ins->symbol_table.symbols[ins->symbol_table.nsymbols].address += ((ins->code.offset / 2) - module-… in add_symbols()
165 ins->symbol_table.symbols[ins->symbol_table.nsymbols].module = module; in add_symbols()
166 ins->symbol_table.symbols[ins->symbol_table.nsymbols].deleted = 0; in add_symbols()
168 if (ins->symbol_table.nsymbols > ins->symbol_table.highest_frag_index) in add_symbols()
169 ins->symbol_table.highest_frag_index = ins->symbol_table.nsymbols; in add_symbols()
171 ins->symbol_table.nsymbols++; in add_symbols()
187 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in add_symbol() local
191 if (ins->symbol_table.nsymbols == (DSP_MAX_SYMBOLS - 1)) { in add_symbol()
204 index = find_free_symbol_index (ins); in add_symbol()
206 strcpy (ins->symbol_table.symbols[index].symbol_name, symbol_name); in add_symbol()
207 ins->symbol_table.symbols[index].address = address; in add_symbol()
208 ins->symbol_table.symbols[index].symbol_type = type; in add_symbol()
209 ins->symbol_table.symbols[index].module = NULL; in add_symbol()
210 ins->symbol_table.symbols[index].deleted = 0; in add_symbol()
211 symbol = (ins->symbol_table.symbols + index); in add_symbol()
213 if (index > ins->symbol_table.highest_frag_index) in add_symbol()
214 ins->symbol_table.highest_frag_index = index; in add_symbol()
216 if (index == ins->symbol_table.nsymbols) in add_symbol()
217 ins->symbol_table.nsymbols++; /* no frag. in list */ in add_symbol()
224 struct dsp_spos_instance * ins = kzalloc(sizeof(struct dsp_spos_instance), GFP_KERNEL); in cs46xx_dsp_spos_create() local
226 if (ins == NULL) in cs46xx_dsp_spos_create()
230 ins->symbol_table.symbols = in cs46xx_dsp_spos_create()
233 ins->code.data = kmalloc(DSP_CODE_BYTE_SIZE, GFP_KERNEL); in cs46xx_dsp_spos_create()
234 ins->modules = kmalloc_array(DSP_MAX_MODULES, in cs46xx_dsp_spos_create()
237 if (!ins->symbol_table.symbols || !ins->code.data || !ins->modules) { in cs46xx_dsp_spos_create()
241 ins->symbol_table.nsymbols = 0; in cs46xx_dsp_spos_create()
242 ins->symbol_table.highest_frag_index = 0; in cs46xx_dsp_spos_create()
243 ins->code.offset = 0; in cs46xx_dsp_spos_create()
244 ins->code.size = 0; in cs46xx_dsp_spos_create()
245 ins->nscb = 0; in cs46xx_dsp_spos_create()
246 ins->ntask = 0; in cs46xx_dsp_spos_create()
247 ins->nmodules = 0; in cs46xx_dsp_spos_create()
251 ins->spdif_in_sample_rate = 48000; in cs46xx_dsp_spos_create()
254 ins->dac_volume_right = 0x8000; in cs46xx_dsp_spos_create()
255 ins->dac_volume_left = 0x8000; in cs46xx_dsp_spos_create()
256 ins->spdif_input_volume_right = 0x8000; in cs46xx_dsp_spos_create()
257 ins->spdif_input_volume_left = 0x8000; in cs46xx_dsp_spos_create()
261 ins->spdif_csuv_default = in cs46xx_dsp_spos_create()
262 ins->spdif_csuv_stream = in cs46xx_dsp_spos_create()
268 return ins; in cs46xx_dsp_spos_create()
271 kfree(ins->modules); in cs46xx_dsp_spos_create()
272 kfree(ins->code.data); in cs46xx_dsp_spos_create()
273 vfree(ins->symbol_table.symbols); in cs46xx_dsp_spos_create()
274 kfree(ins); in cs46xx_dsp_spos_create()
281 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_spos_destroy() local
283 if (snd_BUG_ON(!ins)) in cs46xx_dsp_spos_destroy()
287 for (i = 0; i < ins->nscb; ++i) { in cs46xx_dsp_spos_destroy()
288 if (ins->scbs[i].deleted) continue; in cs46xx_dsp_spos_destroy()
290 cs46xx_dsp_proc_free_scb_desc ( (ins->scbs + i) ); in cs46xx_dsp_spos_destroy()
292 kfree(ins->scbs[i].data); in cs46xx_dsp_spos_destroy()
296 kfree(ins->code.data); in cs46xx_dsp_spos_destroy()
297 vfree(ins->symbol_table.symbols); in cs46xx_dsp_spos_destroy()
298 kfree(ins->modules); in cs46xx_dsp_spos_destroy()
299 kfree(ins); in cs46xx_dsp_spos_destroy()
356 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_load_module() local
361 if (ins->nmodules == DSP_MAX_MODULES - 1) { in cs46xx_dsp_load_module()
370 if (ins->nmodules == 0) { in cs46xx_dsp_load_module()
380 if (ins->nmodules == 0) { in cs46xx_dsp_load_module()
390 if (ins->nmodules == 0) { in cs46xx_dsp_load_module()
399 if (ins->code.offset + code->size > DSP_CODE_BYTE_SIZE) { in cs46xx_dsp_load_module()
405 module->load_address = ins->code.offset; in cs46xx_dsp_load_module()
418 doffset = (code->offset * 4 + ins->code.offset * 4 + DSP_CODE_BYTE_OFFSET); in cs46xx_dsp_load_module()
426 if (snd_cs46xx_download (chip,(ins->code.data + ins->code.offset),doffset,dsize)) { in cs46xx_dsp_load_module()
432 ins->code.offset += code->size; in cs46xx_dsp_load_module()
438 ins->modules[ins->nmodules] = *module; in cs46xx_dsp_load_module()
439 ins->nmodules++; in cs46xx_dsp_load_module()
448 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_lookup_symbol() local
450 for ( i = 0; i < ins->symbol_table.nsymbols; ++i ) { in cs46xx_dsp_lookup_symbol()
452 if (ins->symbol_table.symbols[i].deleted) in cs46xx_dsp_lookup_symbol()
455 if (!strcmp(ins->symbol_table.symbols[i].symbol_name,symbol_name) && in cs46xx_dsp_lookup_symbol()
456 ins->symbol_table.symbols[i].symbol_type == symbol_type) { in cs46xx_dsp_lookup_symbol()
457 return (ins->symbol_table.symbols + i); in cs46xx_dsp_lookup_symbol()
475 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_lookup_symbol_addr() local
477 for ( i = 0; i < ins->symbol_table.nsymbols; ++i ) { in cs46xx_dsp_lookup_symbol_addr()
479 if (ins->symbol_table.symbols[i].deleted) in cs46xx_dsp_lookup_symbol_addr()
482 if (ins->symbol_table.symbols[i].address == address && in cs46xx_dsp_lookup_symbol_addr()
483 ins->symbol_table.symbols[i].symbol_type == symbol_type) { in cs46xx_dsp_lookup_symbol_addr()
484 return (ins->symbol_table.symbols + i); in cs46xx_dsp_lookup_symbol_addr()
497 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_proc_symbol_table_read() local
501 for ( i = 0; i < ins->symbol_table.nsymbols; ++i ) { in cs46xx_dsp_proc_symbol_table_read()
504 if (ins->symbol_table.symbols[i].deleted) in cs46xx_dsp_proc_symbol_table_read()
507 if (ins->symbol_table.symbols[i].module != NULL) { in cs46xx_dsp_proc_symbol_table_read()
508 module_str = ins->symbol_table.symbols[i].module->module_name; in cs46xx_dsp_proc_symbol_table_read()
513 ins->symbol_table.symbols[i].address, in cs46xx_dsp_proc_symbol_table_read()
514 ins->symbol_table.symbols[i].symbol_type, in cs46xx_dsp_proc_symbol_table_read()
515 ins->symbol_table.symbols[i].symbol_name, in cs46xx_dsp_proc_symbol_table_read()
525 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_proc_modules_read() local
530 for ( i = 0; i < ins->nmodules; ++i ) { in cs46xx_dsp_proc_modules_read()
531 snd_iprintf(buffer, "\n%s:\n", ins->modules[i].module_name); in cs46xx_dsp_proc_modules_read()
532 snd_iprintf(buffer, " %d symbols\n", ins->modules[i].symbol_table.nsymbols); in cs46xx_dsp_proc_modules_read()
533 snd_iprintf(buffer, " %d fixups\n", ins->modules[i].nfixups); in cs46xx_dsp_proc_modules_read()
535 for (j = 0; j < ins->modules[i].nsegments; ++ j) { in cs46xx_dsp_proc_modules_read()
536 struct dsp_segment_desc * desc = (ins->modules[i].segments + j); in cs46xx_dsp_proc_modules_read()
548 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_proc_task_tree_read() local
554 for ( i = 0; i < ins->ntask; ++i) { in cs46xx_dsp_proc_task_tree_read()
555 snd_iprintf(buffer,"\n%04x %s:\n",ins->tasks[i].address,ins->tasks[i].task_name); in cs46xx_dsp_proc_task_tree_read()
557 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read()
563 val = readl(dst + (ins->tasks[i].address + j) * sizeof(u32)); in cs46xx_dsp_proc_task_tree_read()
576 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_proc_scb_read() local
581 for ( i = 0; i < ins->nscb; ++i) { in cs46xx_dsp_proc_scb_read()
582 if (ins->scbs[i].deleted) in cs46xx_dsp_proc_scb_read()
584 snd_iprintf(buffer,"\n%04x %s:\n\n",ins->scbs[i].address,ins->scbs[i].scb_name); in cs46xx_dsp_proc_scb_read()
586 if (ins->scbs[i].parent_scb_ptr != NULL) { in cs46xx_dsp_proc_scb_read()
588 ins->scbs[i].parent_scb_ptr->scb_name, in cs46xx_dsp_proc_scb_read()
589 ins->scbs[i].parent_scb_ptr->address); in cs46xx_dsp_proc_scb_read()
593 ins->scbs[i].sub_list_ptr->scb_name, in cs46xx_dsp_proc_scb_read()
594 ins->scbs[i].sub_list_ptr->address, in cs46xx_dsp_proc_scb_read()
595 ins->scbs[i].next_scb_ptr->scb_name, in cs46xx_dsp_proc_scb_read()
596 ins->scbs[i].next_scb_ptr->address, in cs46xx_dsp_proc_scb_read()
597 ins->scbs[i].task_entry->symbol_name, in cs46xx_dsp_proc_scb_read()
598 ins->scbs[i].task_entry->address); in cs46xx_dsp_proc_scb_read()
784 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_proc_init() local
787 ins->snd_card = card; in cs46xx_dsp_proc_init()
792 ins->proc_dsp_dir = entry; in cs46xx_dsp_proc_init()
794 if (!ins->proc_dsp_dir) in cs46xx_dsp_proc_init()
798 ins->proc_dsp_dir); in cs46xx_dsp_proc_init()
804 ins->proc_dsp_dir); in cs46xx_dsp_proc_init()
810 ins->proc_dsp_dir); in cs46xx_dsp_proc_init()
816 ins->proc_dsp_dir); in cs46xx_dsp_proc_init()
822 ins->proc_dsp_dir); in cs46xx_dsp_proc_init()
828 ins->proc_dsp_dir); in cs46xx_dsp_proc_init()
835 for (i = 0; i < ins->nscb; ++i) { in cs46xx_dsp_proc_init()
836 if (ins->scbs[i].deleted) continue; in cs46xx_dsp_proc_init()
838 cs46xx_dsp_proc_register_scb_desc (chip, (ins->scbs + i)); in cs46xx_dsp_proc_init()
847 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_proc_done() local
850 if (!ins) in cs46xx_dsp_proc_done()
854 for (i = 0; i < ins->nscb; ++i) { in cs46xx_dsp_proc_done()
855 if (ins->scbs[i].deleted) continue; in cs46xx_dsp_proc_done()
856 cs46xx_dsp_proc_free_scb_desc ( (ins->scbs + i) ); in cs46xx_dsp_proc_done()
860 snd_info_free_entry(ins->proc_dsp_dir); in cs46xx_dsp_proc_done()
861 ins->proc_dsp_dir = NULL; in cs46xx_dsp_proc_done()
896 static int find_free_scb_index (struct dsp_spos_instance * ins) in find_free_scb_index() argument
898 int index = ins->nscb, i; in find_free_scb_index()
900 for (i = ins->scb_highest_frag_index; i < ins->nscb; ++i) { in find_free_scb_index()
901 if (ins->scbs[i].deleted) { in find_free_scb_index()
912 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in _map_scb() local
916 if (ins->nscb == DSP_MAX_SCB_DESC - 1) { in _map_scb()
922 index = find_free_scb_index (ins); in _map_scb()
924 memset(&ins->scbs[index], 0, sizeof(ins->scbs[index])); in _map_scb()
925 strcpy(ins->scbs[index].scb_name, name); in _map_scb()
926 ins->scbs[index].address = dest; in _map_scb()
927 ins->scbs[index].index = index; in _map_scb()
928 ins->scbs[index].ref_count = 1; in _map_scb()
930 desc = (ins->scbs + index); in _map_scb()
931 ins->scbs[index].scb_symbol = add_symbol (chip, name, dest, SYMBOL_PARAMETER); in _map_scb()
933 if (index > ins->scb_highest_frag_index) in _map_scb()
934 ins->scb_highest_frag_index = index; in _map_scb()
936 if (index == ins->nscb) in _map_scb()
937 ins->nscb++; in _map_scb()
945 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in _map_task_tree() local
948 if (ins->ntask == DSP_MAX_TASK_DESC - 1) { in _map_task_tree()
955 strcpy(ins->tasks[ins->ntask].task_name, name); in _map_task_tree()
957 strcpy(ins->tasks[ins->ntask].task_name, "(NULL)"); in _map_task_tree()
958 ins->tasks[ins->ntask].address = dest; in _map_task_tree()
959 ins->tasks[ins->ntask].size = size; in _map_task_tree()
962 ins->tasks[ins->ntask].index = ins->ntask; in _map_task_tree()
963 desc = (ins->tasks + ins->ntask); in _map_task_tree()
964 ins->ntask++; in _map_task_tree()
1019 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_scb_and_task_init() local
1111 ins->the_null_scb = cs46xx_dsp_create_scb(chip, "nullSCB", (u32 *)&null_scb, NULL_SCB_ADDR); in cs46xx_dsp_scb_and_task_init()
1112 ins->the_null_scb->task_entry = null_algorithm; in cs46xx_dsp_scb_and_task_init()
1113 ins->the_null_scb->sub_list_ptr = ins->the_null_scb; in cs46xx_dsp_scb_and_task_init()
1114 ins->the_null_scb->next_scb_ptr = ins->the_null_scb; in cs46xx_dsp_scb_and_task_init()
1115 ins->the_null_scb->parent_scb_ptr = NULL; in cs46xx_dsp_scb_and_task_init()
1116 cs46xx_dsp_proc_register_scb_desc (chip,ins->the_null_scb); in cs46xx_dsp_scb_and_task_init()
1285 ins->master_mix_scb = master_mix_scb; in cs46xx_dsp_scb_and_task_init()
1295 ins->codec_in_scb = codec_in_scb; in cs46xx_dsp_scb_and_task_init()
1332 ins->record_mixer_scb = record_mix_scb; in cs46xx_dsp_scb_and_task_init()
1372 ins->rear_mix_scb = rear_mix_scb; in cs46xx_dsp_scb_and_task_init()
1387 ins->center_lfe_mix_scb = cs46xx_dsp_create_mix_only_scb(chip,"CLFEMixerSCB", in cs46xx_dsp_scb_and_task_init()
1392 if (!ins->center_lfe_mix_scb) goto _fail_end; in cs46xx_dsp_scb_and_task_init()
1398 ins->center_lfe_mix_scb = rear_mix_scb; in cs46xx_dsp_scb_and_task_init()
1413 ins->ref_snoop_scb = magic_snoop_scb; in cs46xx_dsp_scb_and_task_init()
1423 ins->spdif_in_sample_rate, in cs46xx_dsp_scb_and_task_init()
1434 ins->spdif_in_src = src_task_scb; in cs46xx_dsp_scb_and_task_init()
1447 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_async_init() local
1593 async_codec_scb_desc->sub_list_ptr = ins->the_null_scb; in cs46xx_dsp_async_init()
1598 spdifi_scb_desc->sub_list_ptr = ins->the_null_scb; in cs46xx_dsp_async_init()
1603 spdifo_scb_desc->sub_list_ptr = ins->the_null_scb; in cs46xx_dsp_async_init()
1624 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_disable_spdif_hw() local
1640 ins->spdif_status_out &= ~DSP_SPDIF_STATUS_HW_ENABLED; in cs46xx_dsp_disable_spdif_hw()
1645 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_enable_spdif_hw() local
1658 cs46xx_poke_via_dsp (chip,SP_SPDOUT_CSUV, ins->spdif_csuv_default); in cs46xx_dsp_enable_spdif_hw()
1661 ins->spdif_status_out |= DSP_SPDIF_STATUS_HW_ENABLED; in cs46xx_dsp_enable_spdif_hw()
1668 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_enable_spdif_in() local
1674 if (snd_BUG_ON(ins->asynch_rx_scb)) in cs46xx_dsp_enable_spdif_in()
1676 if (snd_BUG_ON(!ins->spdif_in_src)) in cs46xx_dsp_enable_spdif_in()
1681 if ( ! (ins->spdif_status_out & DSP_SPDIF_STATUS_INPUT_CTRL_ENABLED) ) { in cs46xx_dsp_enable_spdif_in()
1691 ins->spdif_status_out |= DSP_SPDIF_STATUS_INPUT_CTRL_ENABLED; in cs46xx_dsp_enable_spdif_in()
1695 ins->asynch_rx_scb = cs46xx_dsp_create_asynch_fg_rx_scb(chip,"AsynchFGRxSCB", in cs46xx_dsp_enable_spdif_in()
1699 ins->spdif_in_src, in cs46xx_dsp_enable_spdif_in()
1710 cs46xx_src_link(chip,ins->spdif_in_src); in cs46xx_dsp_enable_spdif_in()
1713 cs46xx_dsp_scb_set_volume (chip,ins->spdif_in_src,0x7fff,0x7fff); in cs46xx_dsp_enable_spdif_in()
1722 ins->spdif_status_in = 1; in cs46xx_dsp_enable_spdif_in()
1730 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_disable_spdif_in() local
1732 if (snd_BUG_ON(!ins->asynch_rx_scb)) in cs46xx_dsp_disable_spdif_in()
1734 if (snd_BUG_ON(!ins->spdif_in_src)) in cs46xx_dsp_disable_spdif_in()
1740 cs46xx_dsp_remove_scb (chip,ins->asynch_rx_scb); in cs46xx_dsp_disable_spdif_in()
1741 ins->asynch_rx_scb = NULL; in cs46xx_dsp_disable_spdif_in()
1743 cs46xx_src_unlink(chip,ins->spdif_in_src); in cs46xx_dsp_disable_spdif_in()
1746 ins->spdif_status_in = 0; in cs46xx_dsp_disable_spdif_in()
1758 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_enable_pcm_capture() local
1760 if (snd_BUG_ON(ins->pcm_input)) in cs46xx_dsp_enable_pcm_capture()
1762 if (snd_BUG_ON(!ins->ref_snoop_scb)) in cs46xx_dsp_enable_pcm_capture()
1766 ins->pcm_input = cs46xx_add_record_source(chip,ins->ref_snoop_scb,PCMSERIALIN_PCM_SCB_ADDR, in cs46xx_dsp_enable_pcm_capture()
1775 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_disable_pcm_capture() local
1777 if (snd_BUG_ON(!ins->pcm_input)) in cs46xx_dsp_disable_pcm_capture()
1781 cs46xx_dsp_remove_scb (chip,ins->pcm_input); in cs46xx_dsp_disable_pcm_capture()
1782 ins->pcm_input = NULL; in cs46xx_dsp_disable_pcm_capture()
1790 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_enable_adc_capture() local
1792 if (snd_BUG_ON(ins->adc_input)) in cs46xx_dsp_enable_adc_capture()
1794 if (snd_BUG_ON(!ins->codec_in_scb)) in cs46xx_dsp_enable_adc_capture()
1798 ins->adc_input = cs46xx_add_record_source(chip,ins->codec_in_scb,PCMSERIALIN_SCB_ADDR, in cs46xx_dsp_enable_adc_capture()
1807 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_disable_adc_capture() local
1809 if (snd_BUG_ON(!ins->adc_input)) in cs46xx_dsp_disable_adc_capture()
1813 cs46xx_dsp_remove_scb (chip,ins->adc_input); in cs46xx_dsp_disable_adc_capture()
1814 ins->adc_input = NULL; in cs46xx_dsp_disable_adc_capture()
1860 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_set_dac_volume() local
1866 scb = ins->master_mix_scb->sub_list_ptr; in cs46xx_dsp_set_dac_volume()
1867 while (scb != ins->the_null_scb) { in cs46xx_dsp_set_dac_volume()
1873 scb = ins->rear_mix_scb->sub_list_ptr; in cs46xx_dsp_set_dac_volume()
1874 while (scb != ins->the_null_scb) { in cs46xx_dsp_set_dac_volume()
1879 ins->dac_volume_left = left; in cs46xx_dsp_set_dac_volume()
1880 ins->dac_volume_right = right; in cs46xx_dsp_set_dac_volume()
1889 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_set_iec958_volume() local
1893 if (ins->asynch_rx_scb != NULL) in cs46xx_dsp_set_iec958_volume()
1894 cs46xx_dsp_scb_set_volume (chip,ins->asynch_rx_scb, in cs46xx_dsp_set_iec958_volume()
1897 ins->spdif_input_volume_left = left; in cs46xx_dsp_set_iec958_volume()
1898 ins->spdif_input_volume_right = right; in cs46xx_dsp_set_iec958_volume()
1908 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in cs46xx_dsp_resume() local
1918 for (i = 0; i < ins->nmodules; i++) { in cs46xx_dsp_resume()
1919 struct dsp_module_desc *module = &ins->modules[i]; in cs46xx_dsp_resume()
1941 ins->code.data + module->load_address, in cs46xx_dsp_resume()
1947 for (i = 0; i < ins->ntask; i++) { in cs46xx_dsp_resume()
1948 struct dsp_task_descriptor *t = &ins->tasks[i]; in cs46xx_dsp_resume()
1952 for (i = 0; i < ins->nscb; i++) { in cs46xx_dsp_resume()
1953 struct dsp_scb_descriptor *s = &ins->scbs[i]; in cs46xx_dsp_resume()
1958 for (i = 0; i < ins->nscb; i++) { in cs46xx_dsp_resume()
1959 struct dsp_scb_descriptor *s = &ins->scbs[i]; in cs46xx_dsp_resume()
1968 if (ins->spdif_status_out & DSP_SPDIF_STATUS_HW_ENABLED) { in cs46xx_dsp_resume()
1970 snd_cs46xx_poke(chip, (ins->ref_snoop_scb->address + 2) << 2, in cs46xx_dsp_resume()
1972 if (ins->spdif_status_out & DSP_SPDIF_STATUS_PLAYBACK_OPEN) in cs46xx_dsp_resume()
1974 ins->spdif_csuv_stream); in cs46xx_dsp_resume()