diff options
| author | Konstantinos Tsimpoukas <kostaslinuxxx@gmail.com> | 2017-11-05 15:11:01 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2017-11-06 09:05:20 -0500 |
| commit | 9718a29d40b7e5ae4692796eb23c54f25559d35e (patch) | |
| tree | 48f668fe52061015a39cb672926bd4565e55f457 | |
| parent | aed328fec0ebd4acce384556b98fd58974874246 (diff) | |
ALSA: ice1712: define i2c eeprom addr to header file
Signed-off-by: Konstantinos Tsimpoukas <kostaslinuxxx@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/pci/ice1712/ice1712.c | 2 | ||||
| -rw-r--r-- | sound/pci/ice1712/ice1712.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 0e66afa403a3..f1fe497c2f9d 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
| @@ -2285,7 +2285,7 @@ static unsigned char snd_ice1712_read_i2c(struct snd_ice1712 *ice, | |||
| 2285 | static int snd_ice1712_read_eeprom(struct snd_ice1712 *ice, | 2285 | static int snd_ice1712_read_eeprom(struct snd_ice1712 *ice, |
| 2286 | const char *modelname) | 2286 | const char *modelname) |
| 2287 | { | 2287 | { |
| 2288 | int dev = 0xa0; /* EEPROM device address */ | 2288 | int dev = ICE_I2C_EEPROM_ADDR; /* I2C EEPROM device address */ |
| 2289 | unsigned int i, size; | 2289 | unsigned int i, size; |
| 2290 | struct snd_ice1712_card_info * const *tbl, *c; | 2290 | struct snd_ice1712_card_info * const *tbl, *c; |
| 2291 | 2291 | ||
diff --git a/sound/pci/ice1712/ice1712.h b/sound/pci/ice1712/ice1712.h index 5cfba09c9761..8ae8742662a5 100644 --- a/sound/pci/ice1712/ice1712.h +++ b/sound/pci/ice1712/ice1712.h | |||
| @@ -218,8 +218,9 @@ | |||
| 218 | 218 | ||
| 219 | 219 | ||
| 220 | /* | 220 | /* |
| 221 | * | 221 | * I2C EEPROM Address |
| 222 | */ | 222 | */ |
| 223 | #define ICE_I2C_EEPROM_ADDR 0xA0 | ||
| 223 | 224 | ||
| 224 | struct snd_ice1712; | 225 | struct snd_ice1712; |
| 225 | 226 | ||
