From: Takashi Iwai Subject: [PATCH 1/3] Define "sysdefault" PCM and control Date: Tue, 26 Jul 2011 14:34:11 +0200 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6FBC61038BC for ; Tue, 26 Jul 2011 14:34:11 +0200 (CEST) Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 482B88F9AB for ; Tue, 26 Jul 2011 14:34:11 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org When "default" PCM and control definitions are overwritten by others like PulseAudio setup, the original system-default defition is lost. This is a problem when PA is temporarily (or intentionally) disabled and user wants to use the default dmix. This patch adds a new standard definition for the system-default, "sysdefault". This can be used for fallbacks. Signed-off-by: Takashi Iwai --- src/conf/alsa.conf | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/conf/alsa.conf b/src/conf/alsa.conf index 1889f01..f039e3d 100644 --- a/src/conf/alsa.conf +++ b/src/conf/alsa.conf @@ -118,7 +118,8 @@ defaults.timer.subdevice 0 # redirect to load-on-demand extended pcm definitions pcm.cards cards.pcm -pcm.default cards.pcm.default +pcm.sysdefault cards.pcm.default +pcm.default pcm.sysdefault pcm.front cards.pcm.front pcm.rear cards.pcm.rear pcm.center_lfe cards.pcm.center_lfe @@ -321,7 +322,7 @@ pcm.null { # Control interface # -ctl.default { +ctl.sysdefault { type hw card { @func getenv @@ -335,6 +336,7 @@ ctl.default { } } } +ctl.default ctl.sysdefault ctl.hw { @args [ CARD ] -- 1.7.6