wm8400.c (aaf1e176fa9a96fe1eea33b710684bba066aedc1) | wm8400.c (65ec1cd1e2c6228752d2f167b01e6d291014d249) |
---|---|
1/* 2 * wm8400.c -- WM8400 ALSA Soc Audio driver 3 * 4 * Copyright 2008, 2009 Wolfson Microelectronics PLC. 5 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 1196 unchanged lines hidden (view full) --- 1205 return 0; 1206} 1207 1208#define WM8400_RATES SNDRV_PCM_RATE_8000_96000 1209 1210#define WM8400_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 1211 SNDRV_PCM_FMTBIT_S24_LE) 1212 | 1/* 2 * wm8400.c -- WM8400 ALSA Soc Audio driver 3 * 4 * Copyright 2008, 2009 Wolfson Microelectronics PLC. 5 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 1196 unchanged lines hidden (view full) --- 1205 return 0; 1206} 1207 1208#define WM8400_RATES SNDRV_PCM_RATE_8000_96000 1209 1210#define WM8400_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 1211 SNDRV_PCM_FMTBIT_S24_LE) 1212 |
1213static struct snd_soc_dai_ops wm8400_dai_ops = { 1214 .hw_params = wm8400_hw_params, 1215 .digital_mute = wm8400_mute, 1216 .set_fmt = wm8400_set_dai_fmt, 1217 .set_clkdiv = wm8400_set_dai_clkdiv, 1218 .set_sysclk = wm8400_set_dai_sysclk, 1219}; 1220 |
|
1213/* 1214 * The WM8400 supports 2 different and mutually exclusive DAI 1215 * configurations. 1216 * 1217 * 1. ADC/DAC on Primary Interface 1218 * 2. ADC on Primary Interface/DAC on secondary 1219 */ 1220struct snd_soc_dai wm8400_dai = { --- 9 unchanged lines hidden (view full) --- 1230 }, 1231 .capture = { 1232 .stream_name = "Capture", 1233 .channels_min = 1, 1234 .channels_max = 2, 1235 .rates = WM8400_RATES, 1236 .formats = WM8400_FORMATS, 1237 }, | 1221/* 1222 * The WM8400 supports 2 different and mutually exclusive DAI 1223 * configurations. 1224 * 1225 * 1. ADC/DAC on Primary Interface 1226 * 2. ADC on Primary Interface/DAC on secondary 1227 */ 1228struct snd_soc_dai wm8400_dai = { --- 9 unchanged lines hidden (view full) --- 1238 }, 1239 .capture = { 1240 .stream_name = "Capture", 1241 .channels_min = 1, 1242 .channels_max = 2, 1243 .rates = WM8400_RATES, 1244 .formats = WM8400_FORMATS, 1245 }, |
1238 .ops = { 1239 .hw_params = wm8400_hw_params, 1240 .digital_mute = wm8400_mute, 1241 .set_fmt = wm8400_set_dai_fmt, 1242 .set_clkdiv = wm8400_set_dai_clkdiv, 1243 .set_sysclk = wm8400_set_dai_sysclk, 1244 }, | 1246 .ops = &wm8400_dai_ops, |
1245}; 1246EXPORT_SYMBOL_GPL(wm8400_dai); 1247 1248static int wm8400_suspend(struct platform_device *pdev, pm_message_t state) 1249{ 1250 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1251 struct snd_soc_codec *codec = socdev->card->codec; 1252 --- 227 unchanged lines hidden --- | 1247}; 1248EXPORT_SYMBOL_GPL(wm8400_dai); 1249 1250static int wm8400_suspend(struct platform_device *pdev, pm_message_t state) 1251{ 1252 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1253 struct snd_soc_codec *codec = socdev->card->codec; 1254 --- 227 unchanged lines hidden --- |