forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
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
# Copyright (c) 2022 Rockchip Electronics Co. Ltd.
# Author: Xing Zheng <zhengxing@rock-chips.com>
 
pcm.!default
{
    type asym
    playback.pcm "plug:softvol_ply"
    capture.pcm "plug:softvol_cap"
}
 
pcm.dmixer {
    type dmix
    ipc_key 5978293 # must be unique for all dmix plugins!!!!
    ipc_key_add_uid yes
    slave {
        pcm "hw:0,0"
        channels 2
        period_size 1024
        buffer_size 4096
    }
    bindings {
        0 0
        1 1
    }
}
 
pcm.dsnooper {
    type dsnoop
    ipc_key 5978294 # must be unique for all dmix plugins!!!!
    ipc_key_add_uid yes
    slave {
        pcm "hw:0,0"
        channels 2
        period_size 1024
        buffer_size 4096
    }
    bindings {
        0 0
        1 1
    }
}
 
pcm.softvol_ply {
    type softvol
    slave.pcm "dmixer"
    control {
        name "MasterP Volume"
        card 0
        device 0
    }
    min_dB -40.0
    max_dB 0.0
    resolution 101
}
 
pcm.softvol_cap {
    type softvol
     slave.pcm "dsnooper"
    control {
        name "MasterC Volume"
        card 0
        device 0
    }
    min_dB -20.0
    max_dB 15.0
    resolution 101
}