1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel Broxton-P I2S Machine Driver
5 * Copyright (C) 2016, Intel Corporation. All rights reserved.
8 * Intel Skylake I2S Machine driver
11 #include <linux/input.h>
12 #include <linux/module.h>
13 #include <linux/platform_device.h>
14 #include <sound/core.h>
15 #include <sound/jack.h>
16 #include <sound/pcm.h>
17 #include <sound/pcm_params.h>
18 #include <sound/soc.h>
19 #include <sound/soc-acpi.h>
20 #include "../../codecs/hdac_hdmi.h"
21 #include "../../codecs/da7219.h"
22 #include "../../codecs/da7219-aad.h"
23 #include "../common/soc-intel-quirks.h"
25 #define BXT_DIALOG_CODEC_DAI "da7219-hifi"
26 #define BXT_MAXIM_CODEC_DAI "HiFi"
27 #define DUAL_CHANNEL 2
28 #define QUAD_CHANNEL 4
30 static struct snd_soc_jack broxton_headset;
31 static struct snd_soc_jack broxton_hdmi[3];
34 struct list_head head;
35 struct snd_soc_dai *codec_dai;
39 struct bxt_card_private {
40 struct list_head hdmi_pcm_list;
44 BXT_DPCM_AUDIO_PB = 0,
47 BXT_DPCM_AUDIO_REF_CP,
48 BXT_DPCM_AUDIO_DMIC_CP,
49 BXT_DPCM_AUDIO_HDMI1_PB,
50 BXT_DPCM_AUDIO_HDMI2_PB,
51 BXT_DPCM_AUDIO_HDMI3_PB,
54 static int platform_clock_control(struct snd_soc_dapm_widget *w,
55 struct snd_kcontrol *k, int event)
58 struct snd_soc_dapm_context *dapm = w->dapm;
59 struct snd_soc_card *card = dapm->card;
60 struct snd_soc_dai *codec_dai;
62 codec_dai = snd_soc_card_get_codec_dai(card, BXT_DIALOG_CODEC_DAI);
64 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n");
68 if (SND_SOC_DAPM_EVENT_OFF(event)) {
69 ret = snd_soc_dai_set_pll(codec_dai, 0,
70 DA7219_SYSCLK_MCLK, 0, 0);
72 dev_err(card->dev, "failed to stop PLL: %d\n", ret);
73 } else if(SND_SOC_DAPM_EVENT_ON(event)) {
74 ret = snd_soc_dai_set_pll(codec_dai, 0,
75 DA7219_SYSCLK_PLL_SRM, 0, DA7219_PLL_FREQ_OUT_98304);
77 dev_err(card->dev, "failed to start PLL: %d\n", ret);
83 static const struct snd_kcontrol_new broxton_controls[] = {
84 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
85 SOC_DAPM_PIN_SWITCH("Headset Mic"),
86 SOC_DAPM_PIN_SWITCH("Spk"),
89 static const struct snd_soc_dapm_widget broxton_widgets[] = {
90 SND_SOC_DAPM_HP("Headphone Jack", NULL),
91 SND_SOC_DAPM_MIC("Headset Mic", NULL),
92 SND_SOC_DAPM_SPK("Spk", NULL),
93 SND_SOC_DAPM_MIC("SoC DMIC", NULL),
94 SND_SOC_DAPM_SPK("HDMI1", NULL),
95 SND_SOC_DAPM_SPK("HDMI2", NULL),
96 SND_SOC_DAPM_SPK("HDMI3", NULL),
97 SND_SOC_DAPM_SUPPLY("Platform Clock", SND_SOC_NOPM, 0, 0,
98 platform_clock_control, SND_SOC_DAPM_POST_PMD|SND_SOC_DAPM_PRE_PMU),
101 static const struct snd_soc_dapm_route audio_map[] = {
102 /* HP jack connectors - unknown if we have jack detection */
103 {"Headphone Jack", NULL, "HPL"},
104 {"Headphone Jack", NULL, "HPR"},
107 {"Spk", NULL, "Speaker"},
110 {"MIC", NULL, "Headset Mic"},
113 {"DMic", NULL, "SoC DMIC"},
115 /* CODEC BE connections */
116 {"HDMI1", NULL, "hif5-0 Output"},
117 {"HDMI2", NULL, "hif6-0 Output"},
118 {"HDMI2", NULL, "hif7-0 Output"},
120 {"hifi3", NULL, "iDisp3 Tx"},
121 {"iDisp3 Tx", NULL, "iDisp3_out"},
122 {"hifi2", NULL, "iDisp2 Tx"},
123 {"iDisp2 Tx", NULL, "iDisp2_out"},
124 {"hifi1", NULL, "iDisp1 Tx"},
125 {"iDisp1 Tx", NULL, "iDisp1_out"},
128 {"dmic01_hifi", NULL, "DMIC01 Rx"},
129 {"DMIC01 Rx", NULL, "DMIC AIF"},
131 { "Headphone Jack", NULL, "Platform Clock" },
132 { "Headset Mic", NULL, "Platform Clock" },
135 static const struct snd_soc_dapm_route broxton_map[] = {
136 {"HiFi Playback", NULL, "ssp5 Tx"},
137 {"ssp5 Tx", NULL, "codec0_out"},
139 {"Playback", NULL, "ssp1 Tx"},
140 {"ssp1 Tx", NULL, "codec1_out"},
142 {"codec0_in", NULL, "ssp1 Rx"},
143 {"ssp1 Rx", NULL, "Capture"},
146 static const struct snd_soc_dapm_route gemini_map[] = {
147 {"HiFi Playback", NULL, "ssp1 Tx"},
148 {"ssp1 Tx", NULL, "codec0_out"},
150 {"Playback", NULL, "ssp2 Tx"},
151 {"ssp2 Tx", NULL, "codec1_out"},
153 {"codec0_in", NULL, "ssp2 Rx"},
154 {"ssp2 Rx", NULL, "Capture"},
157 static int broxton_ssp_fixup(struct snd_soc_pcm_runtime *rtd,
158 struct snd_pcm_hw_params *params)
160 struct snd_interval *rate = hw_param_interval(params,
161 SNDRV_PCM_HW_PARAM_RATE);
162 struct snd_interval *channels = hw_param_interval(params,
163 SNDRV_PCM_HW_PARAM_CHANNELS);
164 struct snd_mask *fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
166 /* The ADSP will convert the FE rate to 48k, stereo */
167 rate->min = rate->max = 48000;
168 channels->min = channels->max = DUAL_CHANNEL;
170 /* set SSP to 24 bit */
172 snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S24_LE);
177 static int broxton_da7219_codec_init(struct snd_soc_pcm_runtime *rtd)
180 struct snd_soc_dai *codec_dai = rtd->codec_dai;
181 struct snd_soc_component *component = rtd->codec_dai->component;
183 /* Configure sysclk for codec */
184 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK, 19200000,
187 dev_err(rtd->dev, "can't set codec sysclk configuration\n");
192 * Headset buttons map to the google Reference headset.
193 * These can be configured by userspace.
195 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack",
196 SND_JACK_HEADSET | SND_JACK_BTN_0 | SND_JACK_BTN_1 |
197 SND_JACK_BTN_2 | SND_JACK_BTN_3 | SND_JACK_LINEOUT,
198 &broxton_headset, NULL, 0);
200 dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret);
204 snd_jack_set_key(broxton_headset.jack, SND_JACK_BTN_0, KEY_PLAYPAUSE);
205 snd_jack_set_key(broxton_headset.jack, SND_JACK_BTN_1, KEY_VOLUMEUP);
206 snd_jack_set_key(broxton_headset.jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN);
207 snd_jack_set_key(broxton_headset.jack, SND_JACK_BTN_3,
210 da7219_aad_jack_det(component, &broxton_headset);
212 snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC");
217 static int broxton_hdmi_init(struct snd_soc_pcm_runtime *rtd)
219 struct bxt_card_private *ctx = snd_soc_card_get_drvdata(rtd->card);
220 struct snd_soc_dai *dai = rtd->codec_dai;
221 struct bxt_hdmi_pcm *pcm;
223 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL);
227 pcm->device = BXT_DPCM_AUDIO_HDMI1_PB + dai->id;
228 pcm->codec_dai = dai;
230 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list);
235 static int broxton_da7219_fe_init(struct snd_soc_pcm_runtime *rtd)
237 struct snd_soc_dapm_context *dapm;
238 struct snd_soc_component *component = rtd->cpu_dai->component;
240 dapm = snd_soc_component_get_dapm(component);
241 snd_soc_dapm_ignore_suspend(dapm, "Reference Capture");
246 static const unsigned int rates[] = {
250 static const struct snd_pcm_hw_constraint_list constraints_rates = {
251 .count = ARRAY_SIZE(rates),
256 static const unsigned int channels[] = {
260 static const struct snd_pcm_hw_constraint_list constraints_channels = {
261 .count = ARRAY_SIZE(channels),
266 static const unsigned int channels_quad[] = {
270 static const struct snd_pcm_hw_constraint_list constraints_channels_quad = {
271 .count = ARRAY_SIZE(channels_quad),
272 .list = channels_quad,
276 static int bxt_fe_startup(struct snd_pcm_substream *substream)
278 struct snd_pcm_runtime *runtime = substream->runtime;
281 * On this platform for PCM device we support,
287 runtime->hw.channels_max = DUAL_CHANNEL;
288 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
289 &constraints_channels);
291 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE;
292 snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16);
294 snd_pcm_hw_constraint_list(runtime, 0,
295 SNDRV_PCM_HW_PARAM_RATE, &constraints_rates);
300 static const struct snd_soc_ops broxton_da7219_fe_ops = {
301 .startup = bxt_fe_startup,
304 static int broxton_dmic_fixup(struct snd_soc_pcm_runtime *rtd,
305 struct snd_pcm_hw_params *params)
307 struct snd_interval *channels = hw_param_interval(params,
308 SNDRV_PCM_HW_PARAM_CHANNELS);
309 if (params_channels(params) == 2)
310 channels->min = channels->max = 2;
312 channels->min = channels->max = 4;
317 static int broxton_dmic_startup(struct snd_pcm_substream *substream)
319 struct snd_pcm_runtime *runtime = substream->runtime;
321 runtime->hw.channels_min = runtime->hw.channels_max = QUAD_CHANNEL;
322 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
323 &constraints_channels_quad);
325 return snd_pcm_hw_constraint_list(substream->runtime, 0,
326 SNDRV_PCM_HW_PARAM_RATE, &constraints_rates);
329 static const struct snd_soc_ops broxton_dmic_ops = {
330 .startup = broxton_dmic_startup,
333 static const unsigned int rates_16000[] = {
337 static const struct snd_pcm_hw_constraint_list constraints_16000 = {
338 .count = ARRAY_SIZE(rates_16000),
342 static const unsigned int ch_mono[] = {
346 static const struct snd_pcm_hw_constraint_list constraints_refcap = {
347 .count = ARRAY_SIZE(ch_mono),
351 static int broxton_refcap_startup(struct snd_pcm_substream *substream)
353 substream->runtime->hw.channels_max = 1;
354 snd_pcm_hw_constraint_list(substream->runtime, 0,
355 SNDRV_PCM_HW_PARAM_CHANNELS,
356 &constraints_refcap);
358 return snd_pcm_hw_constraint_list(substream->runtime, 0,
359 SNDRV_PCM_HW_PARAM_RATE,
363 static const struct snd_soc_ops broxton_refcap_ops = {
364 .startup = broxton_refcap_startup,
367 /* broxton digital audio interface glue - connects codec <--> CPU */
368 SND_SOC_DAILINK_DEF(dummy,
369 DAILINK_COMP_ARRAY(COMP_DUMMY()));
371 SND_SOC_DAILINK_DEF(system,
372 DAILINK_COMP_ARRAY(COMP_CPU("System Pin")));
374 SND_SOC_DAILINK_DEF(system2,
375 DAILINK_COMP_ARRAY(COMP_CPU("System Pin2")));
377 SND_SOC_DAILINK_DEF(reference,
378 DAILINK_COMP_ARRAY(COMP_CPU("Reference Pin")));
380 SND_SOC_DAILINK_DEF(dmic,
381 DAILINK_COMP_ARRAY(COMP_CPU("DMIC Pin")));
383 SND_SOC_DAILINK_DEF(hdmi1,
384 DAILINK_COMP_ARRAY(COMP_CPU("HDMI1 Pin")));
386 SND_SOC_DAILINK_DEF(hdmi2,
387 DAILINK_COMP_ARRAY(COMP_CPU("HDMI2 Pin")));
389 SND_SOC_DAILINK_DEF(hdmi3,
390 DAILINK_COMP_ARRAY(COMP_CPU("HDMI3 Pin")));
393 SND_SOC_DAILINK_DEF(ssp5_pin,
394 DAILINK_COMP_ARRAY(COMP_CPU("SSP5 Pin")));
395 SND_SOC_DAILINK_DEF(ssp5_codec,
396 DAILINK_COMP_ARRAY(COMP_CODEC("MX98357A:00",
397 BXT_MAXIM_CODEC_DAI)));
399 SND_SOC_DAILINK_DEF(ssp1_pin,
400 DAILINK_COMP_ARRAY(COMP_CPU("SSP1 Pin")));
401 SND_SOC_DAILINK_DEF(ssp1_codec,
402 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-DLGS7219:00",
403 BXT_DIALOG_CODEC_DAI)));
405 SND_SOC_DAILINK_DEF(dmic_pin,
406 DAILINK_COMP_ARRAY(COMP_CPU("DMIC01 Pin")));
408 SND_SOC_DAILINK_DEF(dmic16k_pin,
409 DAILINK_COMP_ARRAY(COMP_CPU("DMIC16k Pin")));
411 SND_SOC_DAILINK_DEF(dmic_codec,
412 DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec", "dmic-hifi")));
414 SND_SOC_DAILINK_DEF(idisp1_pin,
415 DAILINK_COMP_ARRAY(COMP_CPU("iDisp1 Pin")));
416 SND_SOC_DAILINK_DEF(idisp1_codec,
417 DAILINK_COMP_ARRAY(COMP_CODEC("ehdaudio0D2", "intel-hdmi-hifi1")));
419 SND_SOC_DAILINK_DEF(idisp2_pin,
420 DAILINK_COMP_ARRAY(COMP_CPU("iDisp2 Pin")));
421 SND_SOC_DAILINK_DEF(idisp2_codec,
422 DAILINK_COMP_ARRAY(COMP_CODEC("ehdaudio0D2",
423 "intel-hdmi-hifi2")));
425 SND_SOC_DAILINK_DEF(idisp3_pin,
426 DAILINK_COMP_ARRAY(COMP_CPU("iDisp3 Pin")));
427 SND_SOC_DAILINK_DEF(idisp3_codec,
428 DAILINK_COMP_ARRAY(COMP_CODEC("ehdaudio0D2",
429 "intel-hdmi-hifi3")));
431 SND_SOC_DAILINK_DEF(platform,
432 DAILINK_COMP_ARRAY(COMP_PLATFORM("0000:00:0e.0")));
434 static struct snd_soc_dai_link broxton_dais[] = {
435 /* Front End DAI links */
436 [BXT_DPCM_AUDIO_PB] =
438 .name = "Bxt Audio Port",
439 .stream_name = "Audio",
442 .init = broxton_da7219_fe_init,
444 SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
446 .ops = &broxton_da7219_fe_ops,
447 SND_SOC_DAILINK_REG(system, dummy, platform),
449 [BXT_DPCM_AUDIO_CP] =
451 .name = "Bxt Audio Capture Port",
452 .stream_name = "Audio Record",
456 SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
458 .ops = &broxton_da7219_fe_ops,
459 SND_SOC_DAILINK_REG(system, dummy, platform),
461 [BXT_DPCM_AUDIO_HS_PB] = {
462 .name = "Bxt Audio Headset Playback",
463 .stream_name = "Headset Playback",
467 SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
469 .ops = &broxton_da7219_fe_ops,
470 SND_SOC_DAILINK_REG(system2, dummy, platform),
472 [BXT_DPCM_AUDIO_REF_CP] =
474 .name = "Bxt Audio Reference cap",
475 .stream_name = "Refcap",
480 .ops = &broxton_refcap_ops,
481 SND_SOC_DAILINK_REG(reference, dummy, platform),
483 [BXT_DPCM_AUDIO_DMIC_CP] =
485 .name = "Bxt Audio DMIC cap",
486 .stream_name = "dmiccap",
491 .ops = &broxton_dmic_ops,
492 SND_SOC_DAILINK_REG(dmic, dummy, platform),
494 [BXT_DPCM_AUDIO_HDMI1_PB] =
496 .name = "Bxt HDMI Port1",
497 .stream_name = "Hdmi1",
502 SND_SOC_DAILINK_REG(hdmi1, dummy, platform),
504 [BXT_DPCM_AUDIO_HDMI2_PB] =
506 .name = "Bxt HDMI Port2",
507 .stream_name = "Hdmi2",
512 SND_SOC_DAILINK_REG(hdmi2, dummy, platform),
514 [BXT_DPCM_AUDIO_HDMI3_PB] =
516 .name = "Bxt HDMI Port3",
517 .stream_name = "Hdmi3",
522 SND_SOC_DAILINK_REG(hdmi3, dummy, platform),
524 /* Back End DAI links */
527 .name = "SSP5-Codec",
530 .dai_fmt = SND_SOC_DAIFMT_I2S |
531 SND_SOC_DAIFMT_NB_NF |
532 SND_SOC_DAIFMT_CBS_CFS,
533 .ignore_pmdown_time = 1,
534 .be_hw_params_fixup = broxton_ssp_fixup,
536 SND_SOC_DAILINK_REG(ssp5_pin, ssp5_codec, platform),
540 .name = "SSP1-Codec",
543 .init = broxton_da7219_codec_init,
544 .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
545 SND_SOC_DAIFMT_CBS_CFS,
546 .ignore_pmdown_time = 1,
547 .be_hw_params_fixup = broxton_ssp_fixup,
550 SND_SOC_DAILINK_REG(ssp1_pin, ssp1_codec, platform),
556 .be_hw_params_fixup = broxton_dmic_fixup,
559 SND_SOC_DAILINK_REG(dmic_pin, dmic_codec, platform),
564 .init = broxton_hdmi_init,
567 SND_SOC_DAILINK_REG(idisp1_pin, idisp1_codec, platform),
572 .init = broxton_hdmi_init,
575 SND_SOC_DAILINK_REG(idisp2_pin, idisp2_codec, platform),
580 .init = broxton_hdmi_init,
583 SND_SOC_DAILINK_REG(idisp3_pin, idisp3_codec, platform),
588 .be_hw_params_fixup = broxton_dmic_fixup,
591 SND_SOC_DAILINK_REG(dmic16k_pin, dmic_codec, platform),
596 static int bxt_card_late_probe(struct snd_soc_card *card)
598 struct bxt_card_private *ctx = snd_soc_card_get_drvdata(card);
599 struct bxt_hdmi_pcm *pcm;
600 struct snd_soc_component *component = NULL;
602 char jack_name[NAME_SIZE];
604 if (soc_intel_is_glk())
605 snd_soc_dapm_add_routes(&card->dapm, gemini_map,
606 ARRAY_SIZE(gemini_map));
608 snd_soc_dapm_add_routes(&card->dapm, broxton_map,
609 ARRAY_SIZE(broxton_map));
611 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
612 component = pcm->codec_dai->component;
613 snprintf(jack_name, sizeof(jack_name),
614 "HDMI/DP, pcm=%d Jack", pcm->device);
615 err = snd_soc_card_jack_new(card, jack_name,
616 SND_JACK_AVOUT, &broxton_hdmi[i],
622 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device,
633 return hdac_hdmi_jack_port_init(component, &card->dapm);
636 /* broxton audio machine driver for SPT + da7219 */
637 static struct snd_soc_card broxton_audio_card = {
638 .name = "bxtda7219max",
639 .owner = THIS_MODULE,
640 .dai_link = broxton_dais,
641 .num_links = ARRAY_SIZE(broxton_dais),
642 .controls = broxton_controls,
643 .num_controls = ARRAY_SIZE(broxton_controls),
644 .dapm_widgets = broxton_widgets,
645 .num_dapm_widgets = ARRAY_SIZE(broxton_widgets),
646 .dapm_routes = audio_map,
647 .num_dapm_routes = ARRAY_SIZE(audio_map),
648 .fully_routed = true,
649 .late_probe = bxt_card_late_probe,
652 static int broxton_audio_probe(struct platform_device *pdev)
654 struct bxt_card_private *ctx;
655 struct snd_soc_acpi_mach *mach;
656 const char *platform_name;
659 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
663 INIT_LIST_HEAD(&ctx->hdmi_pcm_list);
665 broxton_audio_card.dev = &pdev->dev;
666 snd_soc_card_set_drvdata(&broxton_audio_card, ctx);
667 if (soc_intel_is_glk()) {
670 broxton_audio_card.name = "glkda7219max";
671 /* Fixup the SSP entries for geminilake */
672 for (i = 0; i < ARRAY_SIZE(broxton_dais); i++) {
673 /* MAXIM_CODEC is connected to SSP1. */
674 if (!strcmp(broxton_dais[i].codecs->dai_name,
675 BXT_MAXIM_CODEC_DAI)) {
676 broxton_dais[i].name = "SSP1-Codec";
677 broxton_dais[i].cpus->dai_name = "SSP1 Pin";
679 /* DIALOG_CODE is connected to SSP2 */
680 else if (!strcmp(broxton_dais[i].codecs->dai_name,
681 BXT_DIALOG_CODEC_DAI)) {
682 broxton_dais[i].name = "SSP2-Codec";
683 broxton_dais[i].cpus->dai_name = "SSP2 Pin";
688 /* override plaform name, if required */
689 mach = (&pdev->dev)->platform_data;
690 platform_name = mach->mach_params.platform;
692 ret = snd_soc_fixup_dai_links_platform_name(&broxton_audio_card,
697 return devm_snd_soc_register_card(&pdev->dev, &broxton_audio_card);
700 static const struct platform_device_id bxt_board_ids[] = {
701 { .name = "bxt_da7219_max98357a" },
702 { .name = "glk_da7219_max98357a" },
706 static struct platform_driver broxton_audio = {
707 .probe = broxton_audio_probe,
709 .name = "bxt_da7219_max98357a",
710 .pm = &snd_soc_pm_ops,
712 .id_table = bxt_board_ids,
714 module_platform_driver(broxton_audio)
716 /* Module information */
717 MODULE_DESCRIPTION("Audio Machine driver-DA7219 & MAX98357A in I2S mode");
718 MODULE_AUTHOR("Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>");
719 MODULE_AUTHOR("Rohit Ainapure <rohit.m.ainapure@intel.com>");
720 MODULE_AUTHOR("Harsha Priya <harshapriya.n@intel.com>");
721 MODULE_AUTHOR("Conrad Cooke <conrad.cooke@intel.com>");
722 MODULE_AUTHOR("Naveen Manohar <naveen.m@intel.com>");
723 MODULE_LICENSE("GPL v2");
724 MODULE_ALIAS("platform:bxt_da7219_max98357a");
725 MODULE_ALIAS("platform:glk_da7219_max98357a");