X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftas5706a.h;h=3df9be43ecfa2674fd58b5afffc127abde92868f;hb=e25abecb6a6ff52917d44d1331e5af831aeceb9c;hp=5d674db87a88fb53c033b2952121a910aef8e383;hpb=b454c5eeaedb014041459893e6f7a430c9e52449;p=bertos.git diff --git a/bertos/drv/tas5706a.h b/bertos/drv/tas5706a.h index 5d674db8..3df9be43 100644 --- a/bertos/drv/tas5706a.h +++ b/bertos/drv/tas5706a.h @@ -110,9 +110,19 @@ 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 */