Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2698ea98 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Kill EXPORT_SYMBOL_HDA()



Replace all with the standard EXPORT_SYMBOL_GPL().

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 595fe1b7
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -414,7 +414,7 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,


	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_parse_pin_defcfg);
EXPORT_SYMBOL_GPL(snd_hda_parse_pin_defcfg);


int snd_hda_get_input_pin_attr(unsigned int def_conf)
int snd_hda_get_input_pin_attr(unsigned int def_conf)
{
{
@@ -435,7 +435,7 @@ int snd_hda_get_input_pin_attr(unsigned int def_conf)
		return INPUT_PIN_ATTR_FRONT;
		return INPUT_PIN_ATTR_FRONT;
	return INPUT_PIN_ATTR_NORMAL;
	return INPUT_PIN_ATTR_NORMAL;
}
}
EXPORT_SYMBOL_HDA(snd_hda_get_input_pin_attr);
EXPORT_SYMBOL_GPL(snd_hda_get_input_pin_attr);


/**
/**
 * hda_get_input_pin_label - Give a label for the given input pin
 * hda_get_input_pin_label - Give a label for the given input pin
@@ -547,7 +547,7 @@ const char *hda_get_autocfg_input_label(struct hda_codec *codec,
				       cfg->inputs[input].pin,
				       cfg->inputs[input].pin,
				       has_multiple_pins);
				       has_multiple_pins);
}
}
EXPORT_SYMBOL_HDA(hda_get_autocfg_input_label);
EXPORT_SYMBOL_GPL(hda_get_autocfg_input_label);


/* return the position of NID in the list, or -1 if not found */
/* return the position of NID in the list, or -1 if not found */
static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums)
static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums)
@@ -721,7 +721,7 @@ int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
	strlcpy(label, name, maxlen);
	strlcpy(label, name, maxlen);
	return 1;
	return 1;
}
}
EXPORT_SYMBOL_HDA(snd_hda_get_pin_label);
EXPORT_SYMBOL_GPL(snd_hda_get_pin_label);


int snd_hda_add_verbs(struct hda_codec *codec,
int snd_hda_add_verbs(struct hda_codec *codec,
		      const struct hda_verb *list)
		      const struct hda_verb *list)
@@ -733,7 +733,7 @@ int snd_hda_add_verbs(struct hda_codec *codec,
	*v = list;
	*v = list;
	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_add_verbs);
EXPORT_SYMBOL_GPL(snd_hda_add_verbs);


void snd_hda_apply_verbs(struct hda_codec *codec)
void snd_hda_apply_verbs(struct hda_codec *codec)
{
{
@@ -743,7 +743,7 @@ void snd_hda_apply_verbs(struct hda_codec *codec)
		snd_hda_sequence_write(codec, *v);
		snd_hda_sequence_write(codec, *v);
	}
	}
}
}
EXPORT_SYMBOL_HDA(snd_hda_apply_verbs);
EXPORT_SYMBOL_GPL(snd_hda_apply_verbs);


void snd_hda_apply_pincfgs(struct hda_codec *codec,
void snd_hda_apply_pincfgs(struct hda_codec *codec,
			   const struct hda_pintbl *cfg)
			   const struct hda_pintbl *cfg)
@@ -751,7 +751,7 @@ void snd_hda_apply_pincfgs(struct hda_codec *codec,
	for (; cfg->nid; cfg++)
	for (; cfg->nid; cfg++)
		snd_hda_codec_set_pincfg(codec, cfg->nid, cfg->val);
		snd_hda_codec_set_pincfg(codec, cfg->nid, cfg->val);
}
}
EXPORT_SYMBOL_HDA(snd_hda_apply_pincfgs);
EXPORT_SYMBOL_GPL(snd_hda_apply_pincfgs);


static void set_pin_targets(struct hda_codec *codec,
static void set_pin_targets(struct hda_codec *codec,
			    const struct hda_pintbl *cfg)
			    const struct hda_pintbl *cfg)
@@ -822,7 +822,7 @@ void snd_hda_apply_fixup(struct hda_codec *codec, int action)
	if (codec->fixup_list)
	if (codec->fixup_list)
		apply_fixup(codec, codec->fixup_id, action, 0);
		apply_fixup(codec, codec->fixup_id, action, 0);
}
}
EXPORT_SYMBOL_HDA(snd_hda_apply_fixup);
EXPORT_SYMBOL_GPL(snd_hda_apply_fixup);


