hda_component.h 461 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * HD audio Component Binding Interface
  4. *
  5. * Copyright (C) 2021 Cirrus Logic, Inc. and
  6. * Cirrus Logic International Semiconductor Ltd.
  7. */
  8. #include <linux/component.h>
  9. #define HDA_MAX_COMPONENTS 4
  10. #define HDA_MAX_NAME_SIZE 50
  11. struct hda_component {
  12. struct device *dev;
  13. char name[HDA_MAX_NAME_SIZE];
  14. struct hda_codec *codec;
  15. void (*playback_hook)(struct device *dev, int action);
  16. };