I had the same issue with my laptop. Here is how I fixed it. Hp seems to not have its act together when it comes to audio
It was supposedly due to a power setting that caused a delay. (https://h30434.www3.hp.com/t5/Notebook-Audio/System-Sound-Delay/m-p/6508198#M91186)
New temporary solution that works with Realtek drivers.
You have to go into change the registry, to fix this. Go to start type "run" . In run diaglog box enter "regedit".
Find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96c-e325-11ce-bfc1-08002be10318}\xxxx\PowerSettings
where 'xxxx' is one of keys which contains
DriverDesc value 'Realtek High Definition Audio'.
Note: There may be multiple ones containing PowerSettings,
for example 'Nvidia High Definition Audio'.
You'll find there three binary values and set them:
- ConservationIdleTime = ff ff ff ff;
- IdlePowerState = 00 00 00 00;
- PerformanceIdleTime = ff ff ff ff.
Default values are all 00 00 00 00 which disables power settings,
but driver somehow overrides it with 0a 00 00 00
which is 10 seconds (0x0a = 10) and is by default in driver.
Problem shouldn't occur again after restart (or I haven't noticed).
This is not solution to problem,
it only prevents audio hardware going idle,
but I don't see any impact on energy consumption.