Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda - Make snd_hda_parse_nid_path() local

An exported function snd_hda_parse_nid_path() is used only inside
hda_generic.c. Let's make it a static local function for a better
code optimization.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2 -6
+2 -3
sound/pci/hda/hda_generic.c
··· 435 435 return true; 436 436 } 437 437 438 - /** 438 + /* 439 439 * snd_hda_parse_nid_path - parse the widget path from the given nid to 440 440 * the target nid 441 441 * @codec: the HDA codec ··· 454 454 * with the negative of given value are excluded, only other paths are chosen. 455 455 * when @anchor_nid is zero, no special handling about path selection. 456 456 */ 457 - bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, 457 + static bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, 458 458 hda_nid_t to_nid, int anchor_nid, 459 459 struct nid_path *path) 460 460 { ··· 465 465 } 466 466 return false; 467 467 } 468 - EXPORT_SYMBOL_GPL(snd_hda_parse_nid_path); 469 468 470 469 /** 471 470 * snd_hda_add_new_path - parse the path between the given NIDs and
-3
sound/pci/hda/hda_generic.h
··· 308 308 309 309 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path); 310 310 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx); 311 - bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, 312 - hda_nid_t to_nid, int anchor_nid, 313 - struct nid_path *path); 314 311 struct nid_path * 315 312 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, 316 313 hda_nid_t to_nid, int anchor_nid);