From: Takashi Iwai Subject: Re: modify the 0x21 pin config for ADATout (STAC927x hda codec) ? Date: Tue, 14 Apr 2009 15:33:02 +0200 Message-ID: References: <4969FBA0.1030008@ponctey.fr> <496B3BB7.1020203@ponctey.fr> <496E7FE7.8020706@embeddedalley.com> <16A430A423D62246A24C9A892622FE668D5227@CORPEXCH1.na.ads.idt.com> <498A1EBC.9060203@ponctey.fr> <49D17798.6040205@ponctey.fr> <49D95CF7.2070503@ponctey.fr> 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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 63EFE2433C for ; Tue, 14 Apr 2009 15:33:02 +0200 (CEST) In-Reply-To: <49D95CF7.2070503@ponctey.fr> 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: Eric Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 06 Apr 2009 03:37:59 +0200, Eric wrote: > > Please somebody give me a simple way so as to have my 0x21 node Pin > config change > from my current (Default) 0x01452150: [Jack] SPDIF Out > to the aimed 0x01552150 With the very latest alsa-driver, you can change the pin defcfg value via sysfs. Grab the alsa-driver snapshot tarball below ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz Build it and install it. Then you'll have the files user_pin_configs in /sys/class/sound/hwC0D* directory. Write the NID and the value to this file as root. # echo 0x21 0x1552150 > /sys/class/sound/hwC0D0/user_pin_configs Then re-configure the setup by writing 1 to reconfig file there: # echo 0x21 0x1552150 > /sys/class/sound/hwC0D0/reconfig Run "alsactl restore" to restore the mixer status after that. Takashi