Commit c4a58c30 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 1e73bf78
...@@ -435,7 +435,7 @@ static bool __parse_nid_path(struct hda_codec *codec, ...@@ -435,7 +435,7 @@ static bool __parse_nid_path(struct hda_codec *codec,
return true; return true;
} }
/** /*
* snd_hda_parse_nid_path - parse the widget path from the given nid to * snd_hda_parse_nid_path - parse the widget path from the given nid to
* the target nid * the target nid
* @codec: the HDA codec * @codec: the HDA codec
...@@ -454,7 +454,7 @@ static bool __parse_nid_path(struct hda_codec *codec, ...@@ -454,7 +454,7 @@ static bool __parse_nid_path(struct hda_codec *codec,
* with the negative of given value are excluded, only other paths are chosen. * with the negative of given value are excluded, only other paths are chosen.
* when @anchor_nid is zero, no special handling about path selection. * when @anchor_nid is zero, no special handling about path selection.
*/ */
bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, static bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid,
hda_nid_t to_nid, int anchor_nid, hda_nid_t to_nid, int anchor_nid,
struct nid_path *path) struct nid_path *path)
{ {
...@@ -465,7 +465,6 @@ bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, ...@@ -465,7 +465,6 @@ bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid,
} }
return false; return false;
} }
EXPORT_SYMBOL_GPL(snd_hda_parse_nid_path);
/** /**
* snd_hda_add_new_path - parse the path between the given NIDs and * snd_hda_add_new_path - parse the path between the given NIDs and
......
...@@ -308,9 +308,6 @@ void snd_hda_gen_free(struct hda_codec *codec); ...@@ -308,9 +308,6 @@ void snd_hda_gen_free(struct hda_codec *codec);
int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path); int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path);
struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx); struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx);
bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid,
hda_nid_t to_nid, int anchor_nid,
struct nid_path *path);
struct nid_path * struct nid_path *
snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid,
hda_nid_t to_nid, int anchor_nid); hda_nid_t to_nid, int anchor_nid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment