aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/alsa/asoundrc.sample
blob: bd5b3b7ff68bd06b31dc479e753e435a5b46c5b1 (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
# Dmixer mixe multiple audio channel into one
pcm.SoftMixer { 
    type dmix 
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666	# mixing for all users

    # Define target effective sound card (cannot be a plugin)
    slave { 
        pcm "hw:v1340"  #Jabra Solmate 
        period_time 0 
        period_size 1024 
        buffer_size 8192
        rate 44100
    }

    # DMIX can only map two channels
    bindings { 
        0 0 
        1 1 
    } 
} 

pcm.music {
    type        softvol
    slave.pcm   "SoftMixer"
    control {
        name    "MasterMusic"
        card    0
    }

    # Make this plugin visible from aplay -L
    hint {
      show on
      description "Music"
    }    
}

pcm.navi {
    type           softvol
    slave {
        pcm         "SoftMixer" 
    }
    control {
        name        "MasterNavi"
        card        0
    }
    hint {
      show on
      description "Navi"
   }
}

pcm.notif {
    type           softvol
    slave {
        pcm         "SoftMixer" 
    }
    control {
        name        "MasterNotif" 
        card        0
    }
    hint {
      show on
      description "Notif"
    }
}

pcm.!default {
    type            plug
    slave.pcm       "SoftMixer"   #make use of Softvol
}