xref: /openbmc/linux/include/sound/pt2258.h (revision 2a598d0b)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *   ALSA Driver for the PT2258 volume controller.
4  *
5  *	Copyright (c) 2006  Jochen Voss <voss@seehuhn.de>
6  */
7 
8 #ifndef __SOUND_PT2258_H
9 #define __SOUND_PT2258_H
10 
11 struct snd_pt2258 {
12 	struct snd_card *card;
13 	struct snd_i2c_bus *i2c_bus;
14 	struct snd_i2c_device *i2c_dev;
15 
16 	unsigned char volume[6];
17 	int mute;
18 };
19 
20 extern int snd_pt2258_reset(struct snd_pt2258 *pt);
21 extern int snd_pt2258_build_controls(struct snd_pt2258 *pt);
22 
23 #endif /* __SOUND_PT2258_H */
24