mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
target the hat instead of 0,0
This commit is contained in:
+5
-5
@@ -1,14 +1,14 @@
|
|||||||
# Use the Google Voice HAT soundcard as index 0 (primary card)
|
# Use the Google Voice HAT soundcard as the primary device by name (more robust than numeric card index)
|
||||||
options snd_rpi_googlevoicehat_soundcard index=0
|
options snd_rpi_googlevoicehat_soundcard index=0
|
||||||
|
|
||||||
# Simple defaults: direct playback/capture on card 0
|
# Simple defaults: direct playback/capture on the voice HAT
|
||||||
pcm.!default {
|
pcm.!default {
|
||||||
type asym
|
type asym
|
||||||
playback.pcm "plughw:0,0"
|
playback.pcm "plughw:sndrpigooglevoicehat_soundcar,0"
|
||||||
capture.pcm "plughw:0,0"
|
capture.pcm "plughw:sndrpigooglevoicehat_soundcar,0"
|
||||||
}
|
}
|
||||||
|
|
||||||
ctl.!default {
|
ctl.!default {
|
||||||
type hw
|
type hw
|
||||||
card 0
|
card sndrpigooglevoicehat_soundcar
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ AUDIO_BITRATE="${AUDIO_BITRATE:-64000}"
|
|||||||
|
|
||||||
# Normalize device if env still says "default"
|
# Normalize device if env still says "default"
|
||||||
if [[ "${AUDIO_DEVICE}" == "default" ]]; then
|
if [[ "${AUDIO_DEVICE}" == "default" ]]; then
|
||||||
AUDIO_DEVICE="plughw:0,0"
|
AUDIO_DEVICE="plughw:sndrpigooglevoicehat_soundcar,0"
|
||||||
fi
|
fi
|
||||||
# Flip the camera 180deg (supported by rpicam-vid/libcamera-vid)
|
# Flip the camera 180deg (supported by rpicam-vid/libcamera-vid)
|
||||||
FLIP_ARGS=(--rotation 180)
|
FLIP_ARGS=(--rotation 180)
|
||||||
|
|||||||
Reference in New Issue
Block a user