void snd_hda_pick_fixup(struct hda_codec *codec,
void snd_hda_pick_fixup(struct hda_codec *codec,
			const struct hda_model_fixup *models,
			const struct hda_model_fixup *models,
@@ -880,4 +880,4 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
		codec->fixup_name = name;
		codec->fixup_name = name;
	}
	}
}
}
EXPORT_SYMBOL_HDA(snd_hda_pick_fixup);
EXPORT_SYMBOL_GPL(snd_hda_pick_fixup);
+5 −5
Original line number Original line Diff line number Diff line
@@ -194,7 +194,7 @@ int snd_hda_enable_beep_device(struct hda_codec *codec, int enable)
	}
	}
	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_enable_beep_device);
EXPORT_SYMBOL_GPL(snd_hda_enable_beep_device);


int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
{
{
@@ -231,7 +231,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)


	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_attach_beep_device);
EXPORT_SYMBOL_GPL(snd_hda_attach_beep_device);


void snd_hda_detach_beep_device(struct hda_codec *codec)
void snd_hda_detach_beep_device(struct hda_codec *codec)
{
{
@@ -243,7 +243,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)
		kfree(beep);
		kfree(beep);
	}
	}
}
}
EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device);
EXPORT_SYMBOL_GPL(snd_hda_detach_beep_device);


static bool ctl_has_mute(struct snd_kcontrol *kcontrol)
static bool ctl_has_mute(struct snd_kcontrol *kcontrol)
{
{
@@ -265,7 +265,7 @@ int snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol,
	}
	}
	return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol);
	return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol);
}
}
EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_get_beep);
EXPORT_SYMBOL_GPL(snd_hda_mixer_amp_switch_get_beep);


int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol,
int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol,
				      struct snd_ctl_elem_value *ucontrol)
				      struct snd_ctl_elem_value *ucontrol)
@@ -288,4 +288,4 @@ int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol,
		return 0;
		return 0;
	return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
	return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
}
}
EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put_beep);
EXPORT_SYMBOL_GPL(snd_hda_mixer_amp_switch_put_beep);
+107 −107

File changed.

Preview size limit exceeded, changes collapsed.

+22 −22
Original line number Original line Diff line number Diff line
@@ -48,7 +48,7 @@ int snd_hda_gen_spec_init(struct hda_gen_spec *spec)
	mutex_init(&spec->pcm_mutex);
	mutex_init(&spec->pcm_mutex);
	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_spec_init);
EXPORT_SYMBOL_GPL(snd_hda_gen_spec_init);


struct snd_kcontrol_new *
struct snd_kcontrol_new *
snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name,
snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name,
@@ -66,7 +66,7 @@ snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name,
		return NULL;
		return NULL;
	return knew;
	return knew;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_add_kctl);
EXPORT_SYMBOL_GPL(snd_hda_gen_add_kctl);


static void free_kctls(struct hda_gen_spec *spec)
static void free_kctls(struct hda_gen_spec *spec)
{
{
@@ -87,7 +87,7 @@ void snd_hda_gen_spec_free(struct hda_gen_spec *spec)
	snd_array_free(&spec->paths);
	snd_array_free(&spec->paths);
	snd_array_free(&spec->loopback_list);
	snd_array_free(&spec->loopback_list);
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_spec_free);
EXPORT_SYMBOL_GPL(snd_hda_gen_spec_free);


/*
/*
 * store user hints
 * store user hints
@@ -267,7 +267,7 @@ struct nid_path *snd_hda_get_nid_path(struct hda_codec *codec,
{
{
	return get_nid_path(codec, from_nid, to_nid, 0);
	return get_nid_path(codec, from_nid, to_nid, 0);
}
}
EXPORT_SYMBOL_HDA(snd_hda_get_nid_path);
EXPORT_SYMBOL_GPL(snd_hda_get_nid_path);


/* get the index number corresponding to the path instance;
/* get the index number corresponding to the path instance;
 * the index starts from 1, for easier checking the invalid value
 * the index starts from 1, for easier checking the invalid value
@@ -285,7 +285,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);
EXPORT_SYMBOL_GPL(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)
@@ -296,7 +296,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);
EXPORT_SYMBOL_GPL(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)
@@ -433,7 +433,7 @@ bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid,
	}
	}
	return false;
	return false;
}
}
EXPORT_SYMBOL_HDA(snd_hda_parse_nid_path);
EXPORT_SYMBOL_GPL(snd_hda_parse_nid_path);


/*
/*
 * parse the path between the given NIDs and add to the path list.
 * parse the path between the given NIDs and add to the path list.
@@ -464,7 +464,7 @@ snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid,
	spec->paths.used--;
	spec->paths.used--;
	return NULL;
	return NULL;
}
}
EXPORT_SYMBOL_HDA(snd_hda_add_new_path);
EXPORT_SYMBOL_GPL(snd_hda_add_new_path);


/* clear the given path as invalid so that it won't be picked up later */
/* clear the given path as invalid so that it won't be picked up later */
static void invalidate_nid_path(struct hda_codec *codec, int idx)
static void invalidate_nid_path(struct hda_codec *codec, int idx)
@@ -774,7 +774,7 @@ void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path,
	if (enable)
	if (enable)
		path->active = true;
		path->active = true;
}
}
EXPORT_SYMBOL_HDA(snd_hda_activate_path);
EXPORT_SYMBOL_GPL(snd_hda_activate_path);


