wcd-mbhc-legacy.h 850 B

1234567891011121314151617181920212223242526
  1. /* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __WCD_MBHC_LEGACY_H__
  13. #define __WCD_MBHC_LEGACY_H__
  14. #include "wcdcal-hwdep.h"
  15. #include "wcd-mbhc-v2.h"
  16. #ifdef CONFIG_SND_SOC_WCD_MBHC_LEGACY
  17. void wcd_mbhc_legacy_init(struct wcd_mbhc *mbhc);
  18. #else
  19. static inline void wcd_mbhc_legacy_init(struct wcd_mbhc *mbhc)
  20. {
  21. }
  22. #endif
  23. #endif /* __WCD_MBHC_LEGACY_H__ */