/* Sets AC97 mixer registers
This is seems to be needed, even for non-ac97 configs
*/
- ret = em28xx_write_ac97(dev, EM28XX_R14_VIDEO_AC97, video);
+ ret = em28xx_write_ac97(dev, AC97_VIDEO_VOL, video);
if (ret < 0)
return ret;
- ret = em28xx_write_ac97(dev, EM28XX_R10_LINE_IN_AC97, line);
+ ret = em28xx_write_ac97(dev, AC97_LINEIN_VOL, line);
return ret;
}
/* Mute */
s[1] |= 0x80;
- ret = em28xx_write_ac97(dev, EM28XX_R02_MASTER_AC97, s);
+ ret = em28xx_write_ac97(dev, AC97_MASTER_VOL, s);
if (ret < 0)
return ret;
/* Unmute device */
if (!dev->mute)
s[1] &= ~0x80;
- ret = em28xx_write_ac97(dev, EM28XX_R02_MASTER_AC97, s);
+ ret = em28xx_write_ac97(dev, AC97_MASTER_VOL, s);
return ret;
}
0x47 IR data
*/
-/* em202 registers */
-#define EM28XX_R02_MASTER_AC97 0x02
-#define EM28XX_R10_LINE_IN_AC97 0x10
-#define EM28XX_R14_VIDEO_AC97 0x14
-
/* em2874 registers */
#define EM2874_R50_IR_CONFIG 0x50
#define EM2874_R51_IR 0x51