alsa-tools/hda-verb
Jaroslav Kysela 38f7504af2 Change FSF address (Franklin Street)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2017-11-14 14:47:19 +01:00
..
ChangeLog Import hda-verb 0.4 to alsa-tools repo 2012-04-20 15:48:01 +02:00
configure.ac Modernize configure.ac 2014-06-12 11:28:22 +02:00
gitcompile Convert hda-verb to use automake 2012-04-20 15:56:45 +02:00
hda-verb.c Fix spelling of “successfully”. 2013-05-16 10:39:25 +02:00
hda_hwdep.h Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
Makefile.am hda-verb: Add missing MYNAME definition for packaging 2012-07-17 18:48:20 +02:00
README Import hda-verb 0.4 to alsa-tools repo 2012-04-20 15:48:01 +02:00

HDA-VERB -- Send a HD-audio command

hda-verb is a small program to send HD-audio commands to the given
ALSA hwdep device on the hd-audio interface.

First off, build HD-audio driver with hwdep support.  For the kernel
config, set CONFIG_SND_HDA_HWDEP=y.  When you build ALSA drivers from
alsa-driver tarball, usually this is set automatically.

Once snd-hda-intel driver is built with the hwdep support, you should
have a hwdep device such as /dev/snd/hwC0D0.

The program takes four arguments, the hwdep device name, the widget NID,
the verb and the parameter.  For example,

	% hda-verb /dev/snd/hwC0D0 0x12 0x701 2

The verb argument can be a string like "PARAMETERS".  Also the
parameter argument can be a string like "VENDOR_ID" as well.

	% hda-verb /dev/snd/hwC0D0 0x0 PARAMETERS VENDOR_ID

The string is case insensitive.  Also, it doesn't have to be the full
string but only has to be unique.  E.g. "par" is enough to mean
"PARAMETER", and "set_a" is enough as "SET_AMP_GAIN_MUTE".

	% hda-verb /dev/snd/hwC0D0 2 set_a 0xb080

The program executs the given verb, shows the result and quits.
Usually you need to be root to run this command.


*WARNING*
Use this program carefully.  Sending an invalid verb may screw up the
codec communication, which requires either a reboot or reloading of
the sound driver eventually.