Comments (15)
from sof.
How can you capture analog data if this is nocodec mode ? It seems like this should be using a topology for a codec.
from sof.
What does alsabat exactly do in terms of FW pipelines?
Does it create both render and capture pipelines and somehow loopbacks it back from SSP?
I'm trying to understand if this is for sure render problem or maybe a capture problem.
from sof.
alsabat will create playback and capture pipeline, then play a specific sine wav and capture it through the loopback.
Today I used logic pro to capture the data from SDO port, look like the data is normal, so it's most like a capture issue.
from sof.
@keqiaozhang SSP capture FIFO is probably full of stale data. It could be cleared during trigger by reading the SSP FIFO directly using DSP reads.
from sof.
Keqiao, please make sure it is FW issue or driver issue.
from sof.
@zhuqingliang You have used command run : alsabat -Dhw:0,0 -f dat -c2 -r 48000 -F 997, but screen from Audacity says it's 44.1 kHz. Which one is wrong?
from sof.
Verified with latest code base on UP^2, found that the samples silent issue only happens in the first record and the number of the wrong samples is not fixed. After the first record, this issue cannot be reproduced. all the samples are correct. but this issue never happened with volume 16->16bit tplg, even in the first record.
Tested topology:
- passthrough 16-16 nocodec tplg
- volume 16-16 nocodec tplg
- passthrough 32-32 nocodec tplg
- volume 32-32 nocodec tplg
from sof.
@keqiaozhang, @tlauda ok, since this is first time only then we should read the SSP FIFO as part of the SSP driver init to clear out any stale samples. Should be a easy fix to try.
from sof.
Please verify on top of e69ebdd. I cannot reproduce this problem anymore.
from sof.
We perform test with e69ebdd . There are a long period of blank bit at the head of bat.wav* . The reproduce percentage is about 20% to 30%.
reproduce steps :
1.using test/test-ssp5-mclk-1-I2S-volume-s32le-s32le-48k-24576k-nocodec.tplg
2.reboot
3. run alsabat -Dhw:0,0 -f s32_le -r 48000 -c2 -F300
once boot up
4. audacity open /tmp/bat.wav.*
from sof.
@zhuqingliang have you verified this delay/race is not coming from alsabat/Linux userspace ?
from sof.
@zhuqingliang Can you provide dmesg log? I'm using the same topology and the same alsabat command, but I cannot reproduce this issue. Tried to reboot and run alsabat ~20 times.
from sof.
If run alsabat several times , the issues will not happen again .
from sof.
This issue is fixed by #111.
from sof.
Related Issues (20)
- [BUG] pipeline with DP-scheduled src_lite upon 0x13000002 IPC HOT 6
- [BUG] Fail to compile topology HOT 5
- [BUG] build error undefined reference to `__udivdi3 in mimx93_evk_a55 build HOT 4
- [BUG] [stable-v2.2] ERROR pipeline_comp_reset(): failed to recover (multiple-pipeline-all) HOT 1
- [BUG] [WHL] [stable-v2.2] capture overrun in pause/resume tests HOT 1
- LNL HDA alsabat capture failed, "Peak freq too low" HOT 37
- [BUG] arecord fails with non-zero exit status HOT 3
- [BUG] SOF build fails with Zephyr main since June 1st HOT 3
- [BUG] Noisy DMIC recording with concurrent audio playback over speakers HOT 13
- [BUG] MFCC HiFi4 optimized version is broken HOT 1
- [RFC] Explore the CPU cost benefits of using deinterleaved data along the internal path of the pipeline HOT 1
- [BUG] [HIFI4] PeakVol.Quality issues for audio formats HOT 3
- [FEATURE] GUI to demonstrate and control SOF components on target hardware HOT 4
- [FEATURE] Add IIR equalizer to every microphone and generally any acoustical endpoint
- [BUG][LLEXT] Logging is impossible during module unloading HOT 2
- [BUG] SOF fails to load on MTL (with Linux 6.8 or older driver) HOT 5
- [BUG] Zephyr panic with pause-resume test on LNL/nocodec HOT 10
- Alderlake/Amstonlake da7219 support in I2S HOT 4
- [BUG] PTL doesn't have an open source toolchain, "xtensa-build-zephyr.py ptl" fails by default HOT 3
- [BUG] DSP panic with Zephyr on Intel MTL, regression 27th June HOT 23
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 sof.