X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftas5706a.h;h=3df9be43ecfa2674fd58b5afffc127abde92868f;hb=41718ab2098bd5640da265c34f1ecb79a4123d39;hp=0c146ea6a62e8ca35e4901adf1e47d238dbbe29f;hpb=53a85c63e98a7ec7456db33b665484df3da33fdb;p=bertos.git diff --git a/bertos/drv/tas5706a.h b/bertos/drv/tas5706a.h index 0c146ea6..3df9be43 100644 --- a/bertos/drv/tas5706a.h +++ b/bertos/drv/tas5706a.h @@ -84,6 +84,7 @@ typedef uint8_t tas5706a_vol_t; * * The volume must be expressed in % and will be at maximum CONFIG_TAS_MAX_VOL. * + * \param i2c The i2c context. * \param ch The channel to be controlled. * \param vol The volume you want to set. */ @@ -95,20 +96,33 @@ void tas5706a_setVolume_3(I2c *i2c, Tas5706aCh ch, tas5706a_vol_t vol); * When in low power mode, the TAS will not play any sound. You should put the TAS chip in low * power whenever possible to prevent overheating and to save power. * + * \param i2c The i2c context. * \param val True if you want to enable low power mode, false otherwise. */ void tas5706a_setLowPower_2(I2c *i2c, bool val); /** * Initialize the TAS chip. + * + * \param i2c The i2c context. */ void tas5706a_init_1(I2c *i2c); #if !CONFIG_I2C_DISABLE_OLD_API -DEPRECATED void tas5706a_setVolume_2(Tas5706aCh ch, tas5706a_vol_t vol); -DEPRECATED void tas5706a_setLowPower_1(bool val); -DEPRECATED void tas5706a_init_0(void); +DEPRECATED INLINE void tas5706a_setVolume_2(Tas5706aCh ch, tas5706a_vol_t vol) +{ + tas5706a_setVolume_3(&local_i2c_old_api, ch, vol); +} +DEPRECATED INLINE void tas5706a_setLowPower_1(bool val) +{ + tas5706a_setLowPower_2(&local_i2c_old_api, val); +} +DEPRECATED INLINE void tas5706a_init_0(void) +{ + tas5706a_init_1(&local_i2c_old_api); +} + #endif /* !CONFIG_I2C_DISABLE_OLD_API */ #endif /* DRV_TAS5706A_H */