From: Ziv Haziz Subject: loading mixer control values from a different file when opening an device Date: Sun, 1 Apr 2012 15:31:39 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by alsa0.perex.cz (Postfix) with ESMTP id C40652444C for ; Sun, 1 Apr 2012 17:35:05 +0200 (CEST) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SEMo3-0007nX-HI for alsa-devel@alsa-project.org; Sun, 01 Apr 2012 17:35:04 +0200 Received: from proxy29.messagelabs.net ([85.158.138.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Apr 2012 17:35:03 +0200 Received: from ziv.haziz by proxy29.messagelabs.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Apr 2012 17:35:03 +0200 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 Hi All, i'm using asound.conf file to define several devices where each one is configuring my sound device differently changing route, setting different volumes and etc) i would have like to load setting from a different file only when accessing the a specific device - something like this: pcm.MyDevice { type hooks slave.pcm { type hw device 0 } hooks.0 { type ctl_elems hook_args [ ] } so when someone will playback MyDevice it will call also hooks from the other file but i can't make it work, tried to use the alsa.conf as example - any example will be highly appreciated