Home
last modified time | relevance | path

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

/sound/pci/hda/
Dhda_sysfs.c25 const char *key; member
276 "%s = %s\n", hint->key, hint->val); in hints_show()
282 static struct hda_hint *get_hint(struct hda_codec *codec, const char *key) in get_hint() argument
288 if (!strcmp(hint->key, key)) in get_hint()
311 char *key, *val; in parse_hints() local
320 key = kstrndup_noeol(buf, 1024); in parse_hints()
321 if (!key) in parse_hints()
324 val = strchr(key, '='); in parse_hints()
326 kfree(key); in parse_hints()
331 remove_trail_spaces(key); in parse_hints()
[all …]
Dhda_local.h565 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key);
566 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key);
567 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp);
570 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) in snd_hda_get_hint() argument
576 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) in snd_hda_get_bool_hint() argument
582 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) in snd_hda_get_int_hint() argument
Dhda_jack.h50 int key; member
Dhda_jack.c502 snd_jack_set_key(jack->jack, map->type, map->key); in snd_hda_jack_add_kctl_mst()
Dpatch_sigmatel.c537 static inline bool get_int_hint(struct hda_codec *codec, const char *key, in get_int_hint() argument
540 return !snd_hda_get_int_hint(codec, key, valp); in get_int_hint()
/sound/core/
Djack.c95 for (i = 0; i < ARRAY_SIZE(jack->key); i++) { in snd_jack_dev_register()
101 if (!jack->key[i]) in snd_jack_dev_register()
102 jack->key[i] = BTN_0 + i; in snd_jack_dev_register()
104 input_set_capability(jack->input_dev, EV_KEY, jack->key[i]); in snd_jack_dev_register()
327 int key = fls(SND_JACK_BTN_0) - fls(type); in snd_jack_set_key() local
331 if (!keytype || key >= ARRAY_SIZE(jack->key)) in snd_jack_set_key()
335 jack->key[key] = keytype; in snd_jack_set_key()
367 for (i = 0; i < ARRAY_SIZE(jack->key); i++) { in snd_jack_report()
371 input_report_key(idev, jack->key[i], in snd_jack_report()
/sound/firewire/dice/
Ddice-presonus.c31 int key, val, model_id; in snd_dice_detect_presonus_formats() local
36 while (fw_csr_iterator_next(&it, &key, &val)) { in snd_dice_detect_presonus_formats()
37 if (key == CSR_MODEL) { in snd_dice_detect_presonus_formats()
Ddice-tcelectronic.c73 int key, val, model_id; in snd_dice_detect_tcelectronic_formats() local
78 while (fw_csr_iterator_next(&it, &key, &val)) { in snd_dice_detect_tcelectronic_formats()
79 if (key == CSR_MODEL) { in snd_dice_detect_tcelectronic_formats()
Ddice.c34 int key, val, vendor = -1, model = -1; in check_dice_category() local
44 while (fw_csr_iterator_next(&it, &key, &val)) { in check_dice_category()
45 switch (key) { in check_dice_category()
/sound/drivers/opl3/
Dopl3_synth.c196 if (!memcmp(inst.key, FM_KEY_SBI, 4) || in snd_opl3_write()
197 !memcmp(inst.key, FM_KEY_2OP, 4)) in snd_opl3_write()
199 else if (!memcmp(inst.key, FM_KEY_4OP, 4)) in snd_opl3_write()
308 unsigned int key = (prog + bank) % OPL3_PATCH_HASH_SIZE; in snd_opl3_find_patch() local
311 for (patch = opl3->patch_table[key]; patch; patch = patch->next) { in snd_opl3_find_patch()
323 patch->next = opl3->patch_table[key]; in snd_opl3_find_patch()
324 opl3->patch_table[key] = patch; in snd_opl3_find_patch()
Dopl3_midi.c296 int key = note; in snd_opl3_note_on() local
562 vp->note = key; in snd_opl3_note_on()
570 vp2->note = key; in snd_opl3_note_on()
/sound/synth/emux/
Dsoundfont.c54 int bank, int preset, int key);
58 static int get_index(int bank, int instr, int key);
133 if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { in snd_soundfont_load()
134 snd_printk(KERN_ERR "The wrong kind of patch %x\n", patch.key); in snd_soundfont_load()
1255 search_first_zone(struct snd_sf_list *sflist, int bank, int preset, int key) in search_first_zone() argument
1260 if ((index = get_index(bank, preset, key)) < 0) in search_first_zone()
1288 int key = zp->v.fixkey; in search_zones() local
1294 if (key < 0) in search_zones()
1295 key = *notep; in search_zones()
1296 nvoices = search_zones(sflist, &key, vel, in search_zones()
[all …]
Demux_synth.c49 int i, key, nvoices; in snd_emux_note_on() local
63 key = note; /* remember the original note */ in snd_emux_note_on()
77 terminate_note1(emu, key, chan, 0); in snd_emux_note_on()
98 vp->key = key; in snd_emux_note_on()
165 vp->chan == chan && vp->key == note) { in snd_emux_note_off()
242 vp->chan == chan && vp->key == note) { in snd_emux_key_press()
374 vp->key == note) in terminate_note1()
Demux_hwdep.c28 if (patch.key == GUS_PATCH) in snd_emux_hwdep_load_patch()
/sound/firewire/motu/
Dmotu.c32 int key, val; in name_card() local
36 while (fw_csr_iterator_next(&it, &key, &val)) { in name_card()
37 switch (key) { in name_card()
/sound/firewire/oxfw/
Doxfw.c129 int key, val; in detect_quirks() local
166 while (fw_csr_iterator_next(&it, &key, &val)) { in detect_quirks()
167 if (key == CSR_VENDOR) in detect_quirks()
169 else if (key == CSR_MODEL) in detect_quirks()
/sound/hda/
Dhdac_stream.c323 int key = (substream->number << 2) | (substream->stream + 1); in snd_hdac_stream_assign() local
326 key |= (substream->pcm->device << 16); in snd_hdac_stream_assign()
334 if (azx_dev->assigned_key == key) { in snd_hdac_stream_assign()
344 res->assigned_key = key; in snd_hdac_stream_assign()
/sound/firewire/
Disight.c603 int key, value; in get_unit_base() local
606 while (fw_csr_iterator_next(&i, &key, &value)) in get_unit_base()
607 if (key == CSR_OFFSET) in get_unit_base()
/sound/pci/asihpi/
Dhpi.h1200 u16 hpi_adapter_enable_capability(u16 adapter_index, u16 capability, u32 key);
/sound/soc/qcom/qdsp6/
Dq6asm-dai.c963 switch (metadata->key) { in q6asm_dai_compr_set_metadata()