Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/sound/usb/
Dquirks-table.h49 .type = QUIRK_MIDI_FTDI
58 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
133 .type = QUIRK_COMPOSITE,
138 .type = QUIRK_IGNORE_INTERFACE,
143 .type = QUIRK_IGNORE_INTERFACE,
148 .type = QUIRK_IGNORE_INTERFACE,
241 .type = QUIRK_MIDI_YAMAHA \
250 .type = QUIRK_MIDI_YAMAHA \
341 .type = QUIRK_COMPOSITE,
345 .type = QUIRK_AUDIO_STANDARD_INTERFACE
[all …]
/sound/synth/emux/
Demux_effect.c33 #define xoffsetof(type,tag) ((long)(&((type)NULL)->tag) - (long)(NULL)) argument
52 int type; /* byte or word */ member
100 effect_set_byte(unsigned char *valp, struct snd_midi_channel *chan, int type) in effect_set_byte() argument
105 effect = fx->val[type]; in effect_set_byte()
106 if (fx->flag[type] == EMUX_FX_FLAG_ADD) { in effect_set_byte()
107 if (parm_defs[type].type & PARM_IS_SIGNED) in effect_set_byte()
112 if (effect < parm_defs[type].low) in effect_set_byte()
113 effect = parm_defs[type].low; in effect_set_byte()
114 else if (effect > parm_defs[type].high) in effect_set_byte()
115 effect = parm_defs[type].high; in effect_set_byte()
[all …]
/sound/core/
Dsound.c109 void *snd_lookup_minor_data(unsigned int minor, int type) in snd_lookup_minor_data() argument
118 if (mreg && mreg->type == type) { in snd_lookup_minor_data()
189 static int snd_find_free_minor(int type) in snd_find_free_minor() argument
194 if (type == SNDRV_DEVICE_TYPE_SEQUENCER) in snd_find_free_minor()
196 if (type == SNDRV_DEVICE_TYPE_TIMER) in snd_find_free_minor()
212 static int snd_kernel_minor(int type, struct snd_card *card, int dev) in snd_kernel_minor() argument
216 switch (type) { in snd_kernel_minor()
219 minor = type; in snd_kernel_minor()
224 minor = SNDRV_MINOR(card->number, type); in snd_kernel_minor()
233 minor = SNDRV_MINOR(card->number, type + dev); in snd_kernel_minor()
[all …]
Dcontrol_compat.c67 s32 type; member
126 copy_to_user(&data32->type, &data->type, 3 * sizeof(u32))) in snd_ctl_elem_info_compat()
130 switch (data->type) { in snd_ctl_elem_info_compat()
210 err = info->type; in get_ctl_type()
217 static int get_elem_size(int type, int count) in get_elem_size() argument
219 switch (type) { in get_elem_size()
240 int i, type, size; in copy_ctl_value_from_user() local
250 type = get_ctl_type(card, &data->id, &count); in copy_ctl_value_from_user()
251 if (type < 0) in copy_ctl_value_from_user()
252 return type; in copy_ctl_value_from_user()
[all …]
Dsound_oss.c46 void *snd_lookup_oss_minor_data(unsigned int minor, int type) in snd_lookup_oss_minor_data() argument
55 if (mreg && mreg->type == type) { in snd_lookup_oss_minor_data()
67 static int snd_oss_kernel_minor(int type, struct snd_card *card, int dev) in snd_oss_kernel_minor() argument
71 switch (type) { in snd_oss_kernel_minor()
107 int snd_register_oss_device(int type, struct snd_card *card, int dev, in snd_register_oss_device() argument
110 int minor = snd_oss_kernel_minor(type, card, dev); in snd_register_oss_device()
125 preg->type = type; in snd_register_oss_device()
171 int snd_unregister_oss_device(int type, struct snd_card *card, int dev) in snd_unregister_oss_device() argument
173 int minor = snd_oss_kernel_minor(type, card, dev); in snd_unregister_oss_device()
220 static const char *snd_oss_device_type_name(int type) in snd_oss_device_type_name() argument
[all …]
Djack.c87 if (!(jack->type & testbit)) in snd_jack_dev_register()
116 int snd_jack_new(struct snd_card *card, const char *id, int type, in snd_jack_new() argument
142 jack->type = type; in snd_jack_new()
145 if (type & (1 << i)) in snd_jack_new()
208 int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, in snd_jack_set_key() argument
211 int key = fls(SND_JACK_BTN_0) - fls(type); in snd_jack_set_key()
218 jack->type |= type; in snd_jack_set_key()
241 if (jack->type & testbit) in snd_jack_report()
248 if (jack->type & testbit) in snd_jack_report()
Dmemalloc.c172 int snd_dma_alloc_pages(int type, struct device *device, size_t size, in snd_dma_alloc_pages() argument
180 dmab->dev.type = type; in snd_dma_alloc_pages()
183 switch (type) { in snd_dma_alloc_pages()
198 dmab->dev.type = SNDRV_DMA_TYPE_DEV; in snd_dma_alloc_pages()
210 pr_err("snd-malloc: invalid device type %d\n", type); in snd_dma_alloc_pages()
236 int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, in snd_dma_alloc_pages_fallback() argument
241 while ((err = snd_dma_alloc_pages(type, device, size, dmab)) < 0) { in snd_dma_alloc_pages_fallback()
267 switch (dmab->dev.type) { in snd_dma_free_pages()
287 pr_err("snd-malloc: invalid device type %d\n", dmab->dev.type); in snd_dma_free_pages()
Ddevice.c44 int snd_device_new(struct snd_card *card, enum snd_device_type type, in snd_device_new() argument
54 dev_err(card->dev, "Cannot allocate device, type=%d\n", type); in snd_device_new()
59 dev->type = type; in snd_device_new()
67 if ((unsigned int)pdev->type <= (unsigned int)type) in snd_device_new()
/sound/core/seq/
Dseq_midi_event.c132 dev->type = ST_INVALID; in snd_midi_event_new()
153 dev->type = ST_INVALID; in reset_encode()
222 ev->type = SNDRV_SEQ_EVENT_NONE; in snd_midi_event_encode()
252 ev->type = status_event[ST_SPECIAL + c - 0xf0].event; in snd_midi_event_encode_byte()
255 return ev->type != SNDRV_SEQ_EVENT_NONE; in snd_midi_event_encode_byte()
260 (c != MIDI_CMD_COMMON_SYSEX_END || dev->type != ST_SYSEX)) { in snd_midi_event_encode_byte()
264 dev->type = (c & 0x0f) + ST_SPECIAL; in snd_midi_event_encode_byte()
266 dev->type = (c >> 4) & 0x07; in snd_midi_event_encode_byte()
268 dev->qlen = status_event[dev->type].qlen; in snd_midi_event_encode_byte()
273 if (dev->type != ST_SYSEX) in snd_midi_event_encode_byte()
[all …]
/sound/pci/ctxfi/
Dctmixer.c223 ct_mixer_recording_select(struct ct_mixer *mixer, enum CT_AMIXER_CTL type);
226 ct_mixer_recording_unselect(struct ct_mixer *mixer, enum CT_AMIXER_CTL type);
271 get_switch_state(struct ct_mixer *mixer, enum CTALSA_MIXER_CTL type) in get_switch_state() argument
273 return (mixer->switch_state & (0x1 << (type - SWH_MIXER_START))) in get_switch_state()
279 enum CTALSA_MIXER_CTL type, unsigned char state) in set_switch_state() argument
282 mixer->switch_state |= (0x1 << (type - SWH_MIXER_START)); in set_switch_state()
284 mixer->switch_state &= ~(0x1 << (type - SWH_MIXER_START)); in set_switch_state()
337 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in ct_alsa_mix_volume_info()
349 enum CT_AMIXER_CTL type = get_amixer_index(kcontrol->private_value); in ct_alsa_mix_volume_get() local
355 amixers[type*CHN_NUM+i]; in ct_alsa_mix_volume_get()
[all …]
Dctresource.c113 return (rsc->conj << 4) + offset_in_audio_slot_block[rsc->type]; in audio_ring_slot()
138 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument
144 rsc->type = type; in rsc_init()
153 switch (type) { in rsc_init()
166 "Invalid resource type value %d!\n", type); in rsc_init()
182 switch (rsc->type) { in rsc_uninit()
195 rsc->type); in rsc_uninit()
203 rsc->type = NUM_RSCTYP; in rsc_uninit()
209 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, in rsc_mgr_init() argument
214 mgr->type = NUM_RSCTYP; in rsc_mgr_init()
[all …]
Dctdaio.c107 static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw) in daio_device_index() argument
111 switch (type) { in daio_device_index()
123 switch (type) { in daio_device_index()
156 daio_device_index(dao->daio.type, dao->hw), dao->ctrl_blk); in dao_commit_write()
317 daio_device_index(dai->daio.type, dai->hw), dai->ctrl_blk); in dai_commit_write()
339 idx_l = idx_20k1[desc->type].left; in daio_rsc_init()
340 idx_r = idx_20k1[desc->type].right; in daio_rsc_init()
343 idx_l = idx_20k2[desc->type].left; in daio_rsc_init()
344 idx_r = idx_20k2[desc->type].right; in daio_rsc_init()
358 if (desc->type <= DAIO_OUT_MAX) { in daio_rsc_init()
[all …]
Dctresource.h37 u32 type:4; /* The type (RSCTYP) of a resource */ member
54 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw);
58 enum RSCTYP type; /* The type (RSCTYP) of resource to manage */ member
67 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
/sound/pci/ice1712/
Dwm8776.c149 .type = SNDRV_CTL_ELEM_TYPE_INTEGER,
160 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
169 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
175 .type = SNDRV_CTL_ELEM_TYPE_INTEGER,
187 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
194 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
203 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
209 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
215 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
221 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
[all …]
Dwm8766.c46 .type = SNDRV_CTL_ELEM_TYPE_INTEGER,
57 .type = SNDRV_CTL_ELEM_TYPE_INTEGER,
68 .type = SNDRV_CTL_ELEM_TYPE_INTEGER,
79 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
86 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
93 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
100 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
106 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
112 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
118 .type = SNDRV_CTL_ELEM_TYPE_BOOLEAN,
[all …]
/sound/pci/hda/
Dpatch_realtek.c422 static void alc_auto_init_amp(struct hda_codec *codec, int type) in alc_auto_init_amp() argument
426 switch (type) { in alc_auto_init_amp()
1067 .type = HDA_FIXUP_VERBS,
1071 .type = HDA_FIXUP_VERBS,
1075 .type = HDA_FIXUP_VERBS,
1085 .type = HDA_FIXUP_PINS,
1095 .type = HDA_FIXUP_PINS,
1103 .type = HDA_FIXUP_PINS,
1113 .type = HDA_FIXUP_VERBS,
1122 .type = HDA_FIXUP_VERBS,
[all …]
Dpatch_sigmatel.c1382 .type = HDA_FIXUP_PINS,
1386 .type = HDA_FIXUP_PINS,
1392 .type = HDA_FIXUP_PINS,
1396 .type = HDA_FIXUP_PINS,
1400 .type = HDA_FIXUP_PINS,
1404 .type = HDA_FIXUP_PINS,
1408 .type = HDA_FIXUP_PINS,
1412 .type = HDA_FIXUP_PINS,
1416 .type = HDA_FIXUP_PINS,
1420 .type = HDA_FIXUP_PINS,
[all …]
/sound/soc/intel/
Dsst-haswell-dsp.c53 __le32 type; /* IRAM/DRAM */ member
77 __le16 type; /* codec type, pp lib */ member
95 if (module->type != SST_HSW_MODULE_BASE_FW in hsw_parse_module()
96 && module->type != SST_HSW_MODULE_PCM_SYSTEM in hsw_parse_module()
97 && module->type != SST_HSW_MODULE_PCM in hsw_parse_module()
98 && module->type != SST_HSW_MODULE_PCM_REFERENCE in hsw_parse_module()
99 && module->type != SST_HSW_MODULE_PCM_CAPTURE in hsw_parse_module()
100 && module->type != SST_HSW_MODULE_LPAL) in hsw_parse_module()
105 module->blocks, module->type); in hsw_parse_module()
111 template.id = module->type; in hsw_parse_module()
[all …]
Dsst-baytrail-dsp.c43 enum sst_ram_type type; /* IRAM/DRAM */ member
61 u32 type; /* codec type, pp lib */ member
75 template.id = module->type; in sst_byt_parse_module()
77 template.p.type = SST_MEM_DRAM; in sst_byt_parse_module()
79 template.s.type = SST_MEM_DRAM; in sst_byt_parse_module()
95 switch (block->type) { in sst_byt_parse_module()
99 block_data.type = SST_MEM_IRAM; in sst_byt_parse_module()
104 block_data.type = SST_MEM_DRAM; in sst_byt_parse_module()
109 block_data.type = SST_MEM_CACHE; in sst_byt_parse_module()
113 block->type, count); in sst_byt_parse_module()
[all …]
Dsst-firmware.c205 static struct sst_mem_block *find_block(struct sst_dsp *dsp, int type, in find_block() argument
211 if (block->type == type && block->offset == offset) in find_block()
226 block = find_block(dsp, data->type, offset); in block_alloc_contiguous()
259 if (block->type != data->type) in block_alloc()
271 module->id, block->type, block->index); in block_alloc()
279 if (block->type != data->type) in block_alloc()
310 block->type, block->index); in block_module_remove()
335 block->type, block->index); in block_module_prepare()
360 if (data->type != SST_MEM_IRAM && data->type != SST_MEM_DRAM) in block_alloc_fixed()
473 u32 size, enum sst_mem_type type, struct sst_block_ops *ops, u32 index, in sst_mem_block_register() argument
[all …]
/sound/soc/codecs/
Dwm_adsp.c330 int type) in wm_adsp_find_region() argument
335 if (dsp->mem[i].type == type) in wm_adsp_find_region()
346 switch (region->type) { in wm_adsp_region_to_reg()
368 uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES; in wm_coeff_info()
384 mem = wm_adsp_find_region(adsp, region->type); in wm_coeff_write_control()
387 region->type); in wm_coeff_write_control()
440 mem = wm_adsp_find_region(adsp, region->type); in wm_coeff_read_control()
443 region->type); in wm_coeff_read_control()
539 int ret, offset, type, sizes; in wm_adsp_load() local
577 if (header->core != dsp->type) { in wm_adsp_load()
[all …]
/sound/pci/emu10k1/
Dvoice.c48 static int voice_alloc(struct snd_emu10k1 *emu, int type, int number, in voice_alloc() argument
96 switch (type) { in voice_alloc()
115 int snd_emu10k1_voice_alloc(struct snd_emu10k1 *emu, int type, int number, in snd_emu10k1_voice_alloc() argument
128 result = voice_alloc(emu, type, number, rvoice); in snd_emu10k1_voice_alloc()
129 if (result == 0 || type == EMU10K1_SYNTH || type == EMU10K1_MIDI) in snd_emu10k1_voice_alloc()
/sound/firewire/fireworks/
Dfireworks_hwdep.c26 unsigned int length, till_end, type; in hwdep_read_resp_buf() local
31 if (remained < sizeof(type) + sizeof(struct snd_efw_transaction)) in hwdep_read_resp_buf()
35 type = SNDRV_FIREWIRE_EVENT_EFW_RESPONSE; in hwdep_read_resp_buf()
36 if (copy_to_user(buf, &type, sizeof(type))) in hwdep_read_resp_buf()
38 remained -= sizeof(type); in hwdep_read_resp_buf()
39 buf += sizeof(type); in hwdep_read_resp_buf()
103 .lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS, in hwdep_read_locked()
212 info.type = SNDRV_FIREWIRE_TYPE_FIREWORKS; in hwdep_get_info()
/sound/pci/lola/
Dlola_clock.c171 unsigned char type = items[j] >> 8; in lola_init_clock_widget() local
175 if (type == LOLA_CLOCK_TYPE_INTERNAL) { in lola_init_clock_widget()
184 } else if (type == LOLA_CLOCK_TYPE_VIDEO) { in lola_init_clock_widget()
197 sc->type = type; in lola_init_clock_widget()
265 if (chip->clock.sample_clock[chip->clock.cur_index].type != in lola_update_ext_clock_freq()
282 } else if (chip->clock.sample_clock[idx].type == in lola_set_clock()
315 if (chip->clock.sample_clock[i].type == LOLA_CLOCK_TYPE_INTERNAL && in lola_set_sample_rate()
/sound/pci/
Dintel8x0.c1803 .type = AC97_TUNE_HP_ONLY
1809 .type = AC97_TUNE_HP_ONLY
1815 .type = AC97_TUNE_HP_ONLY
1821 .type = AC97_TUNE_MUTE_LED
1827 .type = AC97_TUNE_INV_EAPD
1833 .type = AC97_TUNE_ALC_JACK
1839 .type = AC97_TUNE_HP_ONLY
1845 .type = AC97_TUNE_HP_ONLY
1851 .type = AC97_TUNE_HP_ONLY
1857 .type = AC97_TUNE_HP_ONLY
[all …]

12345678910>>...14