From: Takashi Sakamoto Date: Sun, 14 Jun 2015 03:49:28 +0000 (+0900) Subject: ALSA: bebob: apply new enumerator to normalize the type of clock source X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=13a4f42016fecbf971c3f6e249027a009a83839f;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Signed-off-by: Takashi Iwai --- 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]; /* device specific operations */ #define SND_BEBOB_CLOCK_INTERNAL "Internal" +enum snd_bebob_clock_type { + SND_BEBOB_CLOCK_TYPE_INTERNAL = 0, + SND_BEBOB_CLOCK_TYPE_EXTERNAL, + SND_BEBOB_CLOCK_TYPE_SYT, +}; struct snd_bebob_clock_spec { unsigned int num; const char *const *labels; + enum snd_bebob_clock_type *types; int (*get)(struct snd_bebob *bebob, unsigned int *id); }; struct snd_bebob_rate_spec {