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