/sound/core/ |
D | jack.c | 84 for (i = 0; i < ARRAY_SIZE(jack->key); i++) { in snd_jack_dev_register() 90 if (!jack->key[i]) in snd_jack_dev_register() 91 jack->key[i] = BTN_0 + i; in snd_jack_dev_register() 93 input_set_capability(jack->input_dev, EV_KEY, jack->key[i]); in snd_jack_dev_register() 211 int key = fls(SND_JACK_BTN_0) - fls(type); in snd_jack_set_key() local 215 if (!keytype || key >= ARRAY_SIZE(jack->key)) in snd_jack_set_key() 219 jack->key[key] = keytype; in snd_jack_set_key() 238 for (i = 0; i < ARRAY_SIZE(jack->key); i++) { in snd_jack_report() 242 input_report_key(jack->input_dev, jack->key[i], in snd_jack_report()
|
/sound/pci/hda/ |
D | hda_sysfs.c | 24 const char *key; member 283 "%s = %s\n", hint->key, hint->val); in hints_show() 289 static struct hda_hint *get_hint(struct hda_codec *codec, const char *key) in get_hint() argument 295 if (!strcmp(hint->key, key)) in get_hint() 318 char *key, *val; in parse_hints() local 327 key = kstrndup_noeol(buf, 1024); in parse_hints() 328 if (!key) in parse_hints() 331 val = strchr(key, '='); in parse_hints() 333 kfree(key); in parse_hints() 338 remove_trail_spaces(key); in parse_hints() [all …]
|
D | hda_codec.c | 1888 static struct hda_cache_head *get_hash(struct hda_cache_rec *cache, u32 key) in get_hash() argument 1890 u16 idx = key % (u16)ARRAY_SIZE(cache->hash); in get_hash() 1896 if (info->key == key) in get_hash() 1905 u32 key) in get_alloc_hash() argument 1907 struct hda_cache_head *info = get_hash(cache, key); in get_alloc_hash() 1915 info->key = key; in get_alloc_hash() 1918 idx = key % (u16)ARRAY_SIZE(cache->hash); in get_alloc_hash() 1927 get_alloc_amp_hash(struct hda_codec *codec, u32 key) in get_alloc_amp_hash() argument 1929 return (struct hda_amp_info *)get_alloc_hash(&codec->amp_cache, key); in get_alloc_amp_hash() 1933 static int write_caps_hash(struct hda_codec *codec, u32 key, unsigned int val) in write_caps_hash() argument [all …]
|
D | hda_local.h | 646 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key); 647 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key); 648 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp); 651 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) in snd_hda_get_hint() argument 657 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) in snd_hda_get_bool_hint() argument 663 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) in snd_hda_get_int_hint() argument
|
D | hda_controller.c | 177 int key = (substream->pcm->device << 16) | (substream->number << 2) | in azx_assign_device() local 191 if (azx_dev->assigned_key == key) { in azx_assign_device() 193 azx_dev->assigned_key = key; in azx_assign_device() 206 res->assigned_key = key; in azx_assign_device()
|
D | hda_codec.h | 207 u32 key:31; /* hash key */ member
|
D | patch_sigmatel.c | 557 static inline bool get_int_hint(struct hda_codec *codec, const char *key, in get_int_hint() argument 560 return !snd_hda_get_int_hint(codec, key, valp); in get_int_hint()
|
/sound/drivers/opl3/ |
D | opl3_synth.c | 206 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()
|
D | opl3_midi.c | 315 int key = note; in snd_opl3_note_on() local 580 vp->note = key; in snd_opl3_note_on() 588 vp2->note = key; in snd_opl3_note_on()
|
/sound/synth/emux/ |
D | soundfont.c | 67 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 …]
|
D | emux_synth.c | 63 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() 258 vp->chan == chan && vp->key == note) { in snd_emux_key_press() 390 vp->key == note) in terminate_note1()
|
/sound/oss/ |
D | sequencer.c | 417 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 …]
|
D | opl3.c | 304 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/ |
D | isight.c | 617 int key, value; in get_unit_base() local 620 while (fw_csr_iterator_next(&i, &key, &value)) in get_unit_base() 621 if (key == CSR_OFFSET) in get_unit_base()
|
D | dice.c | 1145 int key, value, vendor = -1, model = -1, err; in dice_interface_check() local 1158 while (fw_csr_iterator_next(&it, &key, &value)) { in dice_interface_check() 1159 switch (key) { in dice_interface_check()
|
/sound/pci/asihpi/ |
D | hpi.h | 1203 u16 hpi_adapter_enable_capability(u16 adapter_index, u16 capability, u32 key);
|