Loading

Paste #peoip440a

  1. static struct snd_soc_dai_link machine_dais[] = {
  2.     /* Front End DAI links */
  3.     /* SSP5 - FE DAI Link */
  4.     {
  5.         .name = "Speaker Port",
  6.         .stream_name = "Speaker",
  7.         .cpu_dai_name = "System Pin 5",
  8.         .codec_name = "snd-soc-dummy",
  9.         .codec_dai_name = "snd-soc-dummy-dai",
  10.         .platform_name = "0000:00:0e.0",
  11.         .dpcm_playback = 1,
  12.         .dynamic = 1,
  13.         .nonatomic = 1,
  14.         .trigger = {SND_SOC_DPCM_TRIGGER_POST,
  15.                 SND_SOC_DPCM_TRIGGER_POST},
  16.     },
  17.     {
  18.         .name = "Loopback Port",
  19.         .stream_name = "Loopback",
  20.         .cpu_dai_name = "System Pin 5",
  21.         .codec_name = "snd-soc-dummy",
  22.         .codec_dai_name = "snd-soc-dummy-dai",
  23.         .platform_name = "0000:00:0e.0",
  24.         .dpcm_capture = 1,
  25.         .dynamic = 1,
  26.         .nonatomic = 1,
  27.     },
  28.     /* SSP0 - FE DAI Link */
  29.     {
  30.         .name = "A2B Port",
  31.         .stream_name = "A2B",
  32.         .cpu_dai_name = "System Pin",
  33.         .codec_name = "snd-soc-dummy",
  34.         .codec_dai_name = "snd-soc-dummy-dai",
  35.         .platform_name = "0000:00:0e.0",
  36.         .dpcm_capture = 1,
  37.         .dpcm_playback = 1,
  38.         .dynamic = 1,
  39.         .nonatomic = 1,
  40.         .trigger = {SND_SOC_DPCM_TRIGGER_POST,
  41.                 SND_SOC_DPCM_TRIGGER_POST},
  42.     },
  43.     /* SSP2 - FE DAI Link */
  44.     {
  45.         .name = "HFP Port",
  46.         .stream_name = "HFP",
  47.         .cpu_dai_name = "System Pin 2",
  48.         .codec_name = "snd-soc-dummy",
  49.         .codec_dai_name = "snd-soc-dummy-dai",
  50.         .platform_name = "0000:00:0e.0",
  51.         .dpcm_capture = 1,
  52.         .dpcm_playback = 1,
  53.         .dynamic = 1,
  54.         .nonatomic = 1,
  55.         .trigger = {SND_SOC_DPCM_TRIGGER_POST,
  56.                 SND_SOC_DPCM_TRIGGER_POST},
  57.     },
  58.  
  59.     /* Back End DAI links */
  60.     {
  61.         /* SSP0 - A2B */
  62.         .name = "SSP0-Codec",
  63.         .id = 1,
  64.         .cpu_dai_name = "SSP0 Pin",
  65.         .codec_name = "snd-soc-dummy",
  66.         .codec_dai_name = "snd-soc-dummy-dai",
  67.         .platform_name = "0000:00:0e.0",
  68.         .dpcm_capture = 1,
  69.         .dpcm_playback = 1,
  70.         .no_pcm = 1,
  71.     },
  72.     {
  73.         /* SSP2 - HFP */
  74.         .name = "SSP2-Codec",
  75.         .id = 1,
  76.         .cpu_dai_name = "SSP2 Pin",
  77.         .codec_name = "snd-soc-dummy",
  78.         .codec_dai_name = "snd-soc-dummy-dai",
  79.         .platform_name = "0000:00:0e.0",
  80.         .dpcm_capture = 1,
  81.         .dpcm_playback = 1,
  82.         .be_hw_params_fixup = machine_ssp2_fixup,
  83.         .no_pcm = 1,
  84.     },
  85.     {
  86.         /* SSP5 - Base amplifier */
  87.         .name = "SSP5-Codec",
  88.         .id = 1,
  89.         .cpu_dai_name = "SSP5 Pin",
  90.         .codecs = machine_codecs_components,
  91.         .num_codecs = ARRAY_SIZE(machine_codecs_components),
  92.         .ops = &machine_ssp5_ops,
  93.         .platform_name = "0000:00:0e.0",
  94.         .dpcm_playback = 1,
  95.         .no_pcm = 1,
  96.     },
  97.     {
  98.         /* SSP5 - loopback
  99.          * With this configuration I get a kernel panic. Perhaps it is
  100.          * invalid
  101.          */
  102.         .name = "SSP5-Codec-Loopback",
  103.         .id = 1,
  104.         .cpu_dai_name = "SSP5 Pin Loopback",
  105.         .codec_name = "snd-soc-dummy",
  106.         .codec_dai_name = "snd-soc-dummy-dai",
  107.         .platform_name = "0000:00:0e.0",
  108.         .dpcm_capture = 1,
  109.         .no_pcm = 1,
  110.     }
  111. };