^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) // Copyright 2010 Maurus Cuelenaere <mcuelenaere@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) // Based on smdk6410_wm8987.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) // Copyright 2007 Wolfson Microelectronics PLC. - linux@wolfsonmicro.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) // Graeme Gregory - graeme.gregory@wolfsonmicro.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/gpio/consumer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <sound/soc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <sound/jack.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include "i2s.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include "../codecs/wm8750.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) * WM8987 is register compatible with WM8750, so using that as base driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) static struct snd_soc_card snd_soc_smartq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) static int smartq_hifi_hw_params(struct snd_pcm_substream *substream,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) struct snd_pcm_hw_params *params)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) unsigned int clk = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) switch (params_rate(params)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) case 8000:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) case 16000:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) case 32000:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) case 48000:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) case 96000:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) clk = 12288000;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) case 11025:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) case 22050:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) case 44100:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) case 88200:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) clk = 11289600;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) /* Use PCLK for I2S signal generation */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) ret = snd_soc_dai_set_sysclk(cpu_dai, SAMSUNG_I2S_RCLKSRC_0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 0, SND_SOC_CLOCK_IN);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) /* Gate the RCLK output on PAD */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) ret = snd_soc_dai_set_sysclk(cpu_dai, SAMSUNG_I2S_CDCLK,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 0, SND_SOC_CLOCK_IN);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) /* set the codec system clock for DAC and ADC */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) ret = snd_soc_dai_set_sysclk(codec_dai, WM8750_SYSCLK, clk,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) SND_SOC_CLOCK_IN);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) * SmartQ WM8987 HiFi DAI operations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) static struct snd_soc_ops smartq_hifi_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) .hw_params = smartq_hifi_hw_params,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) static struct snd_soc_jack smartq_jack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) static struct snd_soc_jack_pin smartq_jack_pins[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) /* Disable speaker when headphone is plugged in */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) .pin = "Internal Speaker",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) .mask = SND_JACK_HEADPHONE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) static struct snd_soc_jack_gpio smartq_jack_gpios[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) .gpio = -1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) .name = "headphone detect",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) .report = SND_JACK_HEADPHONE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) .debounce_time = 200,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) static const struct snd_kcontrol_new wm8987_smartq_controls[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) SOC_DAPM_PIN_SWITCH("Internal Speaker"),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) SOC_DAPM_PIN_SWITCH("Headphone Jack"),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) SOC_DAPM_PIN_SWITCH("Internal Mic"),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) static int smartq_speaker_event(struct snd_soc_dapm_widget *w,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) struct snd_kcontrol *k,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) int event)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) struct gpio_desc *gpio = snd_soc_card_get_drvdata(&snd_soc_smartq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) gpiod_set_value(gpio, SND_SOC_DAPM_EVENT_OFF(event));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) static const struct snd_soc_dapm_widget wm8987_dapm_widgets[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) SND_SOC_DAPM_SPK("Internal Speaker", smartq_speaker_event),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) SND_SOC_DAPM_HP("Headphone Jack", NULL),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) SND_SOC_DAPM_MIC("Internal Mic", NULL),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) static const struct snd_soc_dapm_route audio_map[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) {"Headphone Jack", NULL, "LOUT2"},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) {"Headphone Jack", NULL, "ROUT2"},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) {"Internal Speaker", NULL, "LOUT2"},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) {"Internal Speaker", NULL, "ROUT2"},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) {"Mic Bias", NULL, "Internal Mic"},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) {"LINPUT2", NULL, "Mic Bias"},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) int err = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) /* set endpoints to not connected */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) snd_soc_dapm_nc_pin(dapm, "LINPUT1");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) snd_soc_dapm_nc_pin(dapm, "RINPUT1");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) snd_soc_dapm_nc_pin(dapm, "OUT3");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) snd_soc_dapm_nc_pin(dapm, "ROUT1");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) /* Headphone jack detection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) err = snd_soc_card_jack_new(rtd->card, "Headphone Jack",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) SND_JACK_HEADPHONE, &smartq_jack,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) smartq_jack_pins,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) ARRAY_SIZE(smartq_jack_pins));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) err = snd_soc_jack_add_gpios(&smartq_jack,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) ARRAY_SIZE(smartq_jack_gpios),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) smartq_jack_gpios);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) SND_SOC_DAILINK_DEFS(wm8987,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) DAILINK_COMP_ARRAY(COMP_CODEC("wm8750.0-0x1a", "wm8750-hifi")),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0")));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) static struct snd_soc_dai_link smartq_dai[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) .name = "wm8987",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) .stream_name = "SmartQ Hi-Fi",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) .init = smartq_wm8987_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) SND_SOC_DAIFMT_CBS_CFS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) .ops = &smartq_hifi_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) SND_SOC_DAILINK_REG(wm8987),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) static struct snd_soc_card snd_soc_smartq = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) .name = "SmartQ",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) .owner = THIS_MODULE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) .dai_link = smartq_dai,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) .num_links = ARRAY_SIZE(smartq_dai),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) .dapm_widgets = wm8987_dapm_widgets,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) .num_dapm_widgets = ARRAY_SIZE(wm8987_dapm_widgets),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) .dapm_routes = audio_map,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) .num_dapm_routes = ARRAY_SIZE(audio_map),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) .controls = wm8987_smartq_controls,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) .num_controls = ARRAY_SIZE(wm8987_smartq_controls),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) static int smartq_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) struct gpio_desc *gpio;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) platform_set_drvdata(pdev, &snd_soc_smartq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) /* Initialise GPIOs used by amplifiers */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) gpio = devm_gpiod_get(&pdev->dev, "amplifiers shutdown",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) GPIOD_OUT_HIGH);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) if (IS_ERR(gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) dev_err(&pdev->dev, "Failed to register GPK12\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) ret = PTR_ERR(gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) goto out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) snd_soc_card_set_drvdata(&snd_soc_smartq, gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) ret = devm_snd_soc_register_card(&pdev->dev, &snd_soc_smartq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) dev_err(&pdev->dev, "Failed to register card\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) out:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) static struct platform_driver smartq_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) .driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) .name = "smartq-audio",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) .probe = smartq_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) module_platform_driver(smartq_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) /* Module information */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) MODULE_AUTHOR("Maurus Cuelenaere <mcuelenaere@gmail.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) MODULE_DESCRIPTION("ALSA SoC SmartQ WM8987");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) MODULE_LICENSE("GPL");