Home
last modified time | relevance | path

Searched refs:ins (Results 1 – 8 of 8) sorted by relevance

/sound/pci/cs46xx/
Ddsp_spos.c64 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in shadow_and_reallocate_code() local
73 if (ins->code.offset > 0) { in shadow_and_reallocate_code()
93 address += (ins->code.offset / 2) - overlay_begin_address; in shadow_and_reallocate_code()
117 ins->code.data[ins->code.size++] = loval; in shadow_and_reallocate_code()
118 ins->code.data[ins->code.size++] = hival; in shadow_and_reallocate_code()
138 static int find_free_symbol_index (struct dsp_spos_instance * ins) in find_free_symbol_index() argument
140 int index = ins->symbol_table.nsymbols,i; in find_free_symbol_index()
142 for (i = ins->symbol_table.highest_frag_index; i < ins->symbol_table.nsymbols; ++i) { in find_free_symbol_index()
143 if (ins->symbol_table.symbols[i].deleted) { in find_free_symbol_index()
155 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in add_symbols() local
[all …]
Ddsp_spos_scb_lib.c46 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in remove_symbol() local
47 int symbol_index = (int)(symbol - ins->symbol_table.symbols); in remove_symbol()
49 if (snd_BUG_ON(ins->symbol_table.nsymbols <= 0)) in remove_symbol()
52 symbol_index >= ins->symbol_table.nsymbols)) in remove_symbol()
55 ins->symbol_table.symbols[symbol_index].deleted = 1; in remove_symbol()
57 if (symbol_index < ins->symbol_table.highest_frag_index) { in remove_symbol()
58 ins->symbol_table.highest_frag_index = symbol_index; in remove_symbol()
61 if (symbol_index == ins->symbol_table.nsymbols - 1) in remove_symbol()
62 ins->symbol_table.nsymbols --; in remove_symbol()
64 if (ins->symbol_table.highest_frag_index > ins->symbol_table.nsymbols) { in remove_symbol()
[all …]
Dcs46xx_lib.c1354 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in snd_cs46xx_interrupt() local
1379 if (ins->pcm_channels[i].active && in snd_cs46xx_interrupt()
1380 ins->pcm_channels[i].private_data && in snd_cs46xx_interrupt()
1381 !ins->pcm_channels[i].unlinked) { in snd_cs46xx_interrupt()
1382 cpcm = ins->pcm_channels[i].private_data; in snd_cs46xx_interrupt()
1389 if (ins->pcm_channels[i].active && in snd_cs46xx_interrupt()
1390 ins->pcm_channels[i].private_data && in snd_cs46xx_interrupt()
1391 !ins->pcm_channels[i].unlinked) { in snd_cs46xx_interrupt()
1392 cpcm = ins->pcm_channels[i].private_data; in snd_cs46xx_interrupt()
2050 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in snd_cs46xx_adc_capture_get() local
[all …]
/sound/pci/oxygen/
Doxygen_pcm.c703 int outs, ins; in oxygen_pcm_init() local
707 ins = !!(chip->model.device_config & (CAPTURE_0_FROM_I2S_1 | in oxygen_pcm_init()
709 if (outs | ins) { in oxygen_pcm_init()
711 0, outs, ins, &pcm); in oxygen_pcm_init()
731 if (ins) in oxygen_pcm_init()
740 ins = !!(chip->model.device_config & CAPTURE_1_FROM_SPDIF); in oxygen_pcm_init()
741 if (outs | ins) { in oxygen_pcm_init()
742 err = snd_pcm_new(chip->card, "Digital", 1, outs, ins, &pcm); in oxygen_pcm_init()
748 if (ins) in oxygen_pcm_init()
761 ins = !!(chip->model.device_config & CAPTURE_2_FROM_AC97_1); in oxygen_pcm_init()
[all …]
/sound/oss/
Dopl3.c114 struct sbi_instrument ins; in opl3_ioctl() local
119 if (copy_from_user(&ins, arg, sizeof(ins))) in opl3_ioctl()
121 if (ins.channel < 0 || ins.channel >= SBFM_MAXINSTR) { in opl3_ioctl()
122 printk(KERN_WARNING "FM Error: Invalid instrument number %d\n", ins.channel); in opl3_ioctl()
125 return store_instr(ins.channel, &ins); in opl3_ioctl()
824 struct sbi_instrument ins; in opl3_load_patch() local
826 if (count <sizeof(ins)) in opl3_load_patch()
832 if (copy_from_user(&ins, addr, sizeof(ins))) in opl3_load_patch()
835 if (ins.channel < 0 || ins.channel >= SBFM_MAXINSTR) in opl3_load_patch()
837 printk(KERN_WARNING "FM Error: Invalid instrument number %d\n", ins.channel); in opl3_load_patch()
[all …]
/sound/drivers/
Dserial-u16550.c77 static int ins[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; /* 1 to 16 */ variable
97 module_param_array(ins, int, NULL, 0444);
98 MODULE_PARM_DESC(ins, "Number of MIDI inputs.");
873 int outs, int ins, in snd_uart16550_rmidi() argument
880 outs, ins, &rrawmidi); in snd_uart16550_rmidi()
908 ins[dev] = 1; in snd_serial_probe()
913 ins[dev] = 1; in snd_serial_probe()
917 ins[dev] = 1; in snd_serial_probe()
935 if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) { in snd_serial_probe()
938 SNDRV_SERIAL_MAX_INS, ins[dev]); in snd_serial_probe()
[all …]
/sound/drivers/vx/
Dvx_pcm.c1240 unsigned int outs, ins; in snd_vx_pcm_new() local
1242 ins = chip->audio_ins > i * 2 ? 1 : 0; in snd_vx_pcm_new()
1243 if (! outs && ! ins) in snd_vx_pcm_new()
1246 outs, ins, &pcm); in snd_vx_pcm_new()
1251 if (ins) in snd_vx_pcm_new()
/sound/soc/codecs/
Dmsm8916-wcd-analog.c1006 bool ins = false; in pm8916_mbhc_switch_irq_handler() local
1010 ins = true; in pm8916_mbhc_switch_irq_handler()
1015 (!ins << CDC_A_MBHC_DET_CTL_MECH_DET_TYPE_SHIFT)); in pm8916_mbhc_switch_irq_handler()
1018 if (ins) { /* hs insertion */ in pm8916_mbhc_switch_irq_handler()