| OLD | NEW |
| 1 /* | 1 /* |
| 2 * linux/sound/arm/ep93xx-pcm.c - EP93xx ALSA PCM interface | 2 * linux/sound/arm/ep93xx-pcm.c - EP93xx ALSA PCM interface |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> | 4 * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> |
| 5 * Copyright (C) 2006 Applied Data Systems | 5 * Copyright (C) 2006 Applied Data Systems |
| 6 * | 6 * |
| 7 * Rewritten for the SoC audio subsystem (Based on PXA2xx code): | 7 * Rewritten for the SoC audio subsystem (Based on PXA2xx code): |
| 8 * Copyright (c) 2008 Ryan Mallon <ryan@bluewatersys.com> | 8 * Copyright (c) 2008 Ryan Mallon <ryan@bluewatersys.com> |
| 9 * | 9 * |
| 10 * This program is free software; you can redistribute it and/or modify | 10 * This program is free software; you can redistribute it and/or modify |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include <mach/ep93xx-regs.h> | 28 #include <mach/ep93xx-regs.h> |
| 29 | 29 |
| 30 #include "ep93xx-pcm.h" | 30 #include "ep93xx-pcm.h" |
| 31 | 31 |
| 32 static const struct snd_pcm_hardware ep93xx_pcm_hardware = { | 32 static const struct snd_pcm_hardware ep93xx_pcm_hardware = { |
| 33 .info = (SNDRV_PCM_INFO_MMAP | | 33 .info = (SNDRV_PCM_INFO_MMAP | |
| 34 SNDRV_PCM_INFO_MMAP_VALID | | 34 SNDRV_PCM_INFO_MMAP_VALID | |
| 35 SNDRV_PCM_INFO_INTERLEAVED | | 35 SNDRV_PCM_INFO_INTERLEAVED | |
| 36 SNDRV_PCM_INFO_BLOCK_TRANSFER), | 36 SNDRV_PCM_INFO_BLOCK_TRANSFER), |
| 37 | 37 |
| 38 » .rates» » » = SNDRV_PCM_RATE_8000_48000, | 38 » .rates» » » = SNDRV_PCM_RATE_8000_96000, |
| 39 .rate_min = SNDRV_PCM_RATE_8000, | 39 .rate_min = SNDRV_PCM_RATE_8000, |
| 40 » .rate_max» » = SNDRV_PCM_RATE_48000, | 40 » .rate_max» » = SNDRV_PCM_RATE_96000, |
| 41 | 41 |
| 42 .formats = (SNDRV_PCM_FMTBIT_S16_LE | | 42 .formats = (SNDRV_PCM_FMTBIT_S16_LE | |
| 43 SNDRV_PCM_FMTBIT_S24_LE | | 43 SNDRV_PCM_FMTBIT_S24_LE | |
| 44 SNDRV_PCM_FMTBIT_S32_LE), | 44 SNDRV_PCM_FMTBIT_S32_LE), |
| 45 | 45 |
| 46 .buffer_bytes_max = 131072, | 46 .buffer_bytes_max = 131072, |
| 47 .period_bytes_min = 32, | 47 .period_bytes_min = 32, |
| 48 .period_bytes_max = 32768, | 48 .period_bytes_max = 32768, |
| 49 .periods_min = 1, | 49 .periods_min = 1, |
| 50 .periods_max = 32, | 50 .periods_max = 32, |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 { | 329 { |
| 330 platform_driver_unregister(&ep93xx_pcm_driver); | 330 platform_driver_unregister(&ep93xx_pcm_driver); |
| 331 } | 331 } |
| 332 | 332 |
| 333 module_init(ep93xx_soc_platform_init); | 333 module_init(ep93xx_soc_platform_init); |
| 334 module_exit(ep93xx_soc_platform_exit); | 334 module_exit(ep93xx_soc_platform_exit); |
| 335 | 335 |
| 336 MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); | 336 MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); |
| 337 MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); | 337 MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); |
| 338 MODULE_LICENSE("GPL"); | 338 MODULE_LICENSE("GPL"); |
| OLD | NEW |