-
Notifications
You must be signed in to change notification settings - Fork 133
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
ASoC: SOF: fix PCM playback through ALSA OSS emulation #1690
ASoC: SOF: fix PCM playback through ALSA OSS emulation #1690
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.
Looks neat and clean to me. Some typos in commit message like "withoout"...
b3ddca2
to
cbab060
Compare
Any app using ALSA OSS emulation on top of SOF will fail to error from OSS SNDCTL_DSP_SETFMT ioctl. Reported initially as an issue with xournalpp (application using PortAudio with an OSS backend), but applies more generally to other apps using OSS as well. Problem is caused by SOF PCM not supporting repeated calls to hw_params(), without matching calls to pcm_free(). This is however exactly what the ALSA OSS PCM code is doing when it is handling the OSS ioctls. The problem will lead to leaking of DSP resources and eventual failure of DSP PCM_PARAMS IPC. BugLink: thesofproject#1510 Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
cbab060
to
f1e767f
Compare
@juimonen wrote:
Oops. Thanks! It seems default codespell file for checkpatch is quite limited for typos like this. Oh well, there was at least one another bizarre sentence in the commit. Now fixed. |
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.
nice, thanks @kv2019i
Great, thanks! Will give it a roll ASAP. |
Any app using ALSA OSS emulation on top of SOF will fail
to error from OSS SNDCTL_DSP_SETFMT ioctl. Reported initially
as an issue with xournalpp (application using PortAudio with
an OSS backend), but applies more generally to other apps
using OSS as well.
Problem is caused by a problem in SOF PCM code where code does
not support repeatedly calling hw_params(), withoout
matching calls to pcm_free(). This is however exactly what
the ALSA OSS PCM code is doing when it is handling the OSS
ioctls.
The problem will lead to leaking of DSP resource and eventual
failure of DSP PCM_PARAMS IPC.
Fixes: #1510