[alsa-devel] [PATCH v3] ASoC: Intel: Get correct usage_count value to load firmware

Vinod Koul vinod.koul at intel.com
Wed Jul 15 18:16:10 CEST 2015


On Wed, Jul 15, 2015 at 07:58:09AM -0700, yang.a.fang at intel.com wrote:
> From: Shilpa Sreeramalu <shilpa.sreeramalu at intel.com>
> 
> The usage_count variable was read before it was set to the correct
> value, due to which the firmware load was failing. Because of this
> IPC messages sent to the firmware were timing out causing a delay
> of about 1 second while playing audio from the internal speakers.
> 
> With this patch the usage_count is read after the function call
> pm_runtime_get_sync which will increment the usage_count variable
> and the firmware load is successful and all the IPC messages are
> processed correctly.

Acked-by: Vinod Koul <vinod.koul at intel.com>

-- 
~Vinod



More information about the Alsa-devel mailing list