aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/firewire/digi00x/digi00x.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-09-30 09:39:19 +0900
committerTakashi Iwai <tiwai@suse.de>2015-09-30 15:35:31 +0200
commit927f17dc3a517128f07bbc1634fb25ce2587dc6f (patch)
tree359abc071958996dc1422a71744e82794821d33a /sound/firewire/digi00x/digi00x.h
parentALSA: firewire-digi00x: add stream functionality (diff)
downloadwireguard-linux-927f17dc3a517128f07bbc1634fb25ce2587dc6f.tar.xz
wireguard-linux-927f17dc3a517128f07bbc1634fb25ce2587dc6f.zip
ALSA: firewire-digi00x: add proc node to show clock status
This commit adds proc node to show current clock status for debugging. As long as testing Digi 002 rack, registers can show local clock rate, local clock source. When external clock input such as S/PDIF is connected, the registers show the detection and external clock rate. Additionally, the registers show the mode of optical digital input interface. Although, a tester with Digi 003 rack reports this makes no sense. Further investigation is required for Digi 003 series. Besides, in Digi 002 rack, the S/PDIF format must be IEC 60958-4, so-called professional. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/digi00x/digi00x.h')
-rw-r--r--sound/firewire/digi00x/digi00x.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/firewire/digi00x/digi00x.h b/sound/firewire/digi00x/digi00x.h
index 685d5f01ee0d..9ee259f8daa7 100644
--- a/sound/firewire/digi00x/digi00x.h
+++ b/sound/firewire/digi00x/digi00x.h
@@ -19,6 +19,7 @@
#include <sound/core.h>
#include <sound/initval.h>
+#include <sound/info.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
@@ -84,6 +85,12 @@ enum snd_dg00x_clock {
SND_DG00X_CLOCK_COUNT,
};
+enum snd_dg00x_optical_mode {
+ SND_DG00X_OPT_IFACE_MODE_ADAT = 0,
+ SND_DG00X_OPT_IFACE_MODE_SPDIF,
+ SND_DG00X_OPT_IFACE_MODE_COUNT,
+};
+
int amdtp_dot_init(struct amdtp_stream *s, struct fw_unit *unit,
enum amdtp_stream_direction dir);
int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate,
@@ -111,4 +118,5 @@ void snd_dg00x_stream_stop_duplex(struct snd_dg00x *dg00x);
void snd_dg00x_stream_update_duplex(struct snd_dg00x *dg00x);
void snd_dg00x_stream_destroy_duplex(struct snd_dg00x *dg00x);
+void snd_dg00x_proc_init(struct snd_dg00x *dg00x);
#endif