File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ void max_98373_set_codec_conf(struct snd_soc_card *card)
134134EXPORT_SYMBOL_NS (max_98373_set_codec_conf , SND_SOC_INTEL_SOF_MAXIM_COMMON );
135135
136136/*
137- * Maxim MAX98357A
137+ * Maxim MAX98357A/MAX98360A
138138 */
139139static const struct snd_kcontrol_new max_98357a_kcontrols [] = {
140140 SOC_DAPM_PIN_SWITCH ("Spk" ),
@@ -156,6 +156,13 @@ static struct snd_soc_dai_link_component max_98357a_components[] = {
156156 }
157157};
158158
159+ static struct snd_soc_dai_link_component max_98360a_components [] = {
160+ {
161+ .name = MAX_98360A_DEV0_NAME ,
162+ .dai_name = MAX_98357A_CODEC_DAI ,
163+ }
164+ };
165+
159166static int max_98357a_init (struct snd_soc_pcm_runtime * rtd )
160167{
161168 struct snd_soc_card * card = rtd -> card ;
@@ -193,5 +200,13 @@ void max_98357a_dai_link(struct snd_soc_dai_link *link)
193200}
194201EXPORT_SYMBOL_NS (max_98357a_dai_link , SND_SOC_INTEL_SOF_MAXIM_COMMON );
195202
203+ void max_98360a_dai_link (struct snd_soc_dai_link * link )
204+ {
205+ link -> codecs = max_98360a_components ;
206+ link -> num_codecs = ARRAY_SIZE (max_98360a_components );
207+ link -> init = max_98357a_init ;
208+ }
209+ EXPORT_SYMBOL_NS (max_98360a_dai_link , SND_SOC_INTEL_SOF_MAXIM_COMMON );
210+
196211MODULE_DESCRIPTION ("ASoC Intel SOF Maxim helpers" );
197212MODULE_LICENSE ("GPL" );
Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ void max_98373_set_codec_conf(struct snd_soc_card *card);
2525int max_98373_trigger (struct snd_pcm_substream * substream , int cmd );
2626
2727/*
28- * Maxim MAX98357A
28+ * Maxim MAX98357A/MAX98360A
2929 */
3030#define MAX_98357A_CODEC_DAI "HiFi"
3131#define MAX_98357A_DEV0_NAME "MX98357A:00"
32+ #define MAX_98360A_DEV0_NAME "MX98360A:00"
3233
3334void max_98357a_dai_link (struct snd_soc_dai_link * link );
35+ void max_98360a_dai_link (struct snd_soc_dai_link * link );
3436
3537#endif /* __SOF_MAXIM_COMMON_H */
You can’t perform that action at this time.
0 commit comments