btfm_swr_slave.c 892 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #include "btfm_swr.h"
  6. #include "btfm_swr_slave.h"
  7. struct soc_port_mapping slave_port[] = {
  8. // Evros
  9. {
  10. .ea = EVROS_EA,
  11. .port_info[0].dai_id = FMAUDIO_TX,
  12. .port_info[0].port = 5,
  13. .port_info[1].dai_id = BTAUDIO_TX,
  14. .port_info[1].port = 3,
  15. .port_info[2].dai_id = BTAUDIO_RX,
  16. .port_info[2].port = 1,
  17. .port_info[3].dai_id = BTAUDIO_A2DP_SINK_TX,
  18. .port_info[3].port = 4,
  19. },
  20. // Ganges
  21. {
  22. .ea = GANGES_EA,
  23. // FM is not supported on Ganges. populate with invalid port number
  24. .port_info[0].dai_id = FMAUDIO_TX,
  25. .port_info[0].port = BTFM_INVALID_PORT,
  26. .port_info[1].dai_id = BTAUDIO_TX,
  27. .port_info[1].port = 4,
  28. .port_info[2].dai_id = BTAUDIO_RX,
  29. .port_info[2].port = 1,
  30. .port_info[3].dai_id = BTAUDIO_A2DP_SINK_TX,
  31. .port_info[3].port = 5,
  32. },
  33. };