Comments (4)
@lgirdwood
I added test code like this below in the function sof_route_load()
sroute->route.source = kstrdup(route->source, GFP_KERNEL);
if (!sroute->route.source) {
dev_err(sdev->dev, "==wzg: route soure malloc fail %s\n",sroute->route.source);
goto err;
}
sroute->route.sink = kstrdup(route->sink, GFP_KERNEL);
if (!sroute->route.sink) {
dev_err(sdev->dev, "==wzg: route sink malloc fail %s\n",sroute->route.source);
kfree(sroute->route.source);
goto err;
}
sroute->route.control = kstrdup(route->control, GFP_KERNEL);
if (!sroute->route.control) {
dev_err(sdev->dev, "==wzg: route control malloc fail %s\n",sroute->route.source);
kfree(sroute->route.source);
kfree(sroute->route.sink);
goto err;
}
I got the log: "route control malloc fail .....".
It is strange. I do not know why this would happen.
It seems it failed many times.
from linux.
@lgirdwood
I found the root cause of this PR #80
I will send another fix for this issue.
from linux.
@lgirdwood
The root cause is: the upper function will sometimes set the route->control pointer = NULL.
then in the sof_route_load() function, it will malloc failure. the error will happen. the route is not added
into the list. the IPC error will happen.
from linux.
fixed by the PR #99
from linux.
Related Issues (20)
- Microphone not working (Lenovo YOGA slim 7i) HOT 2
- Simultaneous audio capture from branched capture pipelines fail HOT 1
- HELP! Matebook 14 s does not install any external sound card drivers
- [HD-A] System does not wake up Playback/Capture-> pause -> suspend->resume scenario HOT 8
- [MTL] ThinkBook 13x Gen 4 speakers do not work HOT 3
- [BUG] Huawei MateBook E DRR-W76 - no soundcards found HOT 4
- Hardware-dependent RT714 DMIC settings needed HOT 15
- LNL HDA pause-release MAX issue HOT 7
- [BUG] [CML] jack detection of speaker error on galaxy chromebook HOT 6
- [BUG] Huawei MateBook E DRR-W76 - the speakers are not working HOT 12
- SoundWire locking issues HOT 8
- [BUG] Distorted internal speaker sound on sof-rt5682 HOT 2
- LNL SoundWire xruns during repeated playback HOT 2
- Missing topology sof-mtl-rt711.tplg HOT 2
- Lenovo Thinkpad X1 Carbon Gen1- DSP boot failure HOT 35
- No sound on Dell XPS 17 9700 HOT 17
- Speakers Inverted - Razer Blade 15 (2022) HOT 3
- CML controller bank switch timeout HOT 3
- [LNL]Suspend resume with playback or capture will Fail or TIMEOUT HOT 20
- [LNL] Multiple Pipeline Playback/capture stress test fails. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.