Searched refs:msynth (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/sound/core/seq/ |
H A D | seq_midi.c | 78 struct seq_midisynth *msynth; snd_midi_input_event() local 86 msynth = runtime->private_data; snd_midi_input_event() 87 if (msynth == NULL) snd_midi_input_event() 94 if (msynth->parser == NULL) snd_midi_input_event() 98 count = snd_midi_event_encode(msynth->parser, pbuf, res, &ev); snd_midi_input_event() 104 ev.source.port = msynth->seq_port; snd_midi_input_event() 106 snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); snd_midi_input_event() 135 struct seq_midisynth *msynth = private_data; event_process_midi() local 140 if (snd_BUG_ON(!msynth)) event_process_midi() 142 substream = msynth->output_rfile.output; event_process_midi() 152 snd_midi_event_reset_decode(msynth->parser); event_process_midi() 154 if (msynth->parser == NULL) event_process_midi() 156 len = snd_midi_event_decode(msynth->parser, msg, sizeof(msg), ev); event_process_midi() 160 snd_midi_event_reset_decode(msynth->parser); event_process_midi() 166 static int snd_seq_midisynth_new(struct seq_midisynth *msynth, snd_seq_midisynth_new() argument 171 if (snd_midi_event_new(MAX_MIDI_EVENT_BUF, &msynth->parser) < 0) snd_seq_midisynth_new() 173 msynth->card = card; snd_seq_midisynth_new() 174 msynth->device = device; snd_seq_midisynth_new() 175 msynth->subdevice = subdevice; snd_seq_midisynth_new() 183 struct seq_midisynth *msynth = private_data; midisynth_subscribe() local 188 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, midisynth_subscribe() 189 msynth->subdevice, midisynth_subscribe() 191 &msynth->input_rfile)) < 0) { midisynth_subscribe() 195 runtime = msynth->input_rfile.input->runtime; midisynth_subscribe() 199 if ((err = snd_rawmidi_input_params(msynth->input_rfile.input, ¶ms)) < 0) { midisynth_subscribe() 200 snd_rawmidi_kernel_release(&msynth->input_rfile); midisynth_subscribe() 203 snd_midi_event_reset_encode(msynth->parser); midisynth_subscribe() 205 runtime->private_data = msynth; midisynth_subscribe() 206 snd_rawmidi_kernel_read(msynth->input_rfile.input, NULL, 0); midisynth_subscribe() 214 struct seq_midisynth *msynth = private_data; midisynth_unsubscribe() local 216 if (snd_BUG_ON(!msynth->input_rfile.input)) midisynth_unsubscribe() 218 err = snd_rawmidi_kernel_release(&msynth->input_rfile); midisynth_unsubscribe() 226 struct seq_midisynth *msynth = private_data; midisynth_use() local 230 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, midisynth_use() 231 msynth->subdevice, midisynth_use() 233 &msynth->output_rfile)) < 0) { midisynth_use() 241 if ((err = snd_rawmidi_output_params(msynth->output_rfile.output, ¶ms)) < 0) { midisynth_use() 242 snd_rawmidi_kernel_release(&msynth->output_rfile); midisynth_use() 245 snd_midi_event_reset_decode(msynth->parser); midisynth_use() 252 struct seq_midisynth *msynth = private_data; midisynth_unuse() local 254 if (snd_BUG_ON(!msynth->output_rfile.output)) midisynth_unuse() 256 snd_rawmidi_drain_output(msynth->output_rfile.output); midisynth_unuse() 257 return snd_rawmidi_kernel_release(&msynth->output_rfile); midisynth_unuse() 261 static void snd_seq_midisynth_delete(struct seq_midisynth *msynth) snd_seq_midisynth_delete() argument 263 if (msynth == NULL) snd_seq_midisynth_delete() 266 if (msynth->seq_client > 0) { snd_seq_midisynth_delete() 268 snd_seq_event_port_detach(msynth->seq_client, msynth->seq_port); snd_seq_midisynth_delete() 271 snd_midi_event_free(msynth->parser); snd_seq_midisynth_delete() 280 struct seq_midisynth *msynth, *ms; snd_seq_midisynth_probe() local 337 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); snd_seq_midisynth_probe() 339 if (msynth == NULL || port == NULL) snd_seq_midisynth_probe() 343 ms = &msynth[p]; snd_seq_midisynth_probe() 404 client->ports[device] = msynth; snd_seq_midisynth_probe() 414 if (msynth != NULL) { snd_seq_midisynth_probe() 416 snd_seq_midisynth_delete(&msynth[p]); snd_seq_midisynth_probe() 417 kfree(msynth); snd_seq_midisynth_probe() 435 struct seq_midisynth *msynth; snd_seq_midisynth_remove() local 447 msynth = client->ports[device]; snd_seq_midisynth_remove() 450 snd_seq_midisynth_delete(&msynth[p]); snd_seq_midisynth_remove() 451 kfree(msynth); snd_seq_midisynth_remove()
|
/linux-4.4.14/drivers/clk/ |
H A D | clk-si5351.c | 67 struct si5351_hw_data *msynth; member in struct:si5351_driver_data 1516 drvdata->msynth = devm_kzalloc(&client->dev, num_clocks * si5351_i2c_probe() 1517 sizeof(*drvdata->msynth), GFP_KERNEL); si5351_i2c_probe() 1525 if (WARN_ON(!drvdata->msynth || !drvdata->clkout || si5351_i2c_probe() 1532 drvdata->msynth[n].num = n; si5351_i2c_probe() 1533 drvdata->msynth[n].drvdata = drvdata; si5351_i2c_probe() 1534 drvdata->msynth[n].hw.init = &init; si5351_i2c_probe() 1543 clk = devm_clk_register(&client->dev, &drvdata->msynth[n].hw); si5351_i2c_probe()
|
Completed in 105 milliseconds