sof_cirrus_common.h 784 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * This file defines data structures used in Machine Driver for Intel
  4. * platforms with Cirrus Logic Codecs.
  5. *
  6. * Copyright 2022 Intel Corporation.
  7. */
  8. #ifndef __SOF_CIRRUS_COMMON_H
  9. #define __SOF_CIRRUS_COMMON_H
  10. #include <sound/soc.h>
  11. #include <sound/soc-acpi-intel-ssp-common.h>
  12. /*
  13. * Cirrus Logic CS35L41/CS35L53
  14. */
  15. #define CS35L41_CODEC_DAI "cs35l41-pcm"
  16. #define CS35L41_DEV0_NAME "i2c-" CS35L41_ACPI_HID ":00"
  17. #define CS35L41_DEV1_NAME "i2c-" CS35L41_ACPI_HID ":01"
  18. #define CS35L41_DEV2_NAME "i2c-" CS35L41_ACPI_HID ":02"
  19. #define CS35L41_DEV3_NAME "i2c-" CS35L41_ACPI_HID ":03"
  20. void cs35l41_set_dai_link(struct snd_soc_dai_link *link);
  21. void cs35l41_set_codec_conf(struct snd_soc_card *card);
  22. #endif /* __SOF_CIRRUS_COMMON_H */