Giter Site home page Giter Site logo

Comments (15)

zhuqingliang avatar zhuqingliang commented on August 15, 2024

dmesg.log
rmbox.log

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024

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.

tlauda avatar tlauda commented on August 15, 2024

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.

keqiaozhang avatar keqiaozhang commented on August 15, 2024

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.
screenshot from 2018-07-10 16-02-00

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024

@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.

jocelyn-li avatar jocelyn-li commented on August 15, 2024

Keqiao, please make sure it is FW issue or driver issue.

from sof.

tlauda avatar tlauda commented on August 15, 2024

@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.

keqiaozhang avatar keqiaozhang commented on August 15, 2024

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:

  1. passthrough 16-16 nocodec tplg
  2. volume 16-16 nocodec tplg
  3. passthrough 32-32 nocodec tplg
  4. volume 32-32 nocodec tplg

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024

@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.

tlauda avatar tlauda commented on August 15, 2024

Please verify on top of e69ebdd. I cannot reproduce this problem anymore.

from sof.

zhuqingliang avatar zhuqingliang commented on August 15, 2024

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.*
image

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024

@zhuqingliang have you verified this delay/race is not coming from alsabat/Linux userspace ?

from sof.

tlauda avatar tlauda commented on August 15, 2024

@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.

zhuqingliang avatar zhuqingliang commented on August 15, 2024

If run alsabat several times , the issues will not happen again .

from sof.

keqiaozhang avatar keqiaozhang commented on August 15, 2024

This issue is fixed by #111.

from sof.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.