diff options
author | Jiada Wang <[email protected]> | 2018-09-03 07:08:37 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2018-09-03 14:37:19 +0100 |
commit | 2e66d523cd055ac3fa920f7e630c4bfa80d24c24 (patch) | |
tree | a691adb899aea6a23582d865cb1d98cb47d5cebb /lib/string_helpers.c | |
parent | 8c9d750333408420a1e4816b1820f10be2a84af6 (diff) |
ASoC: rsnd: ssiu: Support to init different BUSIF instance
Currently ssiu's .init is only called once during audio stream.
But SSIU with different BUSIF, shall be initialized each time,
even they are used in the same audio stream.
This patch introduces ssiu_status for BUSIF0 to BUSIF7 in rsnd_ssiu,
to make sure same .init for different BUSIF can always be executed.
To avoid the first stopped stream to stop the whole SSIU,
which may still has other BUSIF instance running, use usrcnt to count
the usage of SSIU, only the last user of SSIU can stop the whole SSIU.
Signed-off-by: Jiada Wang <[email protected]>
Signed-off-by: Timo Wischer <[email protected]>
[Kuninori: tidyup for upstream]
Signed-off-by: Kuninori Morimoto <[email protected]>
Tested-by: Hiroyuki Yokoyama <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions