All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: clemens@ladisch.de, tiwai@suse.de
Cc: kim@incendio.no, alsa-devel@alsa-project.org, jh1ood@gmail.com,
	ffado-devel@lists.sf.net
Subject: [PATCH 02/11] ALSA: bebob: apply new enumerator to normalize the type of clock source
Date: Sun, 14 Jun 2015 12:49:28 +0900	[thread overview]
Message-ID: <1434253777-433-3-git-send-email-o-takashi@sakamocchi.jp> (raw)
In-Reply-To: <1434253777-433-1-git-send-email-o-takashi@sakamocchi.jp>

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>
---
 sound/firewire/bebob/bebob.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sound/firewire/bebob/bebob.h b/sound/firewire/bebob/bebob.h
index 2a918ca..368b62d 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 {
-- 
2.1.4

  parent reply	other threads:[~2015-06-14  3:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-14  3:49 [PATCH 00/11] ALSA: bebob: improve support for DM1500/BeBoBv3 Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 01/11] ALSA: bebob: improve signal mode detection for clock source Takashi Sakamoto
2015-06-14  3:49 ` Takashi Sakamoto [this message]
2015-06-14  3:49 ` [PATCH 03/11] ALSA: bebob: preparation for replacing string literals by normalized representation for model-dependent structures Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 04/11] ALSA: bebob: use normalized representation for the type of clock source Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 05/11] ALSA: bebob: obsolete string literal expression for " Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 06/11] ALSA: bebob: add SYT-Match support Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 07/11] ALSA: bebob: add 'version' member for BeBoB protocol version Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 08/11] ALSA: bebob: expand timeout for DM1500 quirk Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 09/11] ALSA: bebob: loosen up severity of checking continuity for BeBoB v3 quirk Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 10/11] ALSA: bebob: keep duplex streams always to keep internal multiplexer properly Takashi Sakamoto
2015-06-14  3:49 ` [PATCH 11/11] ALSA: bebob: add support for Behringer FCA 610/1616 Takashi Sakamoto
2015-06-15 11:39 ` [PATCH 00/11] ALSA: bebob: improve support for DM1500/BeBoBv3 Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2015-06-08 14:30 [RFC][PATCH 00/11] " Takashi Sakamoto
2015-06-08 14:30 ` [PATCH 02/11] ALSA: bebob: apply new enumerator to normalize the type of clock source Takashi Sakamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1434253777-433-3-git-send-email-o-takashi@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=ffado-devel@lists.sf.net \
    --cc=jh1ood@gmail.com \
    --cc=kim@incendio.no \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.