| OLD | NEW |
| 1 /* | 1 /* |
| 2 * omap-mcbsp.h | 2 * omap-mcbsp.h |
| 3 * | 3 * |
| 4 * Copyright (C) 2008 Nokia Corporation | 4 * Copyright (C) 2008 Nokia Corporation |
| 5 * | 5 * |
| 6 * Contact: Jarkko Nikula <jhnikula@gmail.com> | 6 * Contact: Jarkko Nikula <jhnikula@gmail.com> |
| 7 * Peter Ujfalusi <peter.ujfalusi@nokia.com> | 7 * Peter Ujfalusi <peter.ujfalusi@nokia.com> |
| 8 * | 8 * |
| 9 * This program is free software; you can redistribute it and/or | 9 * This program is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU General Public License | 10 * modify it under the terms of the GNU General Public License |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */ | 43 OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */ |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #if defined(CONFIG_ARCH_OMAP2420) | 46 #if defined(CONFIG_ARCH_OMAP2420) |
| 47 #define NUM_LINKS 2 | 47 #define NUM_LINKS 2 |
| 48 #endif | 48 #endif |
| 49 #if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX) | 49 #if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX) |
| 50 #undef NUM_LINKS | 50 #undef NUM_LINKS |
| 51 #define NUM_LINKS 3 | 51 #define NUM_LINKS 3 |
| 52 #endif | 52 #endif |
| 53 #if defined(CONFIG_ARCH_OMAP4) |
| 54 #undef NUM_LINKS |
| 55 #define NUM_LINKS 4 |
| 56 #endif |
| 53 #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) | 57 #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) |
| 54 #undef NUM_LINKS | 58 #undef NUM_LINKS |
| 55 #define NUM_LINKS 5 | 59 #define NUM_LINKS 5 |
| 56 #endif | 60 #endif |
| 57 | 61 |
| 58 int omap_mcbsp_st_add_controls(struct snd_soc_codec *codec, int mcbsp_id); | 62 int omap_mcbsp_st_add_controls(struct snd_soc_codec *codec, int mcbsp_id); |
| 59 | 63 |
| 60 #endif | 64 #endif |
| OLD | NEW |