• Home
  • Raw
  • Download

Lines Matching refs:dice

11 	struct snd_dice *dice = substream->rmidi->private_data;  in midi_open()  local
14 err = snd_dice_stream_lock_try(dice); in midi_open()
18 mutex_lock(&dice->mutex); in midi_open()
20 err = snd_dice_stream_reserve_duplex(dice, 0, 0, 0); in midi_open()
22 ++dice->substreams_counter; in midi_open()
23 err = snd_dice_stream_start_duplex(dice); in midi_open()
25 --dice->substreams_counter; in midi_open()
28 mutex_unlock(&dice->mutex); in midi_open()
31 snd_dice_stream_lock_release(dice); in midi_open()
38 struct snd_dice *dice = substream->rmidi->private_data; in midi_close() local
40 mutex_lock(&dice->mutex); in midi_close()
42 --dice->substreams_counter; in midi_close()
43 snd_dice_stream_stop_duplex(dice); in midi_close()
45 mutex_unlock(&dice->mutex); in midi_close()
47 snd_dice_stream_lock_release(dice); in midi_close()
53 struct snd_dice *dice = substrm->rmidi->private_data; in midi_capture_trigger() local
56 spin_lock_irqsave(&dice->lock, flags); in midi_capture_trigger()
59 amdtp_am824_midi_trigger(&dice->tx_stream[0], in midi_capture_trigger()
62 amdtp_am824_midi_trigger(&dice->tx_stream[0], in midi_capture_trigger()
65 spin_unlock_irqrestore(&dice->lock, flags); in midi_capture_trigger()
70 struct snd_dice *dice = substrm->rmidi->private_data; in midi_playback_trigger() local
73 spin_lock_irqsave(&dice->lock, flags); in midi_playback_trigger()
76 amdtp_am824_midi_trigger(&dice->rx_stream[0], in midi_playback_trigger()
79 amdtp_am824_midi_trigger(&dice->rx_stream[0], in midi_playback_trigger()
82 spin_unlock_irqrestore(&dice->lock, flags); in midi_playback_trigger()
85 static void set_midi_substream_names(struct snd_dice *dice, in set_midi_substream_names() argument
92 "%s MIDI %d", dice->card->shortname, subs->number + 1); in set_midi_substream_names()
96 int snd_dice_create_midi(struct snd_dice *dice) in snd_dice_create_midi() argument
117 midi_in_ports = max(midi_in_ports, dice->tx_midi_ports[i]); in snd_dice_create_midi()
118 midi_out_ports = max(midi_out_ports, dice->rx_midi_ports[i]); in snd_dice_create_midi()
125 err = snd_rawmidi_new(dice->card, dice->card->driver, 0, in snd_dice_create_midi()
132 "%s MIDI", dice->card->shortname); in snd_dice_create_midi()
133 rmidi->private_data = dice; in snd_dice_create_midi()
143 set_midi_substream_names(dice, str); in snd_dice_create_midi()
154 set_midi_substream_names(dice, str); in snd_dice_create_midi()