pxa2xx-i2s.c (44dd2b9168350b82a671ce71666b99208ab2d973) pxa2xx-i2s.c (6335d05548eece40092000aa91b64a50310d69d5)
1/*
2 * pxa2xx-i2s.c -- ALSA Soc Audio Layer
3 *
4 * Copyright 2005 Wolfson Microelectronics PLC.
5 * Author: Liam Girdwood
6 * lrg@slimlogic.co.uk
7 *
8 * This program is free software; you can redistribute it and/or modify it

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

299#define pxa2xx_i2s_suspend NULL
300#define pxa2xx_i2s_resume NULL
301#endif
302
303#define PXA2XX_I2S_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\
304 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \
305 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000)
306
1/*
2 * pxa2xx-i2s.c -- ALSA Soc Audio Layer
3 *
4 * Copyright 2005 Wolfson Microelectronics PLC.
5 * Author: Liam Girdwood
6 * lrg@slimlogic.co.uk
7 *
8 * This program is free software; you can redistribute it and/or modify it

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

299#define pxa2xx_i2s_suspend NULL
300#define pxa2xx_i2s_resume NULL
301#endif
302
303#define PXA2XX_I2S_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\
304 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \
305 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000)
306
307static struct snd_soc_dai_ops pxa_i2s_dai_ops = {
308 .startup = pxa2xx_i2s_startup,
309 .shutdown = pxa2xx_i2s_shutdown,
310 .trigger = pxa2xx_i2s_trigger,
311 .hw_params = pxa2xx_i2s_hw_params,
312 .set_fmt = pxa2xx_i2s_set_dai_fmt,
313 .set_sysclk = pxa2xx_i2s_set_dai_sysclk,
314};
315
307struct snd_soc_dai pxa_i2s_dai = {
308 .name = "pxa2xx-i2s",
309 .id = 0,
310 .suspend = pxa2xx_i2s_suspend,
311 .resume = pxa2xx_i2s_resume,
312 .playback = {
313 .channels_min = 2,
314 .channels_max = 2,
315 .rates = PXA2XX_I2S_RATES,
316 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
317 .capture = {
318 .channels_min = 2,
319 .channels_max = 2,
320 .rates = PXA2XX_I2S_RATES,
321 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
316struct snd_soc_dai pxa_i2s_dai = {
317 .name = "pxa2xx-i2s",
318 .id = 0,
319 .suspend = pxa2xx_i2s_suspend,
320 .resume = pxa2xx_i2s_resume,
321 .playback = {
322 .channels_min = 2,
323 .channels_max = 2,
324 .rates = PXA2XX_I2S_RATES,
325 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
326 .capture = {
327 .channels_min = 2,
328 .channels_max = 2,
329 .rates = PXA2XX_I2S_RATES,
330 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
322 .ops = {
323 .startup = pxa2xx_i2s_startup,
324 .shutdown = pxa2xx_i2s_shutdown,
325 .trigger = pxa2xx_i2s_trigger,
326 .hw_params = pxa2xx_i2s_hw_params,
327 .set_fmt = pxa2xx_i2s_set_dai_fmt,
328 .set_sysclk = pxa2xx_i2s_set_dai_sysclk,
329 },
331 .ops = &pxa_i2s_dai_ops,
330};
331
332EXPORT_SYMBOL_GPL(pxa_i2s_dai);
333
334static int pxa2xx_i2s_probe(struct platform_device *dev)
335{
336 int ret;
337

--- 48 unchanged lines hidden ---
332};
333
334EXPORT_SYMBOL_GPL(pxa_i2s_dai);
335
336static int pxa2xx_i2s_probe(struct platform_device *dev)
337{
338 int ret;
339

--- 48 unchanged lines hidden ---