[PATCH 2/2] alsa: Reread and upate jack status when a card is unsuspended

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2016-05-09 at 15:40 +0530, Arun Raghavan wrote:
> @@ -369,6 +369,8 @@ int pa_card_suspend(pa_card *c, bool suspend, pa_suspend_cause_t cause) {
>      else
>          c->suspend_cause &= ~cause;
>  
> +    pa_hook_fire(&c->core->hooks[PA_CORE_HOOK_CARD_SUSPEND_CHANGED], c);

I'd like to have a check that ensures that c->suspend_cause actually
changed before firing the hook.

Otherwise looks good.

-- 
Tanu


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux