1 From cbcb43856238e359086ac491f41d5d38b834268f Mon Sep 17 00:00:00 2001
2 From: BabuSubashChandar <babuenir@gmail.com>
3 Date: Tue, 28 Mar 2017 20:04:42 +0530
4 Subject: [PATCH 081/454] Add support for Allo Boss DAC add-on board for
7 Signed-off-by: Baswaraj K <jaikumar@cem-solutions.net>
8 Reviewed-by: Deepak <deepak@zilogic.com>
9 Reviewed-by: BabuSubashChandar <babusubashchandar@zilogic.com>
11 Add support for new clock rate and mute gpios.
13 Signed-off-by: Baswaraj K <jaikumar@cem-solutions.net>
14 Reviewed-by: Deepak <deepak@zilogic.com>
15 Reviewed-by: BabuSubashChandar <babusubashchandar@zilogic.com>
17 drivers/clk/Makefile | 1 +
18 drivers/clk/clk-allo-dac.c | 161 ++++++++++++
19 sound/soc/bcm/Kconfig | 7 +
20 sound/soc/bcm/Makefile | 2 +
21 sound/soc/bcm/allo-boss-dac.c | 461 ++++++++++++++++++++++++++++++++++
22 5 files changed, 632 insertions(+)
23 create mode 100644 drivers/clk/clk-allo-dac.c
24 create mode 100644 sound/soc/bcm/allo-boss-dac.c
26 --- a/drivers/clk/Makefile
27 +++ b/drivers/clk/Makefile
28 @@ -18,6 +18,7 @@ endif
30 # hardware specific clock types
31 # please keep this section sorted lexicographically by file path name
32 +obj-$(CONFIG_SND_BCM2708_SOC_ALLO_BOSS_DAC) += clk-allo-dac.o
33 obj-$(CONFIG_MACH_ASM9260) += clk-asm9260.o
34 obj-$(CONFIG_COMMON_CLK_AXI_CLKGEN) += clk-axi-clkgen.o
35 obj-$(CONFIG_ARCH_AXXIA) += clk-axm5516.o
37 +++ b/drivers/clk/clk-allo-dac.c
40 + * Clock Driver for Allo DAC
42 + * Author: Baswaraj K <jaikumar@cem-solutions.net>
44 + * based on code by Stuart MacLean
46 + * This program is free software; you can redistribute it and/or
47 + * modify it under the terms of the GNU General Public License
48 + * version 2 as published by the Free Software Foundation.
50 + * This program is distributed in the hope that it will be useful, but
51 + * WITHOUT ANY WARRANTY; without even the implied warranty of
52 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
53 + * General Public License for more details.
56 +#include <linux/clk-provider.h>
57 +#include <linux/clkdev.h>
58 +#include <linux/kernel.h>
59 +#include <linux/module.h>
60 +#include <linux/of.h>
61 +#include <linux/slab.h>
62 +#include <linux/platform_device.h>
64 +/* Clock rate of CLK44EN attached to GPIO6 pin */
65 +#define CLK_44EN_RATE 45158400UL
66 +/* Clock rate of CLK48EN attached to GPIO3 pin */
67 +#define CLK_48EN_RATE 49152000UL
70 + * struct allo_dac_clk - Common struct to the Allo DAC
71 + * @hw: clk_hw for the common clk framework
72 + * @mode: 0 => CLK44EN, 1 => CLK48EN
79 +#define to_allo_clk(_hw) container_of(_hw, struct clk_allo_hw, hw)
81 +static const struct of_device_id clk_allo_dac_dt_ids[] = {
82 + { .compatible = "allo,dac-clk",},
85 +MODULE_DEVICE_TABLE(of, clk_allo_dac_dt_ids);
87 +static unsigned long clk_allo_dac_recalc_rate(struct clk_hw *hw,
88 + unsigned long parent_rate)
90 + return (to_allo_clk(hw)->mode == 0) ? CLK_44EN_RATE :
94 +static long clk_allo_dac_round_rate(struct clk_hw *hw,
95 + unsigned long rate, unsigned long *parent_rate)
99 + if (rate <= CLK_44EN_RATE) {
100 + actual_rate = (long)CLK_44EN_RATE;
101 + } else if (rate >= CLK_48EN_RATE) {
102 + actual_rate = (long)CLK_48EN_RATE;
104 + long diff44Rate = (long)(rate - CLK_44EN_RATE);
105 + long diff48Rate = (long)(CLK_48EN_RATE - rate);
107 + if (diff44Rate < diff48Rate)
108 + actual_rate = (long)CLK_44EN_RATE;
110 + actual_rate = (long)CLK_48EN_RATE;
112 + return actual_rate;
116 +static int clk_allo_dac_set_rate(struct clk_hw *hw,
117 + unsigned long rate, unsigned long parent_rate)
119 + unsigned long actual_rate;
120 + struct clk_allo_hw *clk = to_allo_clk(hw);
122 + actual_rate = (unsigned long)clk_allo_dac_round_rate(hw, rate,
124 + clk->mode = (actual_rate == CLK_44EN_RATE) ? 0 : 1;
129 +const struct clk_ops clk_allo_dac_rate_ops = {
130 + .recalc_rate = clk_allo_dac_recalc_rate,
131 + .round_rate = clk_allo_dac_round_rate,
132 + .set_rate = clk_allo_dac_set_rate,
135 +static int clk_allo_dac_probe(struct platform_device *pdev)
138 + struct clk_allo_hw *proclk;
140 + struct device *dev;
141 + struct clk_init_data init;
145 + proclk = kzalloc(sizeof(struct clk_allo_hw), GFP_KERNEL);
149 + init.name = "clk-allo-dac";
150 + init.ops = &clk_allo_dac_rate_ops;
151 + init.flags = CLK_IS_BASIC;
152 + init.parent_names = NULL;
153 + init.num_parents = 0;
156 + proclk->hw.init = &init;
158 + clk = devm_clk_register(dev, &proclk->hw);
159 + if (!IS_ERR(clk)) {
160 + ret = of_clk_add_provider(dev->of_node, of_clk_src_simple_get,
163 + dev_err(dev, "Fail to register clock driver\n");
165 + ret = PTR_ERR(clk);
170 +static int clk_allo_dac_remove(struct platform_device *pdev)
172 + of_clk_del_provider(pdev->dev.of_node);
176 +static struct platform_driver clk_allo_dac_driver = {
177 + .probe = clk_allo_dac_probe,
178 + .remove = clk_allo_dac_remove,
180 + .name = "clk-allo-dac",
181 + .of_match_table = clk_allo_dac_dt_ids,
185 +static int __init clk_allo_dac_init(void)
187 + return platform_driver_register(&clk_allo_dac_driver);
189 +core_initcall(clk_allo_dac_init);
191 +static void __exit clk_allo_dac_exit(void)
193 + platform_driver_unregister(&clk_allo_dac_driver);
195 +module_exit(clk_allo_dac_exit);
197 +MODULE_DESCRIPTION("Allo DAC clock driver");
198 +MODULE_LICENSE("GPL v2");
199 +MODULE_ALIAS("platform:clk-allo-dac");
200 --- a/sound/soc/bcm/Kconfig
201 +++ b/sound/soc/bcm/Kconfig
202 @@ -138,3 +138,10 @@ config SND_BCM2708_SOC_ALLO_PIANO_DAC_PL
203 select SND_SOC_PCM512x_I2C
205 Say Y or M if you want to add support for Allo Piano DAC Plus.
207 +config SND_BCM2708_SOC_ALLO_BOSS_DAC
208 + tristate "Support for Allo Boss DAC"
209 + depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S
210 + select SND_SOC_PCM512x_I2C
212 + Say Y or M if you want to add support for Allo Boss DAC.
213 --- a/sound/soc/bcm/Makefile
214 +++ b/sound/soc/bcm/Makefile
215 @@ -24,6 +24,7 @@ snd-soc-raspidac3-objs := raspidac3.o
216 snd-soc-audioinjector-pi-soundcard-objs := audioinjector-pi-soundcard.o
217 snd-soc-digidac1-soundcard-objs := digidac1-soundcard.o
218 snd-soc-dionaudio-loco-objs := dionaudio_loco.o
219 +snd-soc-allo-boss-dac-objs := allo-boss-dac.o
220 snd-soc-allo-piano-dac-objs := allo-piano-dac.o
221 snd-soc-allo-piano-dac-plus-objs := allo-piano-dac-plus.o
223 @@ -42,5 +43,6 @@ obj-$(CONFIG_SND_BCM2708_SOC_RASPIDAC3)
224 obj-$(CONFIG_SND_AUDIOINJECTOR_PI_SOUNDCARD) += snd-soc-audioinjector-pi-soundcard.o
225 obj-$(CONFIG_SND_DIGIDAC1_SOUNDCARD) += snd-soc-digidac1-soundcard.o
226 obj-$(CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO) += snd-soc-dionaudio-loco.o
227 +obj-$(CONFIG_SND_BCM2708_SOC_ALLO_BOSS_DAC) += snd-soc-allo-boss-dac.o
228 obj-$(CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC) += snd-soc-allo-piano-dac.o
229 obj-$(CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC_PLUS) += snd-soc-allo-piano-dac-plus.o
231 +++ b/sound/soc/bcm/allo-boss-dac.c
234 + * ALSA ASoC Machine Driver for Allo Boss DAC
236 + * Author: Baswaraj K <jaikumar@cem-solutions.net>
238 + * based on code by Daniel Matuschek,
239 + * Stuart MacLean <stuart@hifiberry.com>
240 + * based on code by Florian Meier <florian.meier@koalo.de>
242 + * This program is free software; you can redistribute it and/or
243 + * modify it under the terms of the GNU General Public License
244 + * version 2 as published by the Free Software Foundation.
246 + * This program is distributed in the hope that it will be useful, but
247 + * WITHOUT ANY WARRANTY; without even the implied warranty of
248 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
249 + * General Public License for more details.
252 +#include <linux/module.h>
253 +#include <linux/gpio/consumer.h>
254 +#include <linux/platform_device.h>
255 +#include <linux/clk.h>
256 +#include <linux/delay.h>
258 +#include <sound/core.h>
259 +#include <sound/pcm.h>
260 +#include <sound/pcm_params.h>
261 +#include <sound/soc.h>
262 +#include "../codecs/pcm512x.h"
264 +#define ALLO_BOSS_NOCLOCK 0
265 +#define ALLO_BOSS_CLK44EN 1
266 +#define ALLO_BOSS_CLK48EN 2
268 +struct pcm512x_priv {
269 + struct regmap *regmap;
273 +static struct gpio_desc *mute_gpio;
275 +/* Clock rate of CLK44EN attached to GPIO6 pin */
276 +#define CLK_44EN_RATE 45158400UL
277 +/* Clock rate of CLK48EN attached to GPIO3 pin */
278 +#define CLK_48EN_RATE 49152000UL
281 +static bool snd_soc_allo_boss_master;
282 +static bool digital_gain_0db_limit = true;
284 +static void snd_allo_boss_select_clk(struct snd_soc_codec *codec,
288 + case ALLO_BOSS_NOCLOCK:
289 + snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x00);
291 + case ALLO_BOSS_CLK44EN:
292 + snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x20);
294 + case ALLO_BOSS_CLK48EN:
295 + snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
300 +static void snd_allo_boss_clk_gpio(struct snd_soc_codec *codec)
302 + snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x24, 0x24);
303 + snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_3, 0x0f, 0x02);
304 + snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_6, 0x0f, 0x02);
307 +static bool snd_allo_boss_is_sclk(struct snd_soc_codec *codec)
311 + sck = snd_soc_read(codec, PCM512x_RATE_DET_4);
312 + return (!(sck & 0x40));
315 +static bool snd_allo_boss_is_sclk_sleep(
316 + struct snd_soc_codec *codec)
319 + return snd_allo_boss_is_sclk(codec);
322 +static bool snd_allo_boss_is_master_card(struct snd_soc_codec *codec)
324 + bool isClk44EN, isClk48En, isNoClk;
326 + snd_allo_boss_clk_gpio(codec);
328 + snd_allo_boss_select_clk(codec, ALLO_BOSS_CLK44EN);
329 + isClk44EN = snd_allo_boss_is_sclk_sleep(codec);
331 + snd_allo_boss_select_clk(codec, ALLO_BOSS_NOCLOCK);
332 + isNoClk = snd_allo_boss_is_sclk_sleep(codec);
334 + snd_allo_boss_select_clk(codec, ALLO_BOSS_CLK48EN);
335 + isClk48En = snd_allo_boss_is_sclk_sleep(codec);
337 + return (isClk44EN && isClk48En && !isNoClk);
340 +static int snd_allo_boss_clk_for_rate(int sample_rate)
344 + switch (sample_rate) {
351 + type = ALLO_BOSS_CLK44EN;
354 + type = ALLO_BOSS_CLK48EN;
360 +static void snd_allo_boss_set_sclk(struct snd_soc_codec *codec,
363 + struct pcm512x_priv *pcm512x = snd_soc_codec_get_drvdata(codec);
365 + if (!IS_ERR(pcm512x->sclk)) {
368 + ctype = snd_allo_boss_clk_for_rate(sample_rate);
369 + clk_set_rate(pcm512x->sclk, (ctype == ALLO_BOSS_CLK44EN)
370 + ? CLK_44EN_RATE : CLK_48EN_RATE);
371 + snd_allo_boss_select_clk(codec, ctype);
375 +static int snd_allo_boss_init(struct snd_soc_pcm_runtime *rtd)
377 + struct snd_soc_codec *codec = rtd->codec;
378 + struct pcm512x_priv *priv = snd_soc_codec_get_drvdata(codec);
381 + snd_soc_allo_boss_master = false;
383 + snd_soc_allo_boss_master =
384 + snd_allo_boss_is_master_card(codec);
386 + if (snd_soc_allo_boss_master) {
387 + struct snd_soc_dai_link *dai = rtd->dai_link;
389 + dai->name = "BossDAC";
390 + dai->stream_name = "Boss DAC HiFi [Master]";
391 + dai->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
392 + | SND_SOC_DAIFMT_CBM_CFM;
394 + snd_soc_update_bits(codec, PCM512x_BCLK_LRCLK_CFG, 0x31, 0x11);
395 + snd_soc_update_bits(codec, PCM512x_MASTER_MODE, 0x03, 0x03);
396 + snd_soc_update_bits(codec, PCM512x_MASTER_CLKDIV_2, 0x7f, 63);
398 + * Default sclk to CLK_48EN_RATE, otherwise codec
399 + * pcm512x_dai_startup_master method could call
400 + * snd_pcm_hw_constraint_ratnums using CLK_44EN/64
401 + * which will mask 384k sample rate.
403 + if (!IS_ERR(priv->sclk))
404 + clk_set_rate(priv->sclk, CLK_48EN_RATE);
406 + priv->sclk = ERR_PTR(-ENOENT);
409 + snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x08, 0x08);
410 + snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0x0f, 0x02);
411 + snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x08);
413 + if (digital_gain_0db_limit) {
415 + struct snd_soc_card *card = rtd->card;
417 + ret = snd_soc_limit_volume(card, "Digital Playback Volume",
420 + dev_warn(card->dev, "Failed to set volume limit: %d\n",
427 +static int snd_allo_boss_update_rate_den(
428 + struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params)
430 + struct snd_soc_pcm_runtime *rtd = substream->private_data;
431 + struct snd_soc_codec *codec = rtd->codec;
432 + struct pcm512x_priv *pcm512x = snd_soc_codec_get_drvdata(codec);
433 + struct snd_ratnum *rats_no_pll;
434 + unsigned int num = 0, den = 0;
437 + rats_no_pll = devm_kzalloc(rtd->dev, sizeof(*rats_no_pll), GFP_KERNEL);
441 + rats_no_pll->num = clk_get_rate(pcm512x->sclk) / 64;
442 + rats_no_pll->den_min = 1;
443 + rats_no_pll->den_max = 128;
444 + rats_no_pll->den_step = 1;
446 + err = snd_interval_ratnum(hw_param_interval(params,
447 + SNDRV_PCM_HW_PARAM_RATE), 1, rats_no_pll, &num, &den);
448 + if (err >= 0 && den) {
449 + params->rate_num = num;
450 + params->rate_den = den;
453 + devm_kfree(rtd->dev, rats_no_pll);
457 +static int snd_allo_boss_set_bclk_ratio_pro(
458 + struct snd_soc_dai *cpu_dai, struct snd_pcm_hw_params *params)
460 + int bratio = snd_pcm_format_physical_width(params_format(params))
461 + * params_channels(params);
462 + return snd_soc_dai_set_bclk_ratio(cpu_dai, bratio);
465 +static void snd_allo_boss_gpio_mute(struct snd_soc_card *card)
468 + gpiod_set_value_cansleep(mute_gpio, 1);
471 +static void snd_allo_boss_gpio_unmute(struct snd_soc_card *card)
474 + gpiod_set_value_cansleep(mute_gpio, 0);
477 +static int snd_allo_boss_set_bias_level(struct snd_soc_card *card,
478 + struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level)
480 + struct snd_soc_pcm_runtime *rtd;
481 + struct snd_soc_dai *codec_dai;
483 + rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name);
484 + codec_dai = rtd->codec_dai;
486 + if (dapm->dev != codec_dai->dev)
490 + case SND_SOC_BIAS_PREPARE:
491 + if (dapm->bias_level != SND_SOC_BIAS_STANDBY)
494 + snd_allo_boss_gpio_unmute(card);
497 + case SND_SOC_BIAS_STANDBY:
498 + if (dapm->bias_level != SND_SOC_BIAS_PREPARE)
501 + snd_allo_boss_gpio_mute(card);
511 +static int snd_allo_boss_hw_params(
512 + struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params)
515 + struct snd_soc_pcm_runtime *rtd = substream->private_data;
516 + struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
517 + unsigned int sample_bits =
518 + snd_pcm_format_physical_width(params_format(params));
520 + if (snd_soc_allo_boss_master) {
521 + struct snd_soc_codec *codec = rtd->codec;
523 + snd_allo_boss_set_sclk(codec,
524 + params_rate(params));
526 + ret = snd_allo_boss_set_bclk_ratio_pro(cpu_dai,
529 + ret = snd_allo_boss_update_rate_den(
530 + substream, params);
532 + ret = snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
537 +static int snd_allo_boss_startup(
538 + struct snd_pcm_substream *substream)
540 + struct snd_soc_pcm_runtime *rtd = substream->private_data;
541 + struct snd_soc_codec *codec = rtd->codec;
542 + struct snd_soc_card *card = rtd->card;
544 + snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x08);
545 + snd_allo_boss_gpio_mute(card);
547 + if (snd_soc_allo_boss_master) {
548 + struct pcm512x_priv *priv = snd_soc_codec_get_drvdata(codec);
550 + * Default sclk to CLK_48EN_RATE, otherwise codec
551 + * pcm512x_dai_startup_master method could call
552 + * snd_pcm_hw_constraint_ratnums using CLK_44EN/64
553 + * which will mask 384k sample rate.
555 + if (!IS_ERR(priv->sclk))
556 + clk_set_rate(priv->sclk, CLK_48EN_RATE);
562 +static void snd_allo_boss_shutdown(
563 + struct snd_pcm_substream *substream)
565 + struct snd_soc_pcm_runtime *rtd = substream->private_data;
566 + struct snd_soc_codec *codec = rtd->codec;
568 + snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x00);
571 +static int snd_allo_boss_prepare(
572 + struct snd_pcm_substream *substream)
574 + struct snd_soc_pcm_runtime *rtd = substream->private_data;
575 + struct snd_soc_card *card = rtd->card;
577 + snd_allo_boss_gpio_unmute(card);
580 +/* machine stream operations */
581 +static struct snd_soc_ops snd_allo_boss_ops = {
582 + .hw_params = snd_allo_boss_hw_params,
583 + .startup = snd_allo_boss_startup,
584 + .shutdown = snd_allo_boss_shutdown,
585 + .prepare = snd_allo_boss_prepare,
588 +static struct snd_soc_dai_link snd_allo_boss_dai[] = {
590 + .name = "Boss DAC",
591 + .stream_name = "Boss DAC HiFi",
592 + .cpu_dai_name = "bcm2708-i2s.0",
593 + .codec_dai_name = "pcm512x-hifi",
594 + .platform_name = "bcm2708-i2s.0",
595 + .codec_name = "pcm512x.1-004d",
596 + .dai_fmt = SND_SOC_DAIFMT_I2S |
597 + SND_SOC_DAIFMT_NB_NF |
598 + SND_SOC_DAIFMT_CBS_CFS,
599 + .ops = &snd_allo_boss_ops,
600 + .init = snd_allo_boss_init,
604 +/* audio machine driver */
605 +static struct snd_soc_card snd_allo_boss = {
607 + .owner = THIS_MODULE,
608 + .dai_link = snd_allo_boss_dai,
609 + .num_links = ARRAY_SIZE(snd_allo_boss_dai),
612 +static int snd_allo_boss_probe(struct platform_device *pdev)
616 + snd_allo_boss.dev = &pdev->dev;
618 + if (pdev->dev.of_node) {
619 + struct device_node *i2s_node;
620 + struct snd_soc_dai_link *dai;
622 + dai = &snd_allo_boss_dai[0];
623 + i2s_node = of_parse_phandle(pdev->dev.of_node,
624 + "i2s-controller", 0);
627 + dai->cpu_dai_name = NULL;
628 + dai->cpu_of_node = i2s_node;
629 + dai->platform_name = NULL;
630 + dai->platform_of_node = i2s_node;
633 + digital_gain_0db_limit = !of_property_read_bool(
634 + pdev->dev.of_node, "allo,24db_digital_gain");
635 + slave = of_property_read_bool(pdev->dev.of_node,
638 + mute_gpio = devm_gpiod_get_optional(&pdev->dev, "mute",
640 + if (IS_ERR(mute_gpio)) {
641 + ret = PTR_ERR(mute_gpio);
642 + dev_err(&pdev->dev,
643 + "failed to get mute gpio: %d\n", ret);
648 + snd_allo_boss.set_bias_level =
649 + snd_allo_boss_set_bias_level;
651 + ret = snd_soc_register_card(&snd_allo_boss);
653 + dev_err(&pdev->dev,
654 + "snd_soc_register_card() failed: %d\n", ret);
659 + snd_allo_boss_gpio_mute(&snd_allo_boss);
667 +static int snd_allo_boss_remove(struct platform_device *pdev)
669 + snd_allo_boss_gpio_mute(&snd_allo_boss);
670 + return snd_soc_unregister_card(&snd_allo_boss);
673 +static const struct of_device_id snd_allo_boss_of_match[] = {
674 + { .compatible = "allo,boss-dac", },
675 + { /* sentinel */ },
677 +MODULE_DEVICE_TABLE(of, snd_allo_boss_of_match);
679 +static struct platform_driver snd_allo_boss_driver = {
681 + .name = "snd-allo-boss-dac",
682 + .owner = THIS_MODULE,
683 + .of_match_table = snd_allo_boss_of_match,
685 + .probe = snd_allo_boss_probe,
686 + .remove = snd_allo_boss_remove,
689 +module_platform_driver(snd_allo_boss_driver);
691 +MODULE_AUTHOR("Baswaraj K <jaikumar@cem-solutions.net>");
692 +MODULE_DESCRIPTION("ALSA ASoC Machine Driver for Allo Boss DAC");
693 +MODULE_LICENSE("GPL v2");