From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Hofman Subject: Re: Order of device overrides in config files Date: Mon, 11 Jun 2018 15:18:57 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from cable.insite.cz (cable.insite.cz [84.242.75.189]) by alsa0.perex.cz (Postfix) with ESMTP id B2F55267196 for ; Mon, 11 Jun 2018 15:18:58 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jaroslav Kysela , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Dne 11.6.2018 v 14:20 Jaroslav Kysela napsal(a): > > It means operation mode 'override': > > http://www.alsa-project.org/alsa-doc/alsa-lib/conf.html > > By default, the operation mode is 'merge+create'. Hi Jaroslav, Thank you for the information and the link. In alsa.conf I see the order of config files which is same as my strace output reveals: @hooks [ { func load files [ { @func concat strings [ { @func datadir } "/alsa.conf.d/" ] } "/etc/asound.conf" "~/.asoundrc" ] errors false } ] The default device is overriden in pulse-alsa.conf which is called by hook_func.pulse_load_if_running defined in alsa.conf.d/pulse.conf read BEFORE processing my .asoundrc . Strace shows that reading pulse-alsa.conf occurs AFTER reading .asoundrc . It works as specified :-) Please would it make sense to call .asoundrc (somehow...) after all the config hooks were processed so that redefining the default device in the user's config actually works? Many users get confused by this behavior as it is not really obvious. No matter what they list in their .asoundrc (correctly following alsa documentation), the default device always ends up to be the pulse plugin. Thanks a lot for your time and opinion. Best regards, Pavel.