Blame hda-verb/README

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