summaryrefslogtreecommitdiff
path: root/sound/firewire/fireface/ff-pcm.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2018-12-11 19:17:30 +0900
committerTakashi Iwai <tiwai@suse.de>2018-12-11 14:56:20 +0100
commit3c3b892b3735edcc9e0be0aa129c72613e3f156e (patch)
tree1cec4e0a5d49534d57c30f3d9788125966e75228 /sound/firewire/fireface/ff-pcm.c
parent72f10f08b6e95cfeb7cad9ebd165d5cca771e0e7 (diff)
downloadlwn-3c3b892b3735edcc9e0be0aa129c72613e3f156e.tar.gz
lwn-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-pcm.c')
-rw-r--r--sound/firewire/fireface/ff-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/fireface/ff-pcm.c b/sound/firewire/fireface/ff-pcm.c
index bf47f9ec8703..63b0be6f05e8 100644
--- a/sound/firewire/fireface/ff-pcm.c
+++ b/sound/firewire/fireface/ff-pcm.c
@@ -141,7 +141,7 @@ static int pcm_open(struct snd_pcm_substream *substream)
if (err < 0)
goto release_lock;
- err = ff->spec->protocol->get_clock(ff, &rate, &src);
+ err = snd_ff_transaction_get_clock(ff, &rate, &src);
if (err < 0)
goto release_lock;