2 * File: sound/soc/codecs/ssm2602.c
3 * Author: Cliff Cai <Cliff.Cai@analog.com>
5 * Created: Tue June 06 2008
6 * Description: Driver for ssm2602 sound chip
9 * Copyright 2008 Analog Devices Inc.
11 * Bugs: Enter bugs at http://blackfin.uclinux.org/
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, see the file COPYING, or write
25 * to the Free Software Foundation, Inc.,
26 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 #include <linux/module.h>
30 #include <linux/regmap.h>
31 #include <linux/slab.h>
33 #include <sound/pcm.h>
34 #include <sound/pcm_params.h>
35 #include <sound/soc.h>
36 #include <sound/tlv.h>
40 /* codec private data */
43 const struct snd_pcm_hw_constraint_list
*sysclk_constraints
;
45 struct regmap
*regmap
;
47 enum ssm2602_type type
;
48 unsigned int clk_out_pwr
;
52 * ssm2602 register cache
53 * We can't read the ssm2602 register space when we are
54 * using 2 wire for device control, so we cache them instead.
55 * There is no point in caching the reset register
57 static const u16 ssm2602_reg
[SSM2602_CACHEREGNUM
] = {
58 0x0097, 0x0097, 0x0079, 0x0079,
59 0x000a, 0x0008, 0x009f, 0x000a,
64 /*Appending several "None"s just for OSS mixer use*/
65 static const char *ssm2602_input_select
[] = {
69 static const char *ssm2602_deemph
[] = {"None", "32Khz", "44.1Khz", "48Khz"};
71 static const struct soc_enum ssm2602_enum
[] = {
72 SOC_ENUM_SINGLE(SSM2602_APANA
, 2, ARRAY_SIZE(ssm2602_input_select
),
73 ssm2602_input_select
),
74 SOC_ENUM_SINGLE(SSM2602_APDIGI
, 1, ARRAY_SIZE(ssm2602_deemph
),
78 static const DECLARE_TLV_DB_RANGE(ssm260x_outmix_tlv
,
79 0, 47, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE
, 0, 0),
80 48, 127, TLV_DB_SCALE_ITEM(-7400, 100, 0)
83 static const DECLARE_TLV_DB_SCALE(ssm260x_inpga_tlv
, -3450, 150, 0);
84 static const DECLARE_TLV_DB_SCALE(ssm260x_sidetone_tlv
, -1500, 300, 0);
86 static const struct snd_kcontrol_new ssm260x_snd_controls
[] = {
87 SOC_DOUBLE_R_TLV("Capture Volume", SSM2602_LINVOL
, SSM2602_RINVOL
, 0, 45, 0,
89 SOC_DOUBLE_R("Capture Switch", SSM2602_LINVOL
, SSM2602_RINVOL
, 7, 1, 1),
91 SOC_SINGLE("ADC High Pass Filter Switch", SSM2602_APDIGI
, 0, 1, 1),
92 SOC_SINGLE("Store DC Offset Switch", SSM2602_APDIGI
, 4, 1, 0),
94 SOC_ENUM("Playback De-emphasis", ssm2602_enum
[1]),
97 static const struct snd_kcontrol_new ssm2602_snd_controls
[] = {
98 SOC_DOUBLE_R_TLV("Master Playback Volume", SSM2602_LOUT1V
, SSM2602_ROUT1V
,
99 0, 127, 0, ssm260x_outmix_tlv
),
100 SOC_DOUBLE_R("Master Playback ZC Switch", SSM2602_LOUT1V
, SSM2602_ROUT1V
,
102 SOC_SINGLE_TLV("Sidetone Playback Volume", SSM2602_APANA
, 6, 3, 1,
103 ssm260x_sidetone_tlv
),
105 SOC_SINGLE("Mic Boost (+20dB)", SSM2602_APANA
, 0, 1, 0),
106 SOC_SINGLE("Mic Boost2 (+20dB)", SSM2602_APANA
, 8, 1, 0),
107 SOC_SINGLE("Mic Switch", SSM2602_APANA
, 1, 1, 1),
111 static const struct snd_kcontrol_new ssm260x_output_mixer_controls
[] = {
112 SOC_DAPM_SINGLE("Line Bypass Switch", SSM2602_APANA
, 3, 1, 0),
113 SOC_DAPM_SINGLE("HiFi Playback Switch", SSM2602_APANA
, 4, 1, 0),
114 SOC_DAPM_SINGLE("Mic Sidetone Switch", SSM2602_APANA
, 5, 1, 0),
118 static const struct snd_kcontrol_new ssm2602_input_mux_controls
=
119 SOC_DAPM_ENUM("Input Select", ssm2602_enum
[0]);
121 static const struct snd_soc_dapm_widget ssm260x_dapm_widgets
[] = {
122 SND_SOC_DAPM_DAC("DAC", "HiFi Playback", SSM2602_PWR
, 3, 1),
123 SND_SOC_DAPM_ADC("ADC", "HiFi Capture", SSM2602_PWR
, 2, 1),
124 SND_SOC_DAPM_PGA("Line Input", SSM2602_PWR
, 0, 1, NULL
, 0),
126 SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE
, 0, 0, NULL
, 0),
128 SND_SOC_DAPM_OUTPUT("LOUT"),
129 SND_SOC_DAPM_OUTPUT("ROUT"),
130 SND_SOC_DAPM_INPUT("RLINEIN"),
131 SND_SOC_DAPM_INPUT("LLINEIN"),
134 static const struct snd_soc_dapm_widget ssm2602_dapm_widgets
[] = {
135 SND_SOC_DAPM_MIXER("Output Mixer", SSM2602_PWR
, 4, 1,
136 ssm260x_output_mixer_controls
,
137 ARRAY_SIZE(ssm260x_output_mixer_controls
)),
139 SND_SOC_DAPM_MUX("Input Mux", SND_SOC_NOPM
, 0, 0, &ssm2602_input_mux_controls
),
140 SND_SOC_DAPM_MICBIAS("Mic Bias", SSM2602_PWR
, 1, 1),
142 SND_SOC_DAPM_OUTPUT("LHPOUT"),
143 SND_SOC_DAPM_OUTPUT("RHPOUT"),
144 SND_SOC_DAPM_INPUT("MICIN"),
147 static const struct snd_soc_dapm_widget ssm2604_dapm_widgets
[] = {
148 SND_SOC_DAPM_MIXER("Output Mixer", SND_SOC_NOPM
, 0, 0,
149 ssm260x_output_mixer_controls
,
150 ARRAY_SIZE(ssm260x_output_mixer_controls
) - 1), /* Last element is the mic */
153 static const struct snd_soc_dapm_route ssm260x_routes
[] = {
154 {"DAC", NULL
, "Digital Core Power"},
155 {"ADC", NULL
, "Digital Core Power"},
157 {"Output Mixer", "Line Bypass Switch", "Line Input"},
158 {"Output Mixer", "HiFi Playback Switch", "DAC"},
160 {"ROUT", NULL
, "Output Mixer"},
161 {"LOUT", NULL
, "Output Mixer"},
163 {"Line Input", NULL
, "LLINEIN"},
164 {"Line Input", NULL
, "RLINEIN"},
167 static const struct snd_soc_dapm_route ssm2602_routes
[] = {
168 {"Output Mixer", "Mic Sidetone Switch", "Mic Bias"},
170 {"RHPOUT", NULL
, "Output Mixer"},
171 {"LHPOUT", NULL
, "Output Mixer"},
173 {"Input Mux", "Line", "Line Input"},
174 {"Input Mux", "Mic", "Mic Bias"},
175 {"ADC", NULL
, "Input Mux"},
177 {"Mic Bias", NULL
, "MICIN"},
180 static const struct snd_soc_dapm_route ssm2604_routes
[] = {
181 {"ADC", NULL
, "Line Input"},
184 static const unsigned int ssm2602_rates_12288000
[] = {
185 8000, 16000, 32000, 48000, 96000,
188 static const struct snd_pcm_hw_constraint_list ssm2602_constraints_12288000
= {
189 .list
= ssm2602_rates_12288000
,
190 .count
= ARRAY_SIZE(ssm2602_rates_12288000
),
193 static const unsigned int ssm2602_rates_11289600
[] = {
194 8000, 11025, 22050, 44100, 88200,
197 static const struct snd_pcm_hw_constraint_list ssm2602_constraints_11289600
= {
198 .list
= ssm2602_rates_11289600
,
199 .count
= ARRAY_SIZE(ssm2602_rates_11289600
),
202 struct ssm2602_coeff
{
208 #define SSM2602_COEFF_SRATE(sr, bosr, usb) (((sr) << 2) | ((bosr) << 1) | (usb))
210 /* codec mclk clock coefficients */
211 static const struct ssm2602_coeff ssm2602_coeff_table
[] = {
213 {12288000, 48000, SSM2602_COEFF_SRATE(0x0, 0x0, 0x0)},
214 {18432000, 48000, SSM2602_COEFF_SRATE(0x0, 0x1, 0x0)},
215 {12000000, 48000, SSM2602_COEFF_SRATE(0x0, 0x0, 0x1)},
218 {12288000, 32000, SSM2602_COEFF_SRATE(0x6, 0x0, 0x0)},
219 {18432000, 32000, SSM2602_COEFF_SRATE(0x6, 0x1, 0x0)},
220 {12000000, 32000, SSM2602_COEFF_SRATE(0x6, 0x0, 0x1)},
223 {12288000, 16000, SSM2602_COEFF_SRATE(0x5, 0x0, 0x0)},
224 {18432000, 16000, SSM2602_COEFF_SRATE(0x5, 0x1, 0x0)},
225 {12000000, 16000, SSM2602_COEFF_SRATE(0xa, 0x0, 0x1)},
228 {12288000, 8000, SSM2602_COEFF_SRATE(0x3, 0x0, 0x0)},
229 {18432000, 8000, SSM2602_COEFF_SRATE(0x3, 0x1, 0x0)},
230 {11289600, 8000, SSM2602_COEFF_SRATE(0xb, 0x0, 0x0)},
231 {16934400, 8000, SSM2602_COEFF_SRATE(0xb, 0x1, 0x0)},
232 {12000000, 8000, SSM2602_COEFF_SRATE(0x3, 0x0, 0x1)},
235 {12288000, 96000, SSM2602_COEFF_SRATE(0x7, 0x0, 0x0)},
236 {18432000, 96000, SSM2602_COEFF_SRATE(0x7, 0x1, 0x0)},
237 {12000000, 96000, SSM2602_COEFF_SRATE(0x7, 0x0, 0x1)},
240 {11289600, 11025, SSM2602_COEFF_SRATE(0xc, 0x0, 0x0)},
241 {16934400, 11025, SSM2602_COEFF_SRATE(0xc, 0x1, 0x0)},
242 {12000000, 11025, SSM2602_COEFF_SRATE(0xc, 0x1, 0x1)},
245 {11289600, 22050, SSM2602_COEFF_SRATE(0xd, 0x0, 0x0)},
246 {16934400, 22050, SSM2602_COEFF_SRATE(0xd, 0x1, 0x0)},
247 {12000000, 22050, SSM2602_COEFF_SRATE(0xd, 0x1, 0x1)},
250 {11289600, 44100, SSM2602_COEFF_SRATE(0x8, 0x0, 0x0)},
251 {16934400, 44100, SSM2602_COEFF_SRATE(0x8, 0x1, 0x0)},
252 {12000000, 44100, SSM2602_COEFF_SRATE(0x8, 0x1, 0x1)},
255 {11289600, 88200, SSM2602_COEFF_SRATE(0xf, 0x0, 0x0)},
256 {16934400, 88200, SSM2602_COEFF_SRATE(0xf, 0x1, 0x0)},
257 {12000000, 88200, SSM2602_COEFF_SRATE(0xf, 0x1, 0x1)},
260 static inline int ssm2602_get_coeff(int mclk
, int rate
)
264 for (i
= 0; i
< ARRAY_SIZE(ssm2602_coeff_table
); i
++) {
265 if (ssm2602_coeff_table
[i
].rate
== rate
&&
266 ssm2602_coeff_table
[i
].mclk
== mclk
)
267 return ssm2602_coeff_table
[i
].srate
;
272 static int ssm2602_hw_params(struct snd_pcm_substream
*substream
,
273 struct snd_pcm_hw_params
*params
,
274 struct snd_soc_dai
*dai
)
276 struct snd_soc_codec
*codec
= dai
->codec
;
277 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
278 int srate
= ssm2602_get_coeff(ssm2602
->sysclk
, params_rate(params
));
284 regmap_write(ssm2602
->regmap
, SSM2602_SRATE
, srate
);
287 switch (params_width(params
)) {
303 regmap_update_bits(ssm2602
->regmap
, SSM2602_IFACE
,
304 IFACE_AUDIO_DATA_LEN
, iface
);
308 static int ssm2602_startup(struct snd_pcm_substream
*substream
,
309 struct snd_soc_dai
*dai
)
311 struct snd_soc_codec
*codec
= dai
->codec
;
312 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
314 if (ssm2602
->sysclk_constraints
) {
315 snd_pcm_hw_constraint_list(substream
->runtime
, 0,
316 SNDRV_PCM_HW_PARAM_RATE
,
317 ssm2602
->sysclk_constraints
);
323 static int ssm2602_mute(struct snd_soc_dai
*dai
, int mute
)
325 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(dai
->codec
);
328 regmap_update_bits(ssm2602
->regmap
, SSM2602_APDIGI
,
329 APDIGI_ENABLE_DAC_MUTE
,
330 APDIGI_ENABLE_DAC_MUTE
);
332 regmap_update_bits(ssm2602
->regmap
, SSM2602_APDIGI
,
333 APDIGI_ENABLE_DAC_MUTE
, 0);
337 static int ssm2602_set_dai_sysclk(struct snd_soc_dai
*codec_dai
,
338 int clk_id
, unsigned int freq
, int dir
)
340 struct snd_soc_codec
*codec
= codec_dai
->codec
;
341 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
343 if (dir
== SND_SOC_CLOCK_IN
) {
344 if (clk_id
!= SSM2602_SYSCLK
)
350 ssm2602
->sysclk_constraints
= &ssm2602_constraints_12288000
;
354 ssm2602
->sysclk_constraints
= &ssm2602_constraints_11289600
;
357 ssm2602
->sysclk_constraints
= NULL
;
362 ssm2602
->sysclk
= freq
;
367 case SSM2602_CLK_CLKOUT
:
368 mask
= PWR_CLK_OUT_PDN
;
370 case SSM2602_CLK_XTO
:
378 ssm2602
->clk_out_pwr
|= mask
;
380 ssm2602
->clk_out_pwr
&= ~mask
;
382 regmap_update_bits(ssm2602
->regmap
, SSM2602_PWR
,
383 PWR_CLK_OUT_PDN
| PWR_OSC_PDN
, ssm2602
->clk_out_pwr
);
389 static int ssm2602_set_dai_fmt(struct snd_soc_dai
*codec_dai
,
392 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec_dai
->codec
);
393 unsigned int iface
= 0;
395 /* set master/slave audio interface */
396 switch (fmt
& SND_SOC_DAIFMT_MASTER_MASK
) {
397 case SND_SOC_DAIFMT_CBM_CFM
:
400 case SND_SOC_DAIFMT_CBS_CFS
:
406 /* interface format */
407 switch (fmt
& SND_SOC_DAIFMT_FORMAT_MASK
) {
408 case SND_SOC_DAIFMT_I2S
:
411 case SND_SOC_DAIFMT_RIGHT_J
:
413 case SND_SOC_DAIFMT_LEFT_J
:
416 case SND_SOC_DAIFMT_DSP_A
:
419 case SND_SOC_DAIFMT_DSP_B
:
426 /* clock inversion */
427 switch (fmt
& SND_SOC_DAIFMT_INV_MASK
) {
428 case SND_SOC_DAIFMT_NB_NF
:
430 case SND_SOC_DAIFMT_IB_IF
:
433 case SND_SOC_DAIFMT_IB_NF
:
436 case SND_SOC_DAIFMT_NB_IF
:
444 regmap_write(ssm2602
->regmap
, SSM2602_IFACE
, iface
);
448 static int ssm2602_set_bias_level(struct snd_soc_codec
*codec
,
449 enum snd_soc_bias_level level
)
451 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
454 case SND_SOC_BIAS_ON
:
455 /* vref/mid on, osc and clkout on if enabled */
456 regmap_update_bits(ssm2602
->regmap
, SSM2602_PWR
,
457 PWR_POWER_OFF
| PWR_CLK_OUT_PDN
| PWR_OSC_PDN
,
458 ssm2602
->clk_out_pwr
);
460 case SND_SOC_BIAS_PREPARE
:
462 case SND_SOC_BIAS_STANDBY
:
463 /* everything off except vref/vmid, */
464 regmap_update_bits(ssm2602
->regmap
, SSM2602_PWR
,
465 PWR_POWER_OFF
| PWR_CLK_OUT_PDN
| PWR_OSC_PDN
,
466 PWR_CLK_OUT_PDN
| PWR_OSC_PDN
);
468 case SND_SOC_BIAS_OFF
:
470 regmap_update_bits(ssm2602
->regmap
, SSM2602_PWR
,
471 PWR_POWER_OFF
, PWR_POWER_OFF
);
478 #define SSM2602_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\
479 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\
480 SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |\
481 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |\
482 SNDRV_PCM_RATE_96000)
484 #define SSM2602_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
485 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
487 static const struct snd_soc_dai_ops ssm2602_dai_ops
= {
488 .startup
= ssm2602_startup
,
489 .hw_params
= ssm2602_hw_params
,
490 .digital_mute
= ssm2602_mute
,
491 .set_sysclk
= ssm2602_set_dai_sysclk
,
492 .set_fmt
= ssm2602_set_dai_fmt
,
495 static struct snd_soc_dai_driver ssm2602_dai
= {
496 .name
= "ssm2602-hifi",
498 .stream_name
= "Playback",
501 .rates
= SSM2602_RATES
,
502 .formats
= SSM2602_FORMATS
,},
504 .stream_name
= "Capture",
507 .rates
= SSM2602_RATES
,
508 .formats
= SSM2602_FORMATS
,},
509 .ops
= &ssm2602_dai_ops
,
510 .symmetric_rates
= 1,
511 .symmetric_samplebits
= 1,
514 static int ssm2602_resume(struct snd_soc_codec
*codec
)
516 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
518 regcache_sync(ssm2602
->regmap
);
523 static int ssm2602_codec_probe(struct snd_soc_codec
*codec
)
525 struct snd_soc_dapm_context
*dapm
= snd_soc_codec_get_dapm(codec
);
526 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
529 regmap_update_bits(ssm2602
->regmap
, SSM2602_LOUT1V
,
530 LOUT1V_LRHP_BOTH
, LOUT1V_LRHP_BOTH
);
531 regmap_update_bits(ssm2602
->regmap
, SSM2602_ROUT1V
,
532 ROUT1V_RLHP_BOTH
, ROUT1V_RLHP_BOTH
);
534 ret
= snd_soc_add_codec_controls(codec
, ssm2602_snd_controls
,
535 ARRAY_SIZE(ssm2602_snd_controls
));
539 ret
= snd_soc_dapm_new_controls(dapm
, ssm2602_dapm_widgets
,
540 ARRAY_SIZE(ssm2602_dapm_widgets
));
544 return snd_soc_dapm_add_routes(dapm
, ssm2602_routes
,
545 ARRAY_SIZE(ssm2602_routes
));
548 static int ssm2604_codec_probe(struct snd_soc_codec
*codec
)
550 struct snd_soc_dapm_context
*dapm
= snd_soc_codec_get_dapm(codec
);
553 ret
= snd_soc_dapm_new_controls(dapm
, ssm2604_dapm_widgets
,
554 ARRAY_SIZE(ssm2604_dapm_widgets
));
558 return snd_soc_dapm_add_routes(dapm
, ssm2604_routes
,
559 ARRAY_SIZE(ssm2604_routes
));
562 static int ssm260x_codec_probe(struct snd_soc_codec
*codec
)
564 struct ssm2602_priv
*ssm2602
= snd_soc_codec_get_drvdata(codec
);
567 ret
= regmap_write(ssm2602
->regmap
, SSM2602_RESET
, 0);
569 dev_err(codec
->dev
, "Failed to issue reset: %d\n", ret
);
573 /* set the update bits */
574 regmap_update_bits(ssm2602
->regmap
, SSM2602_LINVOL
,
575 LINVOL_LRIN_BOTH
, LINVOL_LRIN_BOTH
);
576 regmap_update_bits(ssm2602
->regmap
, SSM2602_RINVOL
,
577 RINVOL_RLIN_BOTH
, RINVOL_RLIN_BOTH
);
578 /*select Line in as default input*/
579 regmap_write(ssm2602
->regmap
, SSM2602_APANA
, APANA_SELECT_DAC
|
580 APANA_ENABLE_MIC_BOOST
);
582 switch (ssm2602
->type
) {
584 ret
= ssm2602_codec_probe(codec
);
587 ret
= ssm2604_codec_probe(codec
);
594 static struct snd_soc_codec_driver soc_codec_dev_ssm2602
= {
595 .probe
= ssm260x_codec_probe
,
596 .resume
= ssm2602_resume
,
597 .set_bias_level
= ssm2602_set_bias_level
,
598 .suspend_bias_off
= true,
600 .controls
= ssm260x_snd_controls
,
601 .num_controls
= ARRAY_SIZE(ssm260x_snd_controls
),
602 .dapm_widgets
= ssm260x_dapm_widgets
,
603 .num_dapm_widgets
= ARRAY_SIZE(ssm260x_dapm_widgets
),
604 .dapm_routes
= ssm260x_routes
,
605 .num_dapm_routes
= ARRAY_SIZE(ssm260x_routes
),
608 static bool ssm2602_register_volatile(struct device
*dev
, unsigned int reg
)
610 return reg
== SSM2602_RESET
;
613 const struct regmap_config ssm2602_regmap_config
= {
617 .max_register
= SSM2602_RESET
,
618 .volatile_reg
= ssm2602_register_volatile
,
620 .cache_type
= REGCACHE_RBTREE
,
621 .reg_defaults_raw
= ssm2602_reg
,
622 .num_reg_defaults_raw
= ARRAY_SIZE(ssm2602_reg
),
624 EXPORT_SYMBOL_GPL(ssm2602_regmap_config
);
626 int ssm2602_probe(struct device
*dev
, enum ssm2602_type type
,
627 struct regmap
*regmap
)
629 struct ssm2602_priv
*ssm2602
;
632 return PTR_ERR(regmap
);
634 ssm2602
= devm_kzalloc(dev
, sizeof(*ssm2602
), GFP_KERNEL
);
638 dev_set_drvdata(dev
, ssm2602
);
639 ssm2602
->type
= type
;
640 ssm2602
->regmap
= regmap
;
642 return snd_soc_register_codec(dev
, &soc_codec_dev_ssm2602
,
645 EXPORT_SYMBOL_GPL(ssm2602_probe
);
647 MODULE_DESCRIPTION("ASoC SSM2602/SSM2603/SSM2604 driver");
648 MODULE_AUTHOR("Cliff Cai");
649 MODULE_LICENSE("GPL");