kirkwood-i2s.c (6ad74047f47e1c48223237a0032c5e000f01193f) kirkwood-i2s.c (9e12cbd93232c20544d16aa33c587786a6cb726d)
1/*
2 * kirkwood-i2s.c
3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
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

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

21#include <sound/pcm.h>
22#include <sound/pcm_params.h>
23#include <sound/soc.h>
24#include <linux/platform_data/asoc-kirkwood.h>
25#include "kirkwood.h"
26
27#define DRV_NAME "kirkwood-i2s"
28
1/*
2 * kirkwood-i2s.c
3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
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

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

21#include <sound/pcm.h>
22#include <sound/pcm_params.h>
23#include <sound/soc.h>
24#include <linux/platform_data/asoc-kirkwood.h>
25#include "kirkwood.h"
26
27#define DRV_NAME "kirkwood-i2s"
28
29#define KIRKWOOD_I2S_RATES \
30 (SNDRV_PCM_RATE_44100 | \
31 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000)
32#define KIRKWOOD_I2S_FORMATS \
33 (SNDRV_PCM_FMTBIT_S16_LE | \
34 SNDRV_PCM_FMTBIT_S24_LE | \
35 SNDRV_PCM_FMTBIT_S32_LE)
36
37static int kirkwood_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
38 unsigned int fmt)
39{

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

406};
407
408
409static struct snd_soc_dai_driver kirkwood_i2s_dai = {
410 .probe = kirkwood_i2s_probe,
411 .playback = {
412 .channels_min = 1,
413 .channels_max = 2,
29#define KIRKWOOD_I2S_FORMATS \
30 (SNDRV_PCM_FMTBIT_S16_LE | \
31 SNDRV_PCM_FMTBIT_S24_LE | \
32 SNDRV_PCM_FMTBIT_S32_LE)
33
34static int kirkwood_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
35 unsigned int fmt)
36{

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

403};
404
405
406static struct snd_soc_dai_driver kirkwood_i2s_dai = {
407 .probe = kirkwood_i2s_probe,
408 .playback = {
409 .channels_min = 1,
410 .channels_max = 2,
414 .rates = KIRKWOOD_I2S_RATES,
411 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |
412 SNDRV_PCM_RATE_96000,
415 .formats = KIRKWOOD_I2S_FORMATS,
416 },
417 .capture = {
418 .channels_min = 1,
419 .channels_max = 2,
413 .formats = KIRKWOOD_I2S_FORMATS,
414 },
415 .capture = {
416 .channels_min = 1,
417 .channels_max = 2,
420 .rates = KIRKWOOD_I2S_RATES,
418 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |
419 SNDRV_PCM_RATE_96000,
421 .formats = KIRKWOOD_I2S_FORMATS,
422 },
423 .ops = &kirkwood_i2s_dai_ops,
424};
425
426static struct snd_soc_dai_driver kirkwood_i2s_dai_extclk = {
427 .probe = kirkwood_i2s_probe,
428 .playback = {

--- 131 unchanged lines hidden ---
420 .formats = KIRKWOOD_I2S_FORMATS,
421 },
422 .ops = &kirkwood_i2s_dai_ops,
423};
424
425static struct snd_soc_dai_driver kirkwood_i2s_dai_extclk = {
426 .probe = kirkwood_i2s_probe,
427 .playback = {

--- 131 unchanged lines hidden ---