diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-12-09 03:04:19 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2018-12-09 03:37:44 -0500 |
| commit | fa9c98e4b975bb3192ed6af09d9fa282ed3cd8a0 (patch) | |
| tree | 61f217aeda938db476b2bd6afc49c54deb043a55 /sound | |
| parent | 6ba189c5c1a4bda70dc1e4826c58b0246068bb8d (diff) | |
ALSA: fireface: fix reference to wrong register for clock configuration
In an initial commit, 'SYNC_STATUS' register is referred to get
clock configuration, however this is wrong, according to my local
note at hand for reverse-engineering about packet dump. It should
be 'CLOCK_CONFIG' register. Actually, ff400_dump_clock_config()
is correctly programmed.
This commit fixes the bug.
Cc: <stable@vger.kernel.org> # v4.12+
Fixes: 76fdb3a9e13a ('ALSA: fireface: add support for Fireface 400')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/firewire/fireface/ff-protocol-ff400.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/fireface/ff-protocol-ff400.c b/sound/firewire/fireface/ff-protocol-ff400.c index 64c3cb0fb926..654a50319198 100644 --- a/sound/firewire/fireface/ff-protocol-ff400.c +++ b/sound/firewire/fireface/ff-protocol-ff400.c | |||
| @@ -30,7 +30,7 @@ static int ff400_get_clock(struct snd_ff *ff, unsigned int *rate, | |||
| 30 | int err; | 30 | int err; |
| 31 | 31 | ||
| 32 | err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST, | 32 | err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST, |
| 33 | FF400_SYNC_STATUS, ®, sizeof(reg), 0); | 33 | FF400_CLOCK_CONFIG, ®, sizeof(reg), 0); |
| 34 | if (err < 0) | 34 | if (err < 0) |
| 35 | return err; | 35 | return err; |
| 36 | data = le32_to_cpu(reg); | 36 | data = le32_to_cpu(reg); |
