-
Notifications
You must be signed in to change notification settings - Fork 48
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
Updated check-sof-logger.sh and verify-kernel-boot-log.sh #1245
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,8 @@ dmic_switch_present() | |
(set -x | ||
# name= is hardcoded in /usr/share/alsa/ucm2/* | ||
# This returns a non-zero error status on failure | ||
amixer cget name='Dmic0 Capture Switch' | ||
switch=$(aplay -l | head -2 | tail -1 | awk '{print $3}') | ||
amixer -c "$switch" cget name='Dmic0 Capture Switch' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, doesn't this still select a fixed card? E.g.
... you'd get the same with "amixer -c 0" gets us. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Select a card using its name, such as "sofsoundwire", instead of selecting it using numbers aplay -l | head -2 | tail -1 | awk '{print $3}' sofsoundwire Command shall be like: amixer -c "sofsoundwire" cget name='Dmic0 Capture Switch' There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @harajend But "head -2 | tail -1" will always pick the first card, so this is same as passing "amixer -c 0", right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
switch=$(aplay -l | awk 'NR == 2 {print $3}')
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, On functionality front both are same. Here I thought to pass "name/identifier" instead of "index number" |
||
) | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change is good, but the commit message seems wrong. There are two signed offs. Can you amend the message and repush?