wm9705.c (6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44) wm9705.c (6335d05548eece40092000aa91b64a50310d69d5)
1/*
2 * wm9705.c -- ALSA Soc WM9705 codec support
3 *
4 * Copyright 2008 Ian Molton <spyro@f2s.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; Version 2 of the License only.

--- 255 unchanged lines hidden (view full) ---

264 return ac97_write(codec, reg, runtime->rate);
265}
266
267#define WM9705_AC97_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | \
268 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \
269 SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
270 SNDRV_PCM_RATE_48000)
271
1/*
2 * wm9705.c -- ALSA Soc WM9705 codec support
3 *
4 * Copyright 2008 Ian Molton <spyro@f2s.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; Version 2 of the License only.

--- 255 unchanged lines hidden (view full) ---

264 return ac97_write(codec, reg, runtime->rate);
265}
266
267#define WM9705_AC97_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | \
268 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \
269 SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
270 SNDRV_PCM_RATE_48000)
271
272static struct snd_soc_dai_ops wm9705_dai_ops = {
273 .prepare = ac97_prepare,
274};
275
272struct snd_soc_dai wm9705_dai[] = {
273 {
274 .name = "AC97 HiFi",
275 .ac97_control = 1,
276 .playback = {
277 .stream_name = "HiFi Playback",
278 .channels_min = 1,
279 .channels_max = 2,
280 .rates = WM9705_AC97_RATES,
281 .formats = SNDRV_PCM_FMTBIT_S16_LE,
282 },
283 .capture = {
284 .stream_name = "HiFi Capture",
285 .channels_min = 1,
286 .channels_max = 2,
287 .rates = WM9705_AC97_RATES,
288 .formats = SNDRV_PCM_FMTBIT_S16_LE,
289 },
276struct snd_soc_dai wm9705_dai[] = {
277 {
278 .name = "AC97 HiFi",
279 .ac97_control = 1,
280 .playback = {
281 .stream_name = "HiFi Playback",
282 .channels_min = 1,
283 .channels_max = 2,
284 .rates = WM9705_AC97_RATES,
285 .formats = SNDRV_PCM_FMTBIT_S16_LE,
286 },
287 .capture = {
288 .stream_name = "HiFi Capture",
289 .channels_min = 1,
290 .channels_max = 2,
291 .rates = WM9705_AC97_RATES,
292 .formats = SNDRV_PCM_FMTBIT_S16_LE,
293 },
290 .ops = {
291 .prepare = ac97_prepare,
292 },
294 .ops = &wm9705_dai_ops,
293 },
294 {
295 .name = "AC97 Aux",
296 .playback = {
297 .stream_name = "Aux Playback",
298 .channels_min = 1,
299 .channels_max = 1,
300 .rates = WM9705_AC97_RATES,

--- 113 unchanged lines hidden ---
295 },
296 {
297 .name = "AC97 Aux",
298 .playback = {
299 .stream_name = "Aux Playback",
300 .channels_min = 1,
301 .channels_max = 1,
302 .rates = WM9705_AC97_RATES,

--- 113 unchanged lines hidden ---