aboutsummaryrefslogtreecommitdiffstats
path: root/meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/30-AGL-alsa.conf
blob: 9af95413bc28b47e652c6f97c8df37ae107c84be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Default AGL WirePlumber ALSA monitor configuration

monitor.alsa.rules = [
  #
  # Bump priority of well-known output devices
  # Higher priority means it gets selected as the default if it's present
  #

  # USB output
  {
    matches = [
      {
        node.name = "~alsa_output.*"
        api.alsa.card.driver = "USB-Audio"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 1300
        priority.session       = 1300
      }
    }
  }

  # USB input
  {
    matches = [
      {
        node.name = "~alsa_input.*"
        api.alsa.card.driver = "USB-Audio"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 2300
        priority.session       = 2300
      }
    }
  }

  # well-known internal output devices
  {
    matches = [
      # ak4613
      {
        node.name = "~alsa_output.*"
        api.alsa.card.id = "ak4613"
        api.alsa.pcm.device = "0"
      }
      # imx8mq
      {
        node.name = "~alsa_output.*"
        api.alsa.card.id = "wm8524audio"
      }
      # rcarsound
      {
        node.name = "~alsa_output.*"
        api.alsa.card.id = "rcarsound"
        api.alsa.pcm.device = "0"
      }
      # rpi3
      {
        node.name = "~alsa_output.*"
        api.alsa.pcm.name = "bcm2835 ALSA"
      }
      # nanopc-t6
      {
        node.name = "~alsa_output.*"
        api.alsa.card.id = "realtekrt5616co"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 1100
        priority.session       = 1100
      }
    }
  }

  # well-known internal input devices
  {
    matches = [
      # ak4613
      {
        node.name = "~alsa_input.*"
        api.alsa.card.id = "ak4613"
      }
      # imx8mq
      {
        node.name = "~alsa_input.*"
        api.alsa.card.id = "wm8524audio"
      }
      # rcarsound
      {
        node.name = "~alsa_input.*"
        api.alsa.card.id = "rcarsound"
      }
      # nanopc-t6
      {
        node.name = "~alsa_input.*"
        api.alsa.card.id = "realtekrt5616co"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 2100
        priority.session       = 2100
      }
    }
  }
]