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>
This commit is contained in:
Takashi Sakamoto
2018-12-11 19:17:30 +09:00
committed by Takashi Iwai
父節點 72f10f08b6
當前提交 3c3b892b37
共有 5 個文件被更改,包括 63 次插入64 次删除

查看文件

@@ -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;