blob: 8eeae2dec552a778fedb2f374b0e20ab0f0bee4f [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Jaroslav Kyselac1017a42007-10-15 09:50:19 +02003 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 * Universal interface for Audio Codec '97
5 *
6 * For more details look to AC '97 component specification revision 2.2
7 * by Intel Corporation (http://developer.intel.com).
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 */
9
Takashi Iwaiac519022007-02-22 12:58:27 +010010void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name,
11 int modem);
Takashi Iwaiee423812005-11-17 14:21:36 +010012int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg,
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 unsigned short mask, unsigned short value);
14
15/* ac97_proc.c */
Takashi Iwaif68ce622015-05-29 07:52:43 +020016#ifdef CONFIG_SND_PROC_FS
Takashi Iwaiee423812005-11-17 14:21:36 +010017void snd_ac97_bus_proc_init(struct snd_ac97_bus * ac97);
18void snd_ac97_bus_proc_done(struct snd_ac97_bus * ac97);
19void snd_ac97_proc_init(struct snd_ac97 * ac97);
20void snd_ac97_proc_done(struct snd_ac97 * ac97);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#else
22#define snd_ac97_bus_proc_init(ac97_bus_t) do { } while (0)
23#define snd_ac97_bus_proc_done(ac97_bus_t) do { } while (0)
24#define snd_ac97_proc_init(ac97_t) do { } while (0)
25#define snd_ac97_proc_done(ac97_t) do { } while (0)
26#endif