diff options
| author | Pierre-Louis Bossart <[email protected]> | 2023-08-02 10:36:20 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-08-07 14:32:25 +0100 |
| commit | f3da2ed110e2884b29151313eee52947b786e1a7 (patch) | |
| tree | 91d1ee7a1ed21b8776b6d8d44cfac4bef115e82f /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 6b8f8c5e6ffbd431d6cf40584dc8d3027f7e99b3 (diff) | |
ASoC: rt1712-sdca: enable pm_runtime in probe, keep status as 'suspended'
This patch suggests enabling pm_runtime during the probe, but marking the
device as 'active' only after it is enumerated. That will force a
dependency between the card and the codec, pm_runtime_get_sync() will
have to wait for the codec device to resume and hence implicitly wait
for the enumeration/initialization to be completed. In the nominal
case where the codec device is already active the get_sync() would
only perform a ref-count increase.
The changes are directly inspired by RT711 and RT711-sdca changes.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Reviewed-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions