1#!/usr/bin/pulseaudio -nF 2# Copyright (c) 2024 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# This file is part of PulseAudio. 16# 17# PulseAudio is free software; you can redistribute it and/or modify it 18# under the terms of the GNU Lesser General Public License as published by 19# the Free Software Foundation; either version 2 of the License, or 20# (at your option) any later version. 21# 22# PulseAudio is distributed in the hope that it will be useful, but 23# WITHOUT ANY WARRANTY; without even the implied warranty of 24# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25# General Public License for more details. 26# 27# You should have received a copy of the GNU Lesser General Public License 28# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 29 30# This startup script is used only if PulseAudio is started per-user 31# (i.e. not in system mode) 32 33.fail 34 35# Load mandatory modules 36load-module libmodule-native-protocol-unix.z.so auth-cookie=/data/data/.pulse_dir/state/cookie socket=/dev/unix/socket/native 37 38# the module for command line operation like pacmd 39# load-module libmodule-cli-protocol-unix.z.so 40 41### Load audio drivers statically 42### (it's probably better to not load these drivers manually, but instead 43### use module-udev-detect -- see below -- for doing this automatically) 44load-module libmodule-suspend-on-idle.z.so timeout=3 45 46### Make some devices default 47set-default-sink Speaker 48#set-default-source input 49