Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15931
b: refs/heads/master
c: c8714ba
h: refs/heads/master
i:
  15929: d915df7
  15927: 2035861
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 3, 2006
1 parent 6bab3ca commit 6ca48d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdbae7e62837c22c5399df0789a24e9d8a1d675f
refs/heads/master: c8714ba160a498e249dbd32c637b85a1efa1013b
16 changes: 2 additions & 14 deletions trunk/include/sound/tea6330t.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,9 @@
*
*/

#include "control.h"
#include "i2c.h" /* generic i2c support */

typedef struct {
snd_i2c_device_t *device;
snd_i2c_bus_t *bus;
int equalizer;
int fader;
unsigned char regs[8];
unsigned char mleft, mright;
unsigned char bass, treble;
unsigned char max_bass, max_treble;
} tea6330t_t;

extern int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer);
extern int snd_tea6330t_update_mixer(snd_card_t * card, snd_i2c_bus_t * bus, int equalizer, int fader);
int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer);
int snd_tea6330t_update_mixer(snd_card_t * card, snd_i2c_bus_t * bus, int equalizer, int fader);

#endif /* __SOUND_TEA6330T_H */
12 changes: 12 additions & 0 deletions trunk/sound/i2c/tea6330t.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/init.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/tea6330t.h>

MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>");
Expand All @@ -43,6 +44,17 @@ MODULE_LICENSE("GPL");
#define TEA6330T_GMU 0x80 /* mute control, general mute */
#define TEA6330T_EQN 0x40 /* equalizer switchover (0=equalizer-on) */

typedef struct {
snd_i2c_device_t *device;
snd_i2c_bus_t *bus;
int equalizer;
int fader;
unsigned char regs[8];
unsigned char mleft, mright;
unsigned char bass, treble;
unsigned char max_bass, max_treble;
} tea6330t_t;

int snd_tea6330t_detect(snd_i2c_bus_t *bus, int equalizer)
{
int res;
Expand Down

0 comments on commit 6ca48d9

Please sign in to comment.