]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Manage using output/loopback path indices
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Jan 2013 14:01:40 +0000 (15:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:43:37 +0000 (08:43 +0100)
commit75bb4ea3738be8b6048fdac22daba423055f8c85
tree36fe0f1463d530d762d886cffff4cda258c03d62
parentd7ebc02c859fa997f6d3c40918cc9ef2e83a0e52
ALSA: hda - Manage using output/loopback path indices

Instead of search for the path with the certain route at each time,
keep the path index for each output and loopback, and just use it when
referred.

In this implementation, the path index number begins with one, not
zero (although I've been writing in C over decades).  It's just to
make the check for uninitialized values easier.

So far, the input paths aren't handled with indices yet, but still
picked up via snd_hda_get_nid_path() at each time.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h