From: Takashi Iwai Subject: Re: [PATCH 0/4] hdspmixer: rescue current mixer settings when switching cards Date: Wed, 06 Apr 2011 08:28:28 +0200 Message-ID: References: <1301920470-4615-1-git-send-email-adi@drcomp.erfurt.thur.de> 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 8F30D10382D for ; Wed, 6 Apr 2011 08:28:29 +0200 (CEST) In-Reply-To: <1301920470-4615-1-git-send-email-adi@drcomp.erfurt.thur.de> 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: Adrian Knoth Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 4 Apr 2011 14:34:26 +0200, Adrian Knoth wrote: > > Hi! > > > This series of patches was developed for EMAtech. They discovered that > when running with multiple cards, switching between cards would lose all > current changes made to the last active card. > > Obviously, this is undesired behaviour. Though rather small, it nearly > took me 6hrs to get this right, and it could still be improved, but I > like to take hdspmixer into a completely different direction: > > I want to remove the card switching code completely and simply run a > single instance per card, that is, if you have more than one card, > you'll say something like hdspmixer -c 1 (or even a card name). > > Likewise, the preset files should then only contain the settings for a > single card. Right now, it stores everything for three cards, and if you > have four, then you'd be left in the rain. Also, when the order of cards > changes, the mixer settings would end up on the wrong card. But if you have single setup files, the card-order issue still applies, no? Though, I understand that a file-per-card is far easier to handle. > Long story short: the current approach is a dead-end. Go ahead! Anyway, I applied your patches now. Thanks. Takashi