Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LNL SoundWire xruns during repeated playback #5066

Open
plbossart opened this issue Jun 17, 2024 · 3 comments
Open

LNL SoundWire xruns during repeated playback #5066

plbossart opened this issue Jun 17, 2024 · 3 comments
Labels
LNL Applies to Lunar Lake platform SDW Applies to SoundWire bus for codec connection

Comments

@plbossart
Copy link
Member

plbossart commented Jun 17, 2024

xruns seen with this simple script:

set -e

cnt=0
while true; do
	aplay -Dhw:0,0 -c2 -r48000 -fS16_LE /dev/zero -d5
	sleep 5;
	cnt=$((cnt + 1));
	echo "iteration $cnt done";
done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 78 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 79 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 1036.547 ms long)
iteration 80 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 81 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 82 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 83 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 84 done


Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 148 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 1090.545 ms long)
iteration 149 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 412.473 ms long)
iteration 150 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 151 done

Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 434 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 435 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 436 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 268.634 ms long)
iteration 437 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 438 done

Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 491 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
iteration 492 done
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 2343.001 ms long)
iteration 493 done


@plbossart plbossart added SDW Applies to SoundWire bus for codec connection LNL Applies to Lunar Lake platform labels Jun 17, 2024
@plbossart
Copy link
Member Author

@kv2019i @bardliao FYI

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 18, 2024

The sleep 5 seems very close to the DSP PM timeout... Does sleep 1 or sleep 10 affect the reproduction rate significantly?

@marc-hb
Copy link
Collaborator

marc-hb commented Jul 29, 2024

@ranj063 maybe related to #5080 and #5109?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LNL Applies to Lunar Lake platform SDW Applies to SoundWire bus for codec connection
Projects
None yet
Development

No branches or pull requests

2 participants