Currently, the variable name is dev instead of Device as the comment
would suggest, update the name to fit the comment. Also, the variable
gets ignored due to it getting set to nothing right away, remove that
line to allow the variable to work as intended.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/339
Signed-off-by: WeirdTreeThing <bradyn127@protonmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
#
DefineMacro.SplitPCMDevice {
- Define.__dev ""
If.0 {
Condition {
Type String
- Empty "${var:__dev}"
+ Empty "${var:__Device}"
}
- True.Define.__dev "0"
+ True.Define.__Device "0"
}
If.1 {
Condition {
False {
Value {
"${var:__Direction}Channels" "${var:__HWChannels}"
- "${var:__Direction}PCM" "hw:${CardId},${var:__dev}"
+ "${var:__Direction}PCM" "hw:${CardId},${var:__Device}"
"${var:__Direction}Channel0" "${var:__Channel0}"
"${var:__Direction}ChannelPos0" "${var:__ChannelPos0}"
}
}
}
True {
- Define.__pcmdev "${var:__Name}:${CardId},${var:__dev},${var:__Channel0}"
+ Define.__pcmdev "${var:__Name}:${CardId},${var:__Device},${var:__Channel0}"
If.ch1 {
Condition {
Type String