]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Intel: Get correct usage_count value to load firmware
authorShilpa Sreeramalu <shilpa.sreeramalu@intel.com>
Wed, 15 Jul 2015 14:58:09 +0000 (07:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:52:17 +0000 (20:52 -0700)
commitba8d2b484d19090e0c19b38c4f3d8d1ab65107bb
tree96bad2ec4dd58af7d3009242ca9609e3b36d4602
parent40114a3e4210f30b5d16788e6e7b928868881cfd
ASoC: Intel: Get correct usage_count value to load firmware

commit 412efa73dcd3bd03c1838c91e094533a95529039 upstream.

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.

Signed-off-by: Shilpa Sreeramalu <shilpa.sreeramalu@intel.com>
Signed-off-by: Fang, Yang A <yang.a.fang@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/atom/sst/sst_drv_interface.c