Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 13 of 13) sorted by relevance

/sound/drivers/opl3/
Dopl3_synth.c257 struct fm_patch *patch; in snd_opl3_load_patch() local
260 patch = snd_opl3_find_patch(opl3, prog, bank, 1); in snd_opl3_load_patch()
261 if (!patch) in snd_opl3_load_patch()
264 patch->type = type; in snd_opl3_load_patch()
267 patch->inst.op[i].am_vib = data[AM_VIB + i]; in snd_opl3_load_patch()
268 patch->inst.op[i].ksl_level = data[KSL_LEVEL + i]; in snd_opl3_load_patch()
269 patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i]; in snd_opl3_load_patch()
270 patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i]; in snd_opl3_load_patch()
271 patch->inst.op[i].wave_select = data[WAVE_SELECT + i]; in snd_opl3_load_patch()
273 patch->inst.feedback_connection[0] = data[CONNECTION]; in snd_opl3_load_patch()
[all …]
Dopl3_midi.c318 struct fm_patch *patch; in snd_opl3_note_on() local
359 patch = snd_opl3_find_patch(opl3, prg, bank, 0); in snd_opl3_note_on()
360 if (!patch) { in snd_opl3_note_on()
365 fm = &patch->inst; in snd_opl3_note_on()
366 switch (patch->type) { in snd_opl3_note_on()
381 instr_4op ? 3 : 2, patch->name); in snd_opl3_note_on()
/sound/synth/emux/
Dsoundfont.c132 struct soundfont_patch_info patch; in snd_soundfont_load() local
136 if (count < (long)sizeof(patch)) { in snd_soundfont_load()
140 if (copy_from_user(&patch, data, sizeof(patch))) in snd_soundfont_load()
143 count -= sizeof(patch); in snd_soundfont_load()
144 data += sizeof(patch); in snd_soundfont_load()
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()
150 if (count < patch.len) { in snd_soundfont_load()
152 count, patch.len); in snd_soundfont_load()
155 if (patch.len < 0) { in snd_soundfont_load()
[all …]
Demux_hwdep.c37 struct soundfont_patch_info patch; in snd_emux_hwdep_load_patch() local
39 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch()
42 if (patch.type >= SNDRV_SFNT_LOAD_INFO && in snd_emux_hwdep_load_patch()
43 patch.type <= SNDRV_SFNT_PROBE_DATA) { in snd_emux_hwdep_load_patch()
44 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch()
49 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
Demux_oss.c226 struct soundfont_patch_info patch; in snd_emux_load_patch_seq_oss() local
227 if (count < (int)sizeof(patch)) in snd_emux_load_patch_seq_oss()
229 if (copy_from_user(&patch, buf, sizeof(patch))) in snd_emux_load_patch_seq_oss()
231 if (patch.type >= SNDRV_SFNT_LOAD_INFO && in snd_emux_load_patch_seq_oss()
232 patch.type <= SNDRV_SFNT_PROBE_DATA) in snd_emux_load_patch_seq_oss()
236 rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count); in snd_emux_load_patch_seq_oss()
/sound/pci/hda/
Dhda_bind.c81 hda_codec_patch_t patch; in hda_codec_driver_probe() local
99 patch = (hda_codec_patch_t)codec->preset->driver_data; in hda_codec_driver_probe()
100 if (patch) { in hda_codec_driver_probe()
101 err = patch(codec); in hda_codec_driver_probe()
DKconfig57 enables the feature just for the patch loader below.
79 bool "Support initialization patch loading for HD-audio"
84 firmware file ("patch") for overriding the BIOS setup at
85 start up. The "patch" file can be specified via patch module
86 option, such as patch=hda-init.
Dhda_intel.c134 static char *patch[SNDRV_CARDS]; variable
166 module_param_array(patch, charp, NULL, 0444);
167 MODULE_PARM_DESC(patch, "Patch file for Intel HD audio interface.");
2022 if (patch[dev] && *patch[dev]) { in azx_probe()
2024 patch[dev]); in azx_probe()
2025 err = request_firmware_nowait(THIS_MODULE, true, patch[dev], in azx_probe()
/sound/soc/codecs/
Dwm8997.c90 const struct reg_default *patch = NULL; in wm8997_sysclk_ev() local
95 patch = wm8997_sysclk_reva_patch; in wm8997_sysclk_ev()
104 if (patch) in wm8997_sysclk_ev()
106 regmap_write_async(regmap, patch[i].reg, in wm8997_sysclk_ev()
107 patch[i].def); in wm8997_sysclk_ev()
Dwm5102.c587 const struct reg_default *patch = NULL; in wm5102_sysclk_ev() local
592 patch = wm5102_sysclk_reva_patch; in wm5102_sysclk_ev()
596 patch = wm5102_sysclk_revb_patch; in wm5102_sysclk_ev()
603 if (patch) in wm5102_sysclk_ev()
605 regmap_write_async(regmap, patch[i].reg, in wm5102_sysclk_ev()
606 patch[i].def); in wm5102_sysclk_ev()
Dwm5110.c165 const struct reg_default *patch = NULL; in wm5110_sysclk_ev() local
170 patch = wm5110_sysclk_revd_patch; in wm5110_sysclk_ev()
174 patch = wm5110_sysclk_reve_patch; in wm5110_sysclk_ev()
181 if (patch) in wm5110_sysclk_ev()
183 regmap_write_async(regmap, patch[i].reg, in wm5110_sysclk_ev()
184 patch[i].def); in wm5110_sysclk_ev()
/sound/pci/ac97/
Dac97_codec.c64 int (*patch)(struct snd_ac97 *ac97); member
1816 if (ac97 && pid->patch) { in snd_ac97_get_name()
1819 pid->patch(ac97); in snd_ac97_get_name()
1828 if (ac97 && pid->patch) { in snd_ac97_get_name()
1831 pid->patch(ac97); in snd_ac97_get_name()
/sound/oss/
DCHANGELOG216 - Sample/patch/program loading for TB Maui/Tropez. No initialization