/* if the given path is inactive, put widgets into D3 (only if suitable) */
/* if the given path is inactive, put widgets into D3 (only if suitable) */
static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path)
static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path)
@@ -1150,7 +1150,7 @@ const struct badness_table hda_main_out_badness = {
	.shared_clfe = BAD_SHARED_CLFE,
	.shared_clfe = BAD_SHARED_CLFE,
	.shared_surr_main = BAD_SHARED_SURROUND,
	.shared_surr_main = BAD_SHARED_SURROUND,
};
};
EXPORT_SYMBOL_HDA(hda_main_out_badness);
EXPORT_SYMBOL_GPL(hda_main_out_badness);


const struct badness_table hda_extra_out_badness = {
const struct badness_table hda_extra_out_badness = {
	.no_primary_dac = BAD_NO_DAC,
	.no_primary_dac = BAD_NO_DAC,
@@ -1160,7 +1160,7 @@ const struct badness_table hda_extra_out_badness = {
	.shared_clfe = BAD_SHARED_EXTRA_SURROUND,
	.shared_clfe = BAD_SHARED_EXTRA_SURROUND,
	.shared_surr_main = BAD_NO_EXTRA_SURR_DAC,
	.shared_surr_main = BAD_NO_EXTRA_SURR_DAC,
};
};
EXPORT_SYMBOL_HDA(hda_extra_out_badness);
EXPORT_SYMBOL_GPL(hda_extra_out_badness);


/* get the DAC of the primary output corresponding to the given array index */
/* get the DAC of the primary output corresponding to the given array index */
static hda_nid_t get_primary_out(struct hda_codec *codec, int idx)
static hda_nid_t get_primary_out(struct hda_codec *codec, int idx)
@@ -3921,7 +3921,7 @@ void snd_hda_gen_update_outputs(struct hda_codec *codec)
	do_automute(codec, ARRAY_SIZE(spec->autocfg.line_out_pins),
	do_automute(codec, ARRAY_SIZE(spec->autocfg.line_out_pins),
		    spec->autocfg.line_out_pins, paths, on);
		    spec->autocfg.line_out_pins, paths, on);
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_update_outputs);
EXPORT_SYMBOL_GPL(snd_hda_gen_update_outputs);


static void call_update_outputs(struct hda_codec *codec)
static void call_update_outputs(struct hda_codec *codec)
{
{
@@ -3954,7 +3954,7 @@ void snd_hda_gen_hp_automute(struct hda_codec *codec, struct hda_jack_tbl *jack)
		return;
		return;
	call_update_outputs(codec);
	call_update_outputs(codec);
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_hp_automute);
EXPORT_SYMBOL_GPL(snd_hda_gen_hp_automute);


/* standard line-out-automute helper */
/* standard line-out-automute helper */
void snd_hda_gen_line_automute(struct hda_codec *codec, struct hda_jack_tbl *jack)
void snd_hda_gen_line_automute(struct hda_codec *codec, struct hda_jack_tbl *jack)
@@ -3974,7 +3974,7 @@ void snd_hda_gen_line_automute(struct hda_codec *codec, struct hda_jack_tbl *jac
		return;
		return;
	call_update_outputs(codec);
	call_update_outputs(codec);
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_line_automute);
EXPORT_SYMBOL_GPL(snd_hda_gen_line_automute);


/* standard mic auto-switch helper */
/* standard mic auto-switch helper */
void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, struct hda_jack_tbl *jack)
void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, struct hda_jack_tbl *jack)
@@ -3997,7 +3997,7 @@ void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, struct hda_jack_tbl *ja
	}
	}
	mux_select(codec, 0, spec->am_entry[0].idx);
	mux_select(codec, 0, spec->am_entry[0].idx);
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_mic_autoswitch);
EXPORT_SYMBOL_GPL(snd_hda_gen_mic_autoswitch);


/* call appropriate hooks */
/* call appropriate hooks */
static void call_hp_automute(struct hda_codec *codec, struct hda_jack_tbl *jack)
static void call_hp_automute(struct hda_codec *codec, struct hda_jack_tbl *jack)
@@ -4513,7 +4513,7 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec,


	return 1;
	return 1;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_parse_auto_config);
EXPORT_SYMBOL_GPL(snd_hda_gen_parse_auto_config);




/*
/*
@@ -4595,7 +4595,7 @@ int snd_hda_gen_build_controls(struct hda_codec *codec)


	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_build_controls);
EXPORT_SYMBOL_GPL(snd_hda_gen_build_controls);




/*
/*
@@ -5128,7 +5128,7 @@ int snd_hda_gen_build_pcms(struct hda_codec *codec)


	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_build_pcms);
EXPORT_SYMBOL_GPL(snd_hda_gen_build_pcms);




/*
/*
@@ -5339,7 +5339,7 @@ int snd_hda_gen_init(struct hda_codec *codec)
	hda_call_check_power_status(codec, 0x01);
	hda_call_check_power_status(codec, 0x01);
	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_init);
EXPORT_SYMBOL_GPL(snd_hda_gen_init);


/*
/*
 * free the generic spec;
 * free the generic spec;
@@ -5352,7 +5352,7 @@ void snd_hda_gen_free(struct hda_codec *codec)
	kfree(codec->spec);
	kfree(codec->spec);
	codec->spec = NULL;
	codec->spec = NULL;
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_free);
EXPORT_SYMBOL_GPL(snd_hda_gen_free);


#ifdef CONFIG_PM
#ifdef CONFIG_PM
/*
/*
@@ -5364,7 +5364,7 @@ int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid)
	struct hda_gen_spec *spec = codec->spec;
	struct hda_gen_spec *spec = codec->spec;
	return snd_hda_check_amp_list_power(codec, &spec->loopback, nid);
	return snd_hda_check_amp_list_power(codec, &spec->loopback, nid);
}
}
EXPORT_SYMBOL_HDA(snd_hda_gen_check_power_status);
EXPORT_SYMBOL_GPL(snd_hda_gen_check_power_status);
#endif
#endif




@@ -5409,7 +5409,7 @@ error:
	snd_hda_gen_free(codec);
	snd_hda_gen_free(codec);
	return err;
	return err;
}
}
EXPORT_SYMBOL_HDA(snd_hda_parse_generic_codec);
EXPORT_SYMBOL_GPL(snd_hda_parse_generic_codec);


MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Generic HD-audio codec parser");
MODULE_DESCRIPTION("Generic HD-audio codec parser");
+4 −4
Original line number Original line Diff line number Diff line
@@ -616,7 +616,7 @@ const char *snd_hda_get_hint(struct hda_codec *codec, const char *key)
	struct hda_hint *hint = get_hint(codec, key);
	struct hda_hint *hint = get_hint(codec, key);
	return hint ? hint->val : NULL;
	return hint ? hint->val : NULL;
}
}
EXPORT_SYMBOL_HDA(snd_hda_get_hint);
EXPORT_SYMBOL_GPL(snd_hda_get_hint);


int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key)
int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key)
{
{
@@ -642,7 +642,7 @@ int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key)
	mutex_unlock(&codec->user_mutex);
	mutex_unlock(&codec->user_mutex);
	return ret;
	return ret;
}
}
EXPORT_SYMBOL_HDA(snd_hda_get_bool_hint);
EXPORT_SYMBOL_GPL(snd_hda_get_bool_hint);


int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp)
int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp)
{
{
@@ -663,7 +663,7 @@ int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp)
	mutex_unlock(&codec->user_mutex);
	mutex_unlock(&codec->user_mutex);
	return ret;
	return ret;
}
}
EXPORT_SYMBOL_HDA(snd_hda_get_int_hint);
EXPORT_SYMBOL_GPL(snd_hda_get_int_hint);
#endif /* CONFIG_SND_HDA_RECONFIG */
#endif /* CONFIG_SND_HDA_RECONFIG */


#ifdef CONFIG_SND_HDA_PATCH_LOADER
#ifdef CONFIG_SND_HDA_PATCH_LOADER
@@ -851,5 +851,5 @@ int snd_hda_load_patch(struct hda_bus *bus, size_t fw_size, const void *fw_buf)
	}
	}
	return 0;
	return 0;
}
}
EXPORT_SYMBOL_HDA(snd_hda_load_patch);
EXPORT_SYMBOL_GPL(snd_hda_load_patch);
#endif /* CONFIG_SND_HDA_PATCH_LOADER */
#endif /* CONFIG_SND_HDA_PATCH_LOADER */
Loading