04-13-2020, 04:40 PM
(This post was last modified: 04-13-2020, 04:41 PM by fabio323ti.)
used this code from Adrian to ceate asound.conf
added /etc/modules loop command... and restart mpd...
loopback works great, cava is working also with stream airplay/spotify ect.. but no more audio output on 3.5 jack RPi board...
maybe need DAC board on i2s ??
added /etc/modules loop command... and restart mpd...
loopback works great, cava is working also with stream airplay/spotify ect.. but no more audio output on 3.5 jack RPi board...
maybe need DAC board on i2s ??
Code:
pcm.!hw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_PCM_DEVICE
]
default {
@func refer
name defaults.pcm.device
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.pcm.subdevice
}
}
type plug
slave.pcm {
type multi
slaves {
a { channels 2 pcm {
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
} # the real device
b { channels 2 pcm "plughw:Loopback,0" } # loopback driver
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ] # left -> a.left, b.left
[ 0 1 0 1 ] # right -> a.right, b.right
]
hint {
show {
@func refer
name defaults.namehint.extended
}
description "Direct hardware device without any conversions"
}
}