导入音频接口

This commit is contained in:
GuanYuankai 2025-10-21 18:16:57 +08:00
parent db25f3e3a0
commit 78a7c87762
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@ services:
devices:
- /dev/ttyS7:/dev/ttyS7
- /dev/ttyS9:/dev/ttyS9
- /dev/snd:/dev/snd
# --- VPU/NPU/RGA/GPU 硬件访问 ---
- /dev/mpp_service:/dev/mpp_service
@ -24,6 +25,7 @@ services:
- "20"
- "44"
- "110"
- "29"
volumes:
- .:/app

View File

@ -33,6 +33,9 @@ RUN apt-get update && \
gstreamer1.0-rockchip \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
alsa-utils \
libasound2-plugins \
gstreamer1.0-alsa \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
@ -50,9 +53,11 @@ RUN apt-get update && \
groupadd -g 20 dialout || true && \
groupadd -g 44 video || true && \
groupadd -g 110 render || true && \
groupadd -g 29 render || true && \
usermod -a -G dialout dev && \
usermod -a -G video dev && \
usermod -a -G render dev && \
usermod -a -G audio dev && \
echo "dev ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/dev-nopasswd
RUN echo "umask 0002" > /etc/profile.d/99-shared-umask.sh && \