@@ -39,14 +39,16 @@ static unsigned int get_num_codecs(const char *hid)
39
39
return dev_num ;
40
40
}
41
41
42
+ /*
43
+ * Maxim MAX98373
44
+ */
42
45
#define MAX_98373_PIN_NAME 16
43
46
44
- const struct snd_soc_dapm_route max_98373_dapm_routes [] = {
47
+ static const struct snd_soc_dapm_route max_98373_dapm_routes [] = {
45
48
/* speaker */
46
49
{ "Left Spk" , NULL , "Left BE_OUT" },
47
50
{ "Right Spk" , NULL , "Right BE_OUT" },
48
51
};
49
- EXPORT_SYMBOL_NS (max_98373_dapm_routes , SND_SOC_INTEL_SOF_MAXIM_COMMON );
50
52
51
53
static struct snd_soc_codec_conf max_98373_codec_conf [] = {
52
54
{
@@ -59,7 +61,7 @@ static struct snd_soc_codec_conf max_98373_codec_conf[] = {
59
61
},
60
62
};
61
63
62
- struct snd_soc_dai_link_component max_98373_components [] = {
64
+ static struct snd_soc_dai_link_component max_98373_components [] = {
63
65
{ /* For Right */
64
66
.name = MAX_98373_DEV0_NAME ,
65
67
.dai_name = MAX_98373_CODEC_DAI ,
@@ -69,7 +71,6 @@ struct snd_soc_dai_link_component max_98373_components[] = {
69
71
.dai_name = MAX_98373_CODEC_DAI ,
70
72
},
71
73
};
72
- EXPORT_SYMBOL_NS (max_98373_components , SND_SOC_INTEL_SOF_MAXIM_COMMON );
73
74
74
75
static int max_98373_hw_params (struct snd_pcm_substream * substream ,
75
76
struct snd_pcm_hw_params * params )
@@ -96,7 +97,7 @@ static int max_98373_hw_params(struct snd_pcm_substream *substream,
96
97
return 0 ;
97
98
}
98
99
99
- int max_98373_trigger (struct snd_pcm_substream * substream , int cmd )
100
+ static int max_98373_trigger (struct snd_pcm_substream * substream , int cmd )
100
101
{
101
102
struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd (substream );
102
103
struct snd_soc_dai * codec_dai ;
@@ -139,15 +140,13 @@ int max_98373_trigger(struct snd_pcm_substream *substream, int cmd)
139
140
140
141
return ret ;
141
142
}
142
- EXPORT_SYMBOL_NS (max_98373_trigger , SND_SOC_INTEL_SOF_MAXIM_COMMON );
143
143
144
- struct snd_soc_ops max_98373_ops = {
144
+ static const struct snd_soc_ops max_98373_ops = {
145
145
.hw_params = max_98373_hw_params ,
146
146
.trigger = max_98373_trigger ,
147
147
};
148
- EXPORT_SYMBOL_NS (max_98373_ops , SND_SOC_INTEL_SOF_MAXIM_COMMON );
149
148
150
- int max_98373_spk_codec_init (struct snd_soc_pcm_runtime * rtd )
149
+ static int max_98373_spk_codec_init (struct snd_soc_pcm_runtime * rtd )
151
150
{
152
151
struct snd_soc_card * card = rtd -> card ;
153
152
unsigned int num_codecs = get_num_codecs (MAX_98373_ACPI_HID );
@@ -186,7 +185,6 @@ int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd)
186
185
187
186
return ret ;
188
187
}
189
- EXPORT_SYMBOL_NS (max_98373_spk_codec_init , SND_SOC_INTEL_SOF_MAXIM_COMMON );
190
188
191
189
void max_98373_dai_link (struct device * dev , struct snd_soc_dai_link * link )
192
190
{
0 commit comments