diff options
author | Dharageswari R <dharageswari.r@intel.com> | 2016-09-22 11:30:37 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-24 21:26:24 +0300 |
commit | 700a9a63f9c1bc13abaa956eacc0bfcaf3a201c2 (patch) | |
tree | 427b291810c2caa35082e542fe1be4a70cd4313e /fs/locks.c | |
parent | dde53bcc3ea054a72b6d42a6fe56beb4b1a914f2 (diff) | |
download | linux-700a9a63f9c1bc13abaa956eacc0bfcaf3a201c2.tar.xz |
ASoC: Intel: Skylake: Add module instance id generation APIs
Driver needs to send unique module instance id to firmware while
creating the module and uses this id to communicate with DSP for setting
parameters while audio use case is ongoing.
But, we have upper bound of instance ID. The current IDs are coming from
topology but it doesn't know the upper bound and can't assign unique
id's subject to upper bounds as we can create a big graph but not all
parts running at same time.
This patch adds a 128bit unique id management routines which are built
on top of ffz() for faster implementation. Unfortunately ffz() works on
32bits values, so additional code is added on top of ffz() to create a
128bit unique id.
Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions