diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-10-30 11:06:41 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-10-30 12:57:54 +0300 |
commit | 3f58f004bff3273d102583e0b2f478526cf9d3c8 (patch) | |
tree | 6d31f483cd0eac308eb491609a33384fd1317017 /sound/firewire/motu/motu-protocol-v2.c | |
parent | 1ef2ff941424bde4fd1d8dc97e0e600c5dc5472e (diff) | |
download | linux-3f58f004bff3273d102583e0b2f478526cf9d3c8.tar.xz |
ALSA: firewire-motu: detect SPH source of sampling clock
In MOTU FireWire series, devices have a mode to generate sampling clock
from a sequence of source packet header (SPH) included in each data block
of received packet. This mode is used for several purposes such as mode
for SMPTE time code, sync to the other sound cards and so on.
This commit adds support for the SPH mode.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191030080644.1704-4-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu/motu-protocol-v2.c')
-rw-r--r-- | sound/firewire/motu/motu-protocol-v2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/motu/motu-protocol-v2.c b/sound/firewire/motu/motu-protocol-v2.c index a42f77fc3858..2757e5b42b9b 100644 --- a/sound/firewire/motu/motu-protocol-v2.c +++ b/sound/firewire/motu/motu-protocol-v2.c @@ -114,6 +114,9 @@ static int v2_get_clock_source(struct snd_motu *motu, case 2: *src = SND_MOTU_CLOCK_SOURCE_SPDIF_ON_COAX; break; + case 3: + *src = SND_MOTU_CLOCK_SOURCE_SPH; + break; case 4: *src = SND_MOTU_CLOCK_SOURCE_WORD_ON_BNC; break; |