-
Notifications
You must be signed in to change notification settings - Fork 324
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
scripts: disable pulseaudio before sof bootloop #855
scripts: disable pulseaudio before sof bootloop #855
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the commit message, can you describe more detail about the use case here, the error (please paste it), and why pulseaudio is a problem.
I also dont see any connection with thesofproject/linux#534 ? Please explain in more detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAK NAK NAK.
the fix wrecks the user setup and PulseAudio should only interact with the card based on udev triggers, so if there is a race condition it needs to be fixed.
@@ -1,5 +1,8 @@ | |||
#!/bin/bash | |||
|
|||
echo "autospawn = no" > /etc/pulse/client.conf | |||
killall pulseaudio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has got to be one of the silliest fixes I've ever seen. You just erased the entire file with this, so all other settings are gone. Seriously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plbossart updated
'>' -> '>>'? anyway, maybe it triggers the simultaneous problem that @keyonjie was looking into recently? it worth looking into deeper. |
the pulseaudio trigger a stream at the start, and it interfered with the timing of sof_remove, so disable it at first Signed-off-by: Zhu Yingjiang <[email protected]>
7aa51d8
to
35aa045
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still don't fully understand the reason for this change as your commit message is missing details. Are you saying there is an issue in sof_remove in the driver ? Can you paste logs. If there is an sof_remove() issue then this seems to be the wrong way to fix it.
@lgirdwood So this comes to the question: "can the module/device be used when do the load/unload"? Analyse with add printk sometimes got NULL pointer which cause the oops, I will go deep and provide more analysis later on. |
@zhuyingjiang ok this is a driver bug and needs fixed in the driver.
|
Closing since it's a kernel issue. @zhuyingjiang please create a FW issue. |
the pulseaudio trigger a stream at the start, and it interfered
with the timing of sof_remove, this fix thesofproject/linux#534
Signed-off-by: Zhu Yingjiang [email protected]