Merge tag 'mfd-next-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[linux-block.git] / sound / pci / ac97 / ac97_local.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
1da177e4 2/*
c1017a4c 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
1da177e4
LT
4 * 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).
1da177e4
LT
8 */
9
ac519028
TI
10void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name,
11 int modem);
ee42381e 12int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg,
1da177e4
LT
13 unsigned short mask, unsigned short value);
14
15/* ac97_proc.c */
f68ce629 16#ifdef CONFIG_SND_PROC_FS
ee42381e
TI
17void 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);
1da177e4
LT
21#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