1275970Scy/* SPDX-License-Identifier: GPL-2.0-or-later */ 2275970Scy/* 3275970Scy * OSS compatible sequencer driver 4275970Scy * write priority queue 5275970Scy * 6275970Scy * Copyright (C) 1998,99 Takashi Iwai <tiwai@suse.de> 7275970Scy */ 8275970Scy 9275970Scy#ifndef __SEQ_OSS_WRITEQ_H 10275970Scy#define __SEQ_OSS_WRITEQ_H 11275970Scy 12275970Scy#include "seq_oss_device.h" 13275970Scy 14275970Scy 15275970Scystruct seq_oss_writeq { 16275970Scy struct seq_oss_devinfo *dp; 17275970Scy int maxlen; 18275970Scy abstime_t sync_time; 19275970Scy int sync_event_put; 20275970Scy wait_queue_head_t sync_sleep; 21275970Scy spinlock_t sync_lock; 22275970Scy}; 23275970Scy 24275970Scy 25275970Scy/* 26275970Scy * seq_oss_writeq.c 27275970Scy */ 28275970Scystruct seq_oss_writeq *snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen); 29275970Scyvoid snd_seq_oss_writeq_delete(struct seq_oss_writeq *q); 30275970Scyvoid snd_seq_oss_writeq_clear(struct seq_oss_writeq *q); 31275970Scyint snd_seq_oss_writeq_sync(struct seq_oss_writeq *q); 32275970Scyvoid snd_seq_oss_writeq_wakeup(struct seq_oss_writeq *q, abstime_t time); 33275970Scyint snd_seq_oss_writeq_get_free_size(struct seq_oss_writeq *q); 34275970Scyvoid snd_seq_oss_writeq_set_output(struct seq_oss_writeq *q, int size); 35275970Scy 36275970Scy 37275970Scy#endif 38275970Scy