rt5616.c (f1d68ea36f4fe97ed1de8d40eaa43758b8386c29) | rt5616.c (a180ba45b1cf630b3bd5912ce235b2ee16606b8e) |
---|---|
1/* 2 * rt5616.c -- RT5616 ALSA SoC audio codec driver 3 * 4 * Copyright 2015 Realtek Semiconductor Corp. 5 * Author: Bard Liao <bardliao@realtek.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1251 unchanged lines hidden (view full) --- 1260#define rt5616_suspend NULL 1261#define rt5616_resume NULL 1262#endif 1263 1264#define RT5616_STEREO_RATES SNDRV_PCM_RATE_8000_192000 1265#define RT5616_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ 1266 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8) 1267 | 1/* 2 * rt5616.c -- RT5616 ALSA SoC audio codec driver 3 * 4 * Copyright 2015 Realtek Semiconductor Corp. 5 * Author: Bard Liao <bardliao@realtek.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1251 unchanged lines hidden (view full) --- 1260#define rt5616_suspend NULL 1261#define rt5616_resume NULL 1262#endif 1263 1264#define RT5616_STEREO_RATES SNDRV_PCM_RATE_8000_192000 1265#define RT5616_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ 1266 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8) 1267 |
1268static const struct snd_soc_dai_ops rt5616_aif_dai_ops = { | 1268static struct snd_soc_dai_ops rt5616_aif_dai_ops = { |
1269 .hw_params = rt5616_hw_params, 1270 .set_fmt = rt5616_set_dai_fmt, 1271 .set_sysclk = rt5616_set_dai_sysclk, 1272 .set_pll = rt5616_set_dai_pll, 1273}; 1274 1275static struct snd_soc_dai_driver rt5616_dai[] = { 1276 { --- 12 unchanged lines hidden (view full) --- 1289 .channels_max = 2, 1290 .rates = RT5616_STEREO_RATES, 1291 .formats = RT5616_FORMATS, 1292 }, 1293 .ops = &rt5616_aif_dai_ops, 1294 }, 1295}; 1296 | 1269 .hw_params = rt5616_hw_params, 1270 .set_fmt = rt5616_set_dai_fmt, 1271 .set_sysclk = rt5616_set_dai_sysclk, 1272 .set_pll = rt5616_set_dai_pll, 1273}; 1274 1275static struct snd_soc_dai_driver rt5616_dai[] = { 1276 { --- 12 unchanged lines hidden (view full) --- 1289 .channels_max = 2, 1290 .rates = RT5616_STEREO_RATES, 1291 .formats = RT5616_FORMATS, 1292 }, 1293 .ops = &rt5616_aif_dai_ops, 1294 }, 1295}; 1296 |
1297static struct snd_soc_codec_driver soc_codec_dev_rt5616 = { | 1297static const struct snd_soc_codec_driver soc_codec_dev_rt5616 = { |
1298 .probe = rt5616_probe, 1299 .suspend = rt5616_suspend, 1300 .resume = rt5616_resume, 1301 .set_bias_level = rt5616_set_bias_level, 1302 .idle_bias_off = true, 1303 .component_driver = { 1304 .controls = rt5616_snd_controls, 1305 .num_controls = ARRAY_SIZE(rt5616_snd_controls), --- 118 unchanged lines hidden --- | 1298 .probe = rt5616_probe, 1299 .suspend = rt5616_suspend, 1300 .resume = rt5616_resume, 1301 .set_bias_level = rt5616_set_bias_level, 1302 .idle_bias_off = true, 1303 .component_driver = { 1304 .controls = rt5616_snd_controls, 1305 .num_controls = ARRAY_SIZE(rt5616_snd_controls), --- 118 unchanged lines hidden --- |