Skip to content

check-pause-resume: add support for SOF_ALSA/APLAY/ARECORD_OPTS - #527

Merged
xiulipan merged 2 commits into
thesofproject:masterfrom
marc-hb:pause-opts
Dec 2, 2020
Merged

xiulipan merged 2 commits into
thesofproject:masterfrom
marc-hb:pause-opts

Conversation

@marc-hb

@marc-hb marc-hb commented Nov 19, 2020

Copy link
Copy Markdown
Collaborator

2 commits: 1. shellcheck clean-up, 2. SOF_ALSA_OPTS

@marc-hb

marc-hb commented Nov 19, 2020

Copy link
Copy Markdown
Collaborator Author

On my APL_UP2_NOCODEC I get this error message from time to time:

(1/10) Wait for 155 ms before pause                | 00%
=== PAUSE ===           aplay: do_pause:1545: pause push error: File descriptor in bad state
(1/10) Wait for 197 ms before pause                | 00%                  
(1/10) Wait for 116 ms before pause                                      
(1/10) Wait for 118 ms before resume

Yet SOF_ALSA_OPTS='--fatal-errors' does NOT stop aplay after it prints this error and it does not make the test fail #greenfailures

cc: @plbossart

@marc-hb
marc-hb marked this pull request as ready for review November 19, 2020 06:36
@marc-hb
marc-hb requested a review from a team as a code owner November 19, 2020 06:36
Hopefully zero functional change.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Sample usage:

   SOF_ALSA_OPTS='-q --fatal-errors' ./test-case/check-pause-resume.sh

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb

marc-hb commented Nov 23, 2020

Copy link
Copy Markdown
Collaborator Author

Pure rebase (after # 529), no code change.

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we seems to have duplicated logs output with expect.

Comment thread test-case/check-pause-resume.sh
@xiulipan
xiulipan merged commit 8a21c09 into thesofproject:master Dec 2, 2020
@marc-hb
marc-hb deleted the pause-opts branch December 4, 2020 18:00
@marc-hb

marc-hb commented Jan 27, 2021

Copy link
Copy Markdown
Collaborator Author

For the record this should help with #329 and #489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants