• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/core/seq/

Lines Matching defs:cell

403 	struct snd_seq_event_cell *cell;
425 cell = NULL;
434 if ((err = snd_seq_fifo_cell_out(fifo, &cell, nonblock)) < 0) {
437 if (snd_seq_ev_is_variable(&cell->event)) {
439 tmpev = cell->event;
447 err = snd_seq_expand_var_event(&cell->event, count,
456 if (copy_to_user(buf, &cell->event, sizeof(struct snd_seq_event))) {
463 snd_seq_cell_free(cell);
464 cell = NULL; /* to be sure */
469 if (cell)
470 snd_seq_fifo_cell_putback(fifo, cell);
821 * dispatch an event cell:
824 * The event cell shall be released or re-queued in this function.
830 int snd_seq_dispatch_event(struct snd_seq_event_cell *cell, int atomic, int hop)
835 if (snd_BUG_ON(!cell))
838 client = snd_seq_client_use_ptr(cell->event.source.client);
840 snd_seq_cell_free(cell); /* release this cell */
844 if (cell->event.type == SNDRV_SEQ_EVENT_NOTE) {
846 * the event cell is re-used as a NOTE-OFF event and
852 tmpev = cell->event;
858 * cell for the note-off event.
861 ev = &cell->event;
880 /* Now queue this cell as the note off event */
881 if (snd_seq_enqueue_event(cell, atomic, hop) < 0)
882 snd_seq_cell_free(cell); /* release this cell */
886 * event cell is freed after processing the event
889 result = snd_seq_deliver_event(client, &cell->event, atomic, hop);
890 snd_seq_cell_free(cell);
898 /* Allocate a cell from client pool and enqueue it to queue:
899 * if pool is empty and blocking is TRUE, sleep until a new cell is
907 struct snd_seq_event_cell *cell;
942 /* allocate an event cell */
943 err = snd_seq_event_dup(client->pool, event, &cell, !blocking || atomic, file);
947 /* we got a cell. enqueue it. */
948 if ((err = snd_seq_enqueue_event(cell, atomic, hop)) < 0) {
949 snd_seq_cell_free(cell);