Home
last modified time | relevance | path

Searched refs:key (Results 1 – 15 of 15) sorted by relevance

/sound/pci/hda/
Dhda_sysfs.c24 const char *key; member
275 "%s = %s\n", hint->key, hint->val); in hints_show()
281 static struct hda_hint *get_hint(struct hda_codec *codec, const char *key) in get_hint() argument
287 if (!strcmp(hint->key, key)) in get_hint()
310 char *key, *val; in parse_hints() local
319 key = kstrndup_noeol(buf, 1024); in parse_hints()
320 if (!key) in parse_hints()
323 val = strchr(key, '='); in parse_hints()
325 kfree(key); in parse_hints()
330 remove_trail_spaces(key); in parse_hints()
[all …]
Dhda_local.h635 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key);
636 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key);
637 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp);
640 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) in snd_hda_get_hint() argument
646 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) in snd_hda_get_bool_hint() argument
652 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) in snd_hda_get_int_hint() argument
Dpatch_sigmatel.c559 static inline bool get_int_hint(struct hda_codec *codec, const char *key, in get_int_hint() argument
562 return !snd_hda_get_int_hint(codec, key, valp); in get_int_hint()
/sound/core/
Djack.c106 for (i = 0; i < ARRAY_SIZE(jack->key); i++) { in snd_jack_dev_register()
112 if (!jack->key[i]) in snd_jack_dev_register()
113 jack->key[i] = BTN_0 + i; in snd_jack_dev_register()
115 input_set_capability(jack->input_dev, EV_KEY, jack->key[i]); in snd_jack_dev_register()
334 int key = fls(SND_JACK_BTN_0) - fls(type); in snd_jack_set_key() local
338 if (!keytype || key >= ARRAY_SIZE(jack->key)) in snd_jack_set_key()
342 jack->key[key] = keytype; in snd_jack_set_key()
372 for (i = 0; i < ARRAY_SIZE(jack->key); i++) { in snd_jack_report()
376 input_report_key(jack->input_dev, jack->key[i], in snd_jack_report()
/sound/drivers/opl3/
Dopl3_synth.c206 if (!memcmp(inst.key, FM_KEY_SBI, 4) || in snd_opl3_write()
207 !memcmp(inst.key, FM_KEY_2OP, 4)) in snd_opl3_write()
209 else if (!memcmp(inst.key, FM_KEY_4OP, 4)) in snd_opl3_write()
318 unsigned int key = (prog + bank) % OPL3_PATCH_HASH_SIZE; in snd_opl3_find_patch() local
321 for (patch = opl3->patch_table[key]; patch; patch = patch->next) { in snd_opl3_find_patch()
333 patch->next = opl3->patch_table[key]; in snd_opl3_find_patch()
334 opl3->patch_table[key] = patch; in snd_opl3_find_patch()
Dopl3_midi.c314 int key = note; in snd_opl3_note_on() local
579 vp->note = key; in snd_opl3_note_on()
587 vp2->note = key; in snd_opl3_note_on()
/sound/synth/emux/
Dsoundfont.c67 int bank, int preset, int key);
71 static int get_index(int bank, int instr, int key);
146 if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { in snd_soundfont_load()
147 snd_printk(KERN_ERR "The wrong kind of patch %x\n", patch.key); in snd_soundfont_load()
1266 search_first_zone(struct snd_sf_list *sflist, int bank, int preset, int key) in search_first_zone() argument
1271 if ((index = get_index(bank, preset, key)) < 0) in search_first_zone()
1299 int key = zp->v.fixkey; in search_zones() local
1305 if (key < 0) in search_zones()
1306 key = *notep; in search_zones()
1307 nvoices = search_zones(sflist, &key, vel, in search_zones()
[all …]
Demux_synth.c63 int i, key, nvoices; in snd_emux_note_on() local
77 key = note; /* remember the original note */ in snd_emux_note_on()
91 terminate_note1(emu, key, chan, 0); in snd_emux_note_on()
112 vp->key = key; in snd_emux_note_on()
179 vp->chan == chan && vp->key == note) { in snd_emux_note_off()
256 vp->chan == chan && vp->key == note) { in snd_emux_key_press()
388 vp->key == note) in terminate_note1()
/sound/oss/
Dsequencer.c417 unsigned short key; in find_voice() local
420 key = (chn << 8) | (note + 1); in find_voice()
422 if (synth_devs[dev]->alloc.map[i] == key) in find_voice()
429 unsigned short key; in alloc_voice() local
432 key = (chn << 8) | (note + 1); in alloc_voice()
436 synth_devs[dev]->alloc.map[voice] = key; in alloc_voice()
572 int i, key; in seq_chn_common_event() local
584 key = ((int) chn << 8); in seq_chn_common_event()
587 if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) in seq_chn_common_event()
608 int i, key; in seq_chn_common_event() local
[all …]
Dopl3.c304 if (instr->key != FM_PATCH && (instr->key != OPL3_PATCH || devc->model != 2)) in store_instr()
305 printk(KERN_WARNING "FM warning: Invalid patch format field (key) 0x%x\n", instr->key); in store_instr()
517 if (map->voice_mode == 2 && instr->key == OPL3_PATCH) in opl3_start_note()
531 if (instr->key != OPL3_PATCH) /* in opl3_start_note()
840 ins.key = format; in opl3_load_patch()
1015 is4op = (instr->key == OPL3_PATCH); in opl3_alloc_voice()
/sound/firewire/oxfw/
Doxfw.c155 int key, val; in detect_quirks() local
195 while (fw_csr_iterator_next(&it, &key, &val)) { in detect_quirks()
196 if (key == CSR_VENDOR) in detect_quirks()
198 else if (key == CSR_MODEL) in detect_quirks()
/sound/firewire/dice/
Ddice.c57 int key, val, vendor = -1, model = -1; in check_dice_category() local
67 while (fw_csr_iterator_next(&it, &key, &val)) { in check_dice_category()
68 switch (key) { in check_dice_category()
/sound/hda/
Dhdac_stream.c244 int key = (substream->pcm->device << 16) | (substream->number << 2) | in snd_hdac_stream_assign() local
252 if (azx_dev->assigned_key == key) { in snd_hdac_stream_assign()
263 res->assigned_key = key; in snd_hdac_stream_assign()
/sound/firewire/
Disight.c611 int key, value; in get_unit_base() local
614 while (fw_csr_iterator_next(&i, &key, &value)) in get_unit_base()
615 if (key == CSR_OFFSET) in get_unit_base()
/sound/pci/asihpi/
Dhpi.h1211 u16 hpi_adapter_enable_capability(u16 adapter_index, u16 capability, u32 key);