wm8728.c (6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44) | wm8728.c (6335d05548eece40092000aa91b64a50310d69d5) |
---|---|
1/* 2 * wm8728.c -- WM8728 ALSA SoC Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics plc 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 230 unchanged lines hidden (view full) --- 239 return 0; 240} 241 242#define WM8728_RATES (SNDRV_PCM_RATE_8000_192000) 243 244#define WM8728_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 245 SNDRV_PCM_FMTBIT_S24_LE) 246 | 1/* 2 * wm8728.c -- WM8728 ALSA SoC Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics plc 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 230 unchanged lines hidden (view full) --- 239 return 0; 240} 241 242#define WM8728_RATES (SNDRV_PCM_RATE_8000_192000) 243 244#define WM8728_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 245 SNDRV_PCM_FMTBIT_S24_LE) 246 |
247static struct snd_soc_dai_ops wm8728_dai_ops = { 248 .hw_params = wm8728_hw_params, 249 .digital_mute = wm8728_mute, 250 .set_fmt = wm8728_set_dai_fmt, 251}; 252 |
|
247struct snd_soc_dai wm8728_dai = { 248 .name = "WM8728", 249 .playback = { 250 .stream_name = "Playback", 251 .channels_min = 2, 252 .channels_max = 2, 253 .rates = WM8728_RATES, 254 .formats = WM8728_FORMATS, 255 }, | 253struct snd_soc_dai wm8728_dai = { 254 .name = "WM8728", 255 .playback = { 256 .stream_name = "Playback", 257 .channels_min = 2, 258 .channels_max = 2, 259 .rates = WM8728_RATES, 260 .formats = WM8728_FORMATS, 261 }, |
256 .ops = { 257 .hw_params = wm8728_hw_params, 258 .digital_mute = wm8728_mute, 259 .set_fmt = wm8728_set_dai_fmt, 260 } | 262 .ops = &wm8728_dai_ops, |
261}; 262EXPORT_SYMBOL_GPL(wm8728_dai); 263 264static int wm8728_suspend(struct platform_device *pdev, pm_message_t state) 265{ 266 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 267 struct snd_soc_codec *codec = socdev->card->codec; 268 --- 303 unchanged lines hidden --- | 263}; 264EXPORT_SYMBOL_GPL(wm8728_dai); 265 266static int wm8728_suspend(struct platform_device *pdev, pm_message_t state) 267{ 268 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 269 struct snd_soc_codec *codec = socdev->card->codec; 270 --- 303 unchanged lines hidden --- |