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