Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LNL alsabat test to support both USB Codec/AudioPlug loopback setup #1231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions test-case/check-alsabat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,37 @@ then
exit 2
fi

# Check device for AudioPlug Loopback enabled or not for LNL HDA
if [ "$AUDIOPLUG_LOOPBACK" == "true" ] && [ "$MODEL" == "LNLM_RVP_HDA" ]; then

dlogi "The Device have AUDIO PLUG LOOPBACK enabled for LNLM_RVP_HDA"

# Check for playback/capture used USB codec, if yes replace with headset device
if [ "$pcm_c" == "hw:CODEC,0" ]; then
pcm_c="hw:sofhdadsp,0"
dlogi "Capture device changed to $pcm_c"
else
pcm_p="hw:sofhdadsp,0"
dlogi "Playback device changed to $pcm_p"
fi
fi

# Check device for AudioPlug Loopback enabled or not for LNL SDW
if [ "$AUDIOPLUG_LOOPBACK" == "true" ] && [ "$MODEL" == "LNLM_SDW_AIOC" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

you probably want to avoid using the MODEL, we can use this test on previous generations as well.


dlogi "The Device have AUDIO PLUG LOOPBACK enabled for LNLM_SDW_AIOC"

# Check for playback/capture used USB codec, if yes replace with headset device
if [ "$pcm_c" == "hw:CODEC,0" ]; then
pcm_c="hw:sofsoundwire,1"
dlogi "Capture device changed to $pcm_c"
else
pcm_p="hw:sofsoundwire,0"
dlogi "Playback device changed to $pcm_p"
fi
fi


check_locale_for_alsabat

# reset sof volume to 0dB
Expand Down
Loading