Blame hda-verb/README

Packit Service b98cfc
HDA-VERB -- Send a HD-audio command
Packit Service b98cfc
Packit Service b98cfc
hda-verb is a small program to send HD-audio commands to the given
Packit Service b98cfc
ALSA hwdep device on the hd-audio interface.
Packit Service b98cfc
Packit Service b98cfc
First off, build HD-audio driver with hwdep support.  For the kernel
Packit Service b98cfc
config, set CONFIG_SND_HDA_HWDEP=y.  When you build ALSA drivers from
Packit Service b98cfc
alsa-driver tarball, usually this is set automatically.
Packit Service b98cfc
Packit Service b98cfc
Once snd-hda-intel driver is built with the hwdep support, you should
Packit Service b98cfc
have a hwdep device such as /dev/snd/hwC0D0.
Packit Service b98cfc
Packit Service b98cfc
The program takes four arguments, the hwdep device name, the widget NID,
Packit Service b98cfc
the verb and the parameter.  For example,
Packit Service b98cfc
Packit Service b98cfc
	% hda-verb /dev/snd/hwC0D0 0x12 0x701 2
Packit Service b98cfc
Packit Service b98cfc
The verb argument can be a string like "PARAMETERS".  Also the
Packit Service b98cfc
parameter argument can be a string like "VENDOR_ID" as well.
Packit Service b98cfc
Packit Service b98cfc
	% hda-verb /dev/snd/hwC0D0 0x0 PARAMETERS VENDOR_ID
Packit Service b98cfc
Packit Service b98cfc
The string is case insensitive.  Also, it doesn't have to be the full
Packit Service b98cfc
string but only has to be unique.  E.g. "par" is enough to mean
Packit Service b98cfc
"PARAMETER", and "set_a" is enough as "SET_AMP_GAIN_MUTE".
Packit Service b98cfc
Packit Service b98cfc
	% hda-verb /dev/snd/hwC0D0 2 set_a 0xb080
Packit Service b98cfc
Packit Service b98cfc
The program executs the given verb, shows the result and quits.
Packit Service b98cfc
Usually you need to be root to run this command.
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
*WARNING*
Packit Service b98cfc
Use this program carefully.  Sending an invalid verb may screw up the
Packit Service b98cfc
codec communication, which requires either a reboot or reloading of
Packit Service b98cfc
the sound driver eventually.