diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-12-11 19:17:30 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-12-11 14:56:20 +0100 |
commit | 3c3b892b3735edcc9e0be0aa129c72613e3f156e (patch) | |
tree | 1cec4e0a5d49534d57c30f3d9788125966e75228 /sound/firewire/fireface/ff.h | |
parent | 72f10f08b6e95cfeb7cad9ebd165d5cca771e0e7 (diff) | |
download | linux-stable-3c3b892b3735edcc9e0be0aa129c72613e3f156e.tar.gz linux-stable-3c3b892b3735edcc9e0be0aa129c72613e3f156e.tar.bz2 linux-stable-3c3b892b3735edcc9e0be0aa129c72613e3f156e.zip |
ALSA: fireface: share helper function to get current sampling rate and clock source
As long as investigating packet dumps from Fireface 400/800, bits on
status registers for clock synchronization are the same.
This commit moves a parser for a register of clock configuration to
obsolete model-specific operations.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/fireface/ff.h')
-rw-r--r-- | sound/firewire/fireface/ff.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/fireface/ff.h b/sound/firewire/fireface/ff.h index 6dc36a2623b3..cdb1326f65b7 100644 --- a/sound/firewire/fireface/ff.h +++ b/sound/firewire/fireface/ff.h @@ -101,8 +101,6 @@ enum snd_ff_clock_src { }; struct snd_ff_protocol { - int (*get_clock)(struct snd_ff *ff, unsigned int *rate, - enum snd_ff_clock_src *src); int (*begin_session)(struct snd_ff *ff, unsigned int rate); void (*finish_session)(struct snd_ff *ff); int (*switch_fetching_mode)(struct snd_ff *ff, bool enable); @@ -114,6 +112,8 @@ struct snd_ff_protocol { extern const struct snd_ff_protocol snd_ff_protocol_ff400; +int snd_ff_transaction_get_clock(struct snd_ff *ff, unsigned int *rate, + enum snd_ff_clock_src *src); int snd_ff_transaction_register(struct snd_ff *ff); int snd_ff_transaction_reregister(struct snd_ff *ff); void snd_ff_transaction_unregister(struct snd_ff *ff); |