aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-06-13 23:49:28 -0400
committerTakashi Iwai <tiwai@suse.de>2015-06-15 07:34:29 -0400
commit13a4f42016fecbf971c3f6e249027a009a83839f (patch)
treee73650365b2a64291d2e872adcb04b02bc40569c
parent5a6688127082683f8c343da7d326dc22e45f4e4b (diff)
ALSA: bebob: apply new enumerator to normalize the type of clock source
Previous commit allows this driver to detect several types of clock source, while there's no normalized expression for it. This commit adds a new enumerator for this purpose. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/firewire/bebob/bebob.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/firewire/bebob/bebob.h b/sound/firewire/bebob/bebob.h
index 2a918caa88a1..368b62dea252 100644
--- a/sound/firewire/bebob/bebob.h
+++ b/sound/firewire/bebob/bebob.h
@@ -50,9 +50,15 @@ extern const unsigned int snd_bebob_rate_table[SND_BEBOB_STRM_FMT_ENTRIES];
50 50
51/* device specific operations */ 51/* device specific operations */
52#define SND_BEBOB_CLOCK_INTERNAL "Internal" 52#define SND_BEBOB_CLOCK_INTERNAL "Internal"
53enum snd_bebob_clock_type {
54 SND_BEBOB_CLOCK_TYPE_INTERNAL = 0,
55 SND_BEBOB_CLOCK_TYPE_EXTERNAL,
56 SND_BEBOB_CLOCK_TYPE_SYT,
57};
53struct snd_bebob_clock_spec { 58struct snd_bebob_clock_spec {
54 unsigned int num; 59 unsigned int num;
55 const char *const *labels; 60 const char *const *labels;
61 enum snd_bebob_clock_type *types;
56 int (*get)(struct snd_bebob *bebob, unsigned int *id); 62 int (*get)(struct snd_bebob *bebob, unsigned int *id);
57}; 63};
58struct snd_bebob_rate_spec { 64struct snd_bebob_rate_spec {