[Unit]
Description=Audio Server Startup
After=tee-supplicant.service

[Service]
User=root
#vendor-image.bb will take action 'mkdir -p /vendor/lib; ln -sf /tmp/ds/0x4d_0x5331_0x32.so /vendor/lib/libdolbyms12.so'
ExecStartPre=-/bin/bash -c "mkdir -p /tmp/ds;touch /tmp/dms12.lock; /usr/bin/dolby_fw_dms12 /usr/lib/libdolbyms12.so /tmp/ds/0x4d_0x5331_0x32.so"
ExecStart=/usr/bin/audio_server
ExecStartPost=-/bin/bash -c "rm /tmp/dms12.lock;chmod 0666 /sys/class/amstream/reset_audio_port;chmod 0666 /sys/class/tsync/event"
Restart=always

[Install]
WantedBy=multi-user.target
