Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * tascam.h - a part of driver for TASCAM FireWire series
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (c) 2015 Takashi Sakamoto
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #ifndef SOUND_TASCAM_H_INCLUDED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #define SOUND_TASCAM_H_INCLUDED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/firewire.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/firewire-constants.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/mod_devicetable.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/mutex.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/compat.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/sched/signal.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #include <sound/core.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include <sound/initval.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #include <sound/info.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #include <sound/pcm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #include <sound/pcm_params.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #include <sound/firewire.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) #include <sound/hwdep.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #include <sound/rawmidi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #include "../lib.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #include "../amdtp-stream.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #include "../iso-resources.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) struct snd_tscm_spec {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 	const char *const name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	bool has_adat;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	bool has_spdif;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	unsigned int pcm_capture_analog_channels;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 	unsigned int pcm_playback_analog_channels;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	unsigned int midi_capture_ports;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	unsigned int midi_playback_ports;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) #define TSCM_MIDI_IN_PORT_MAX	4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #define TSCM_MIDI_OUT_PORT_MAX	4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) struct snd_fw_async_midi_port {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	struct fw_device *parent;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	struct work_struct work;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	bool idling;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	ktime_t next_ktime;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	bool error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	struct fw_transaction transaction;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	u8 buf[4];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	u8 running_status;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	bool on_sysex;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	struct snd_rawmidi_substream *substream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	int consume_bytes;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) #define SND_TSCM_QUEUE_COUNT	16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) struct snd_tscm {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	struct snd_card *card;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	struct fw_unit *unit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	struct mutex mutex;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	spinlock_t lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	bool registered;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	struct delayed_work dwork;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	const struct snd_tscm_spec *spec;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	struct fw_iso_resources tx_resources;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	struct fw_iso_resources rx_resources;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	struct amdtp_stream tx_stream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	struct amdtp_stream rx_stream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	unsigned int substreams_counter;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	int dev_lock_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	bool dev_lock_changed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	wait_queue_head_t hwdep_wait;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	/* For MIDI message incoming transactions. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	struct fw_address_handler async_handler;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	struct snd_rawmidi_substream *tx_midi_substreams[TSCM_MIDI_IN_PORT_MAX];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	/* For MIDI message outgoing transactions. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	struct snd_fw_async_midi_port out_ports[TSCM_MIDI_OUT_PORT_MAX];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	// A cache of status information in tx isoc packets.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	__be32 state[SNDRV_FIREWIRE_TASCAM_STATE_COUNT];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	struct snd_hwdep *hwdep;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	struct snd_firewire_tascam_change queue[SND_TSCM_QUEUE_COUNT];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	unsigned int pull_pos;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	unsigned int push_pos;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	struct amdtp_domain domain;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #define TSCM_ADDR_BASE			0xffff00000000ull
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) #define TSCM_OFFSET_FIRMWARE_REGISTER	0x0000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define TSCM_OFFSET_FIRMWARE_FPGA	0x0004
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define TSCM_OFFSET_FIRMWARE_ARM	0x0008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define TSCM_OFFSET_FIRMWARE_HW		0x000c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define TSCM_OFFSET_ISOC_TX_CH		0x0200
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define TSCM_OFFSET_UNKNOWN		0x0204
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define TSCM_OFFSET_START_STREAMING	0x0208
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #define TSCM_OFFSET_ISOC_RX_CH		0x020c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define TSCM_OFFSET_ISOC_RX_ON		0x0210	/* Little conviction. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) #define TSCM_OFFSET_TX_PCM_CHANNELS	0x0214
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) #define TSCM_OFFSET_RX_PCM_CHANNELS	0x0218
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) #define TSCM_OFFSET_MULTIPLEX_MODE	0x021c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define TSCM_OFFSET_ISOC_TX_ON		0x0220
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) /* Unknown				0x0224 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define TSCM_OFFSET_CLOCK_STATUS	0x0228
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define TSCM_OFFSET_SET_OPTION		0x022c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) #define TSCM_OFFSET_MIDI_TX_ON		0x0300
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #define TSCM_OFFSET_MIDI_TX_ADDR_HI	0x0304
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) #define TSCM_OFFSET_MIDI_TX_ADDR_LO	0x0308
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #define TSCM_OFFSET_LED_POWER		0x0404
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define TSCM_OFFSET_MIDI_RX_QUAD	0x4000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) // Although FE-8 supports the above registers, it has no I/O interfaces for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) // audio samples and music messages. Otherwise it supports another notification
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) // for status and control message as well as LED brightening. The message
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) // consists of quadlet-aligned data up to 32 quadlets. The first byte of message
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) // is fixed to 0x40. The second byte is between 0x00 to 0x1f and represent each
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) // control:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) //   fader:	0x00-0x07
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) //   button:	0x0d, 0x0e
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) //   knob:	0x14-0x1b
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) //   sensing:	0x0b
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) // The rest two bytes represent state of the controls; e.g. current value for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) // fader and knob, bitmasks for button and sensing.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) // Just after turning on, 32 quadlets messages with 0x00-0x1f are immediately
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) // sent in one transaction. After, several quadlets are sent in one transaction.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) // TSCM_OFFSET_FE8_CTL_TX_ON		0x0310
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) // TSCM_OFFSET_FE8_CTL_TX_ADDR_HI	0x0314
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) // TSCM_OFFSET_FE8_CTL_TX_ADDR_LO	0x0318
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) enum snd_tscm_clock {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	SND_TSCM_CLOCK_INTERNAL = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	SND_TSCM_CLOCK_WORD	= 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	SND_TSCM_CLOCK_SPDIF	= 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	SND_TSCM_CLOCK_ADAT	= 3,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) int amdtp_tscm_init(struct amdtp_stream *s, struct fw_unit *unit,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 		  enum amdtp_stream_direction dir, unsigned int pcm_channels);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) int amdtp_tscm_set_parameters(struct amdtp_stream *s, unsigned int rate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) int amdtp_tscm_add_pcm_hw_constraints(struct amdtp_stream *s,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 				      struct snd_pcm_runtime *runtime);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) int snd_tscm_stream_get_clock(struct snd_tscm *tscm,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 			      enum snd_tscm_clock *clock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) int snd_tscm_stream_init_duplex(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) void snd_tscm_stream_update_duplex(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) void snd_tscm_stream_destroy_duplex(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) int snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 				   unsigned int frames_per_period,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 				   unsigned int frames_per_buffer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) int snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) void snd_tscm_stream_stop_duplex(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) void snd_tscm_stream_lock_changed(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) int snd_tscm_stream_lock_try(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) void snd_tscm_stream_lock_release(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) void snd_fw_async_midi_port_init(struct snd_fw_async_midi_port *port);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) static inline void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) snd_fw_async_midi_port_run(struct snd_fw_async_midi_port *port,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 			   struct snd_rawmidi_substream *substream)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	if (!port->error) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		port->substream = substream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 		schedule_work(&port->work);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) static inline void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) snd_fw_async_midi_port_finish(struct snd_fw_async_midi_port *port)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	port->substream = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	cancel_work_sync(&port->work);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	port->error = false;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) int snd_tscm_transaction_register(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) int snd_tscm_transaction_reregister(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) void snd_tscm_transaction_unregister(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) void snd_tscm_proc_init(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) int snd_tscm_create_pcm_devices(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) int snd_tscm_create_midi_devices(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) int snd_tscm_create_hwdep_device(struct snd_tscm *tscm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #endif