ALSA: hda - Check the existing path in snd_hda_add_new_path()
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Jan 2013 12:19:55 +0000 (13:19 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:43:31 +0000 (08:43 +0100)
commitf5172a7ed966493414aa58319fbb7ab0a80cf889
tree0e22c823df8271bc93a0f55674c0f350c09bf4b3
parent1e0b528696edf20ad38f494dda49c6195bee1b7f
ALSA: hda - Check the existing path in snd_hda_add_new_path()

If the requested path has been already added, return the existing path
instance instead of adding a duplicated instance.

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