Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Jaroslav Kysela | c1017a4 | 2007-10-15 09:50:19 +0200 | [diff] [blame] | 2 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Universal interface for Audio Codec '97 |
| 4 | * |
| 5 | * For more details look to AC '97 component specification revision 2.2 |
| 6 | * by Intel Corporation (http://developer.intel.com). |
| 7 | * |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | * |
| 23 | */ |
| 24 | |
Takashi Iwai | ac51902 | 2007-02-22 12:58:27 +0100 | [diff] [blame] | 25 | void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, |
| 26 | int modem); |
Takashi Iwai | ee42381 | 2005-11-17 14:21:36 +0100 | [diff] [blame] | 27 | int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | unsigned short mask, unsigned short value); |
| 29 | |
| 30 | /* ac97_proc.c */ |
| 31 | #ifdef CONFIG_PROC_FS |
Takashi Iwai | ee42381 | 2005-11-17 14:21:36 +0100 | [diff] [blame] | 32 | void snd_ac97_bus_proc_init(struct snd_ac97_bus * ac97); |
| 33 | void snd_ac97_bus_proc_done(struct snd_ac97_bus * ac97); |
| 34 | void snd_ac97_proc_init(struct snd_ac97 * ac97); |
| 35 | void snd_ac97_proc_done(struct snd_ac97 * ac97); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | #else |
| 37 | #define snd_ac97_bus_proc_init(ac97_bus_t) do { } while (0) |
| 38 | #define snd_ac97_bus_proc_done(ac97_bus_t) do { } while (0) |
| 39 | #define snd_ac97_proc_init(ac97_t) do { } while (0) |
| 40 | #define snd_ac97_proc_done(ac97_t) do { } while (0) |
| 41 | #endif |