Skip to content

Commit fa9c98e

Browse files
takaswietiwai
authored andcommitted
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: 76fdb3a ('ALSA: fireface: add support for Fireface 400') Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 6ba189c commit fa9c98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/firewire/fireface/ff-protocol-ff400.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static int ff400_get_clock(struct snd_ff *ff, unsigned int *rate,
3030
int err;
3131

3232
err = snd_fw_transaction(ff->unit, TCODE_READ_QUADLET_REQUEST,
33-
FF400_SYNC_STATUS, &reg, sizeof(reg), 0);
33+
FF400_CLOCK_CONFIG, &reg, sizeof(reg), 0);
3434
if (err < 0)
3535
return err;
3636
data = le32_to_cpu(reg);

0 commit comments

Comments
 (0)