ALSA: dice: change notification mask to detect lock status change
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 11 Feb 2016 11:18:37 +0000 (20:18 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Feb 2016 08:52:43 +0000 (09:52 +0100)
With former patchset, ALSA dice driver doesn't change clock parameters
anymore, while the driver still touch clock configuration for phase lock.

Although the locking status is in Dice notification, the driver doesn't
detect it. Usually, this causes no issues because in most case
NOTIFY_LOCK_CHG notification transfers after NOTIFY_CLOCK_ACCEPTED
notification, while it's better to detect locking status.

This commit changes notification mask just to detect lock status change.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-transaction.c

index 76f9f72..0f03503 100644 (file)
@@ -156,7 +156,7 @@ static void dice_notification(struct fw_card *card, struct fw_request *request,
 
        fw_send_response(card, request, RCODE_COMPLETE);
 
-       if (bits & NOTIFY_CLOCK_ACCEPTED)
+       if (bits & NOTIFY_LOCK_CHG)
                complete(&dice->clock_accepted);
        wake_up(&dice->hwdep_wait);
 }