Skip to content

Conversation

@libinyang
Copy link
Contributor

a lot of changes have been made from the first version. And we have a full talk about the implementation. So open a new thread based on @marc-hb 's suggestion. The old version can be found: #363

This patchset includes:
check-userspace-cardinfo: check pulseaudio can parse the ucm correctly and exports the correct card
check-userspace-paplay: go through all the active sinks and play on it if port is available
check-userspace-parecord: go through all the active sources and record on it if port is available

@libinyang libinyang requested a review from a team as a code owner November 2, 2020 06:39
Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

Very quick and incomplete review.

The code is very readable, thanks! but I'm wondering whether all of it is really needed, especially the long pactl parser

Maybe there's no need for that much manual error handling either, relying on the defaults could be enough.

@xiulipan
Copy link
Contributor

xiulipan commented Dec 3, 2020

@libinyang Ping for update or close.

Add the helper function to check whether pulseaudio runs
properly or not.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Check the pulseaudio card info to make sure the card is ready.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Add the tool pactlinfo.py to parse the pactl list information

Signed-off-by: Libin Yang <libin.yang@intel.com>
This test case will go through all the sinks on the tested cards, and
try to paplay it if the active port is not "not available"

Signed-off-by: Libin Yang <libin.yang@intel.com>
This test case will go through all the sources on the tested cards, and
try to parecord it if the active port is not "not available"

Signed-off-by: Libin Yang <libin.yang@intel.com>
@libinyang
Copy link
Contributor Author

All the feedbacks are ACKed except the 'timeout' issue keeps open.

@libinyang
Copy link
Contributor Author

ping for review

@xiulipan xiulipan requested a review from marc-hb January 18, 2021 07:02
@xiulipan xiulipan merged commit 93f19db into thesofproject:master Jan 18, 2021
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.

3 participants