[alsa-devel] modify the 0x21 pin config for ADATout (STAC927x hda codec) ?

Takashi Iwai tiwai at suse.de
Tue Apr 14 15:33:02 CEST 2009

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
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.


More information about the Alsa-devel mailing list