Loading sound/pci/hda/hda_generic.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -261,6 +261,7 @@ int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) return 0; return 0; return idx + 1; return idx + 1; } } EXPORT_SYMBOL_HDA(snd_hda_get_path_idx); /* get the path instance corresponding to the given index number */ /* get the path instance corresponding to the given index number */ 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) Loading @@ -271,6 +272,7 @@ struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) return NULL; return NULL; return snd_array_elem(&spec->paths, idx - 1); return snd_array_elem(&spec->paths, idx - 1); } } EXPORT_SYMBOL_HDA(snd_hda_get_path_from_idx); /* check whether the given DAC is already found in any existing paths */ /* check whether the given DAC is already found in any existing paths */ static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) Loading Loading
sound/pci/hda/hda_generic.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -261,6 +261,7 @@ int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) return 0; return 0; return idx + 1; return idx + 1; } } EXPORT_SYMBOL_HDA(snd_hda_get_path_idx); /* get the path instance corresponding to the given index number */ /* get the path instance corresponding to the given index number */ 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) Loading @@ -271,6 +272,7 @@ struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) return NULL; return NULL; return snd_array_elem(&spec->paths, idx - 1); return snd_array_elem(&spec->paths, idx - 1); } } EXPORT_SYMBOL_HDA(snd_hda_get_path_from_idx); /* check whether the given DAC is already found in any existing paths */ /* check whether the given DAC is already found in any existing paths */ static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) Loading