diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-07 18:27:49 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-07 18:27:55 +0300 |
commit | 66a8966aac12f2a79de514dbbe99c9b3e90c9280 (patch) | |
tree | ca5f3fe6f47f68b63fa2e0734270e8781d465cd5 /sound/firewire | |
parent | 9ff7759731db1df8dfe036046d05c3f7ed1e37b0 (diff) | |
parent | df37d941c4b5aee9259ab4e34de8bfda384f7681 (diff) | |
download | linux-66a8966aac12f2a79de514dbbe99c9b3e90c9280.tar.xz |
Merge branch 'for-linus' into for-next
Merge 5.4-devel branch for applying the further ALSA timer fixes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r-- | sound/firewire/bebob/bebob_focusrite.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/bebob/bebob_focusrite.c b/sound/firewire/bebob/bebob_focusrite.c index 32b864bee25f..06d6a37cd853 100644 --- a/sound/firewire/bebob/bebob_focusrite.c +++ b/sound/firewire/bebob/bebob_focusrite.c @@ -27,6 +27,8 @@ #define SAFFIRE_CLOCK_SOURCE_SPDIF 1 /* clock sources as returned from register of Saffire Pro 10 and 26 */ +#define SAFFIREPRO_CLOCK_SOURCE_SELECT_MASK 0x000000ff +#define SAFFIREPRO_CLOCK_SOURCE_DETECT_MASK 0x0000ff00 #define SAFFIREPRO_CLOCK_SOURCE_INTERNAL 0 #define SAFFIREPRO_CLOCK_SOURCE_SKIP 1 /* never used on hardware */ #define SAFFIREPRO_CLOCK_SOURCE_SPDIF 2 @@ -189,6 +191,7 @@ saffirepro_both_clk_src_get(struct snd_bebob *bebob, unsigned int *id) map = saffirepro_clk_maps[1]; /* In a case that this driver cannot handle the value of register. */ + value &= SAFFIREPRO_CLOCK_SOURCE_SELECT_MASK; if (value >= SAFFIREPRO_CLOCK_SOURCE_COUNT || map[value] < 0) { err = -EIO; goto end; |