first commit
This commit is contained in:
31
external/packages/bsp/rk3588/usr/share/alsa/cards/HDMI-OUT.conf
vendored
Normal file
31
external/packages/bsp/rk3588/usr/share/alsa/cards/HDMI-OUT.conf
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# configuration for HDMI connection which just expose the
|
||||
# audio out device
|
||||
|
||||
<confdir:pcm/hdmi.conf>
|
||||
|
||||
HDMI-OUT.pcm.hdmi.0 {
|
||||
@args [ CARD DEVICE CTLINDEX AES0 AES1 AES2 AES3 ]
|
||||
@args.CARD {
|
||||
type string
|
||||
}
|
||||
@args.DEVICE {
|
||||
type integer
|
||||
}
|
||||
@args.CTLINDEX {
|
||||
type integer
|
||||
}
|
||||
@args.AES0 {
|
||||
type integer
|
||||
}
|
||||
@args.AES1 {
|
||||
type integer
|
||||
}
|
||||
@args.AES2 {
|
||||
type integer
|
||||
}
|
||||
@args.AES3 {
|
||||
type integer
|
||||
}
|
||||
type hw
|
||||
card $CARD
|
||||
}
|
||||
65
external/packages/bsp/rk3588/usr/share/alsa/cards/aliases.conf
vendored
Normal file
65
external/packages/bsp/rk3588/usr/share/alsa/cards/aliases.conf
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# Define aliases for various drivers
|
||||
#
|
||||
|
||||
YMF724 cards.YMF744
|
||||
YMF724F cards.YMF744
|
||||
YMF740 cards.YMF744
|
||||
YMF740C cards.YMF744
|
||||
YMF754 cards.YMF744
|
||||
CMIPCI cards.CMI8338
|
||||
CMI8738 cards.CMI8338
|
||||
CMI8738-SWIEC cards.CMI8338-SWIEC
|
||||
CMI8738-MC4 cards.CMI8738-MC6
|
||||
'E-mu APS' cards.EMU10K1
|
||||
'GUS MAX' cards.GUS
|
||||
'GUS ACE' cards.GUS
|
||||
'GUS Extreme' cards.GUS
|
||||
'AMD InterWave' cards.GUS
|
||||
'Dynasonic 3-D' cards.GUS
|
||||
'InterWave STB' cards.GUS
|
||||
au8810 cards.AU8810
|
||||
au8820 cards.AU8820
|
||||
au8830 cards.AU8830
|
||||
Prodigy71 cards.Aureon71
|
||||
Prodigy71LT cards.Aureon71
|
||||
Prodigy71HIFI cards.Aureon71
|
||||
Aureon71Univ cards.Aureon71
|
||||
VIA82XX-MODEM cards.ICH-MODEM
|
||||
'MPU-401 UART' cards.MPU-401
|
||||
'VX222/Old' cards.VX222
|
||||
'VX222/v2' cards.VX222
|
||||
'VX222/Mic' cards.VX222
|
||||
'CMI8330/C3D' cards.CMI8330
|
||||
'SB AWE' cards.SBAWE
|
||||
'SB Pro' cards.SBPro
|
||||
'PMac Burgundy' cards.PMac
|
||||
'PMac DACA' cards.PMac
|
||||
'PMac Tumbler' cards.PMac
|
||||
'PMac Snapper' cards.PMac
|
||||
'PMac Screamer' cards.PMac
|
||||
'PMac AWACS' cards.PMac
|
||||
'PMac Toonie' cards.PMacToonie
|
||||
AppleOnbdAudio cards.PMacToonie
|
||||
'USB US-X2Y' cards.US-X2Y
|
||||
'Serial MIDI' cards.SerialMIDI
|
||||
'Prodif Plus' cards.ProdifPlus
|
||||
ESM1 cards.ES1968
|
||||
ES1978 cards.ES1968
|
||||
Allegro cards.Maestro3
|
||||
Canyon3D-2 cards.Maestro3
|
||||
Azalia cards.HDA-Intel
|
||||
aaci-pl041 cards.AACI
|
||||
AV66 cards.CMI8788
|
||||
AV100 cards.CMI8788
|
||||
AV200 cards.CMI8788
|
||||
CMI8786 cards.CMI8788
|
||||
CMI8787 cards.CMI8788
|
||||
pistachio cards.pistachio-card
|
||||
VC4-HDMI cards.vc4-hdmi
|
||||
rockchip-hdmi0 cards.HDMI-OUT
|
||||
|
||||
<confdir:ctl/default.conf>
|
||||
<confdir:pcm/default.conf>
|
||||
<confdir:pcm/dmix.conf>
|
||||
<confdir:pcm/dsnoop.conf>
|
||||
17
external/packages/bsp/rk3588/usr/share/alsa/ucm2/README.md
vendored
Normal file
17
external/packages/bsp/rk3588/usr/share/alsa/ucm2/README.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
Use Case Configuration files
|
||||
----------------------------
|
||||
|
||||
Library directories:
|
||||
|
||||
platforms/
|
||||
codecs/
|
||||
dsps/
|
||||
|
||||
Those directories are not inspected for the list of
|
||||
available UCM configurations. They contain files
|
||||
included from other UCMs.
|
||||
|
||||
Syntax, value names
|
||||
-------------------
|
||||
|
||||
https://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=include/use-case.h
|
||||
23
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-dp0/Hdmi.conf
vendored
Executable file
23
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-dp0/Hdmi.conf
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
# Usecase for device HDMI0/Display Port stereo playback on rockchip platforms
|
||||
# For Audio in I2S mode
|
||||
|
||||
SectionDevice."DP0" {
|
||||
Comment "DP Port"
|
||||
|
||||
Value {
|
||||
PlaybackPriority 500
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
If.1 {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "iface=CARD,name='rockchip-dp0 Jack'"
|
||||
}
|
||||
True {
|
||||
JackControl "rockchip-dp0 Jack"
|
||||
}
|
||||
False {
|
||||
JackControl "rockchip-dp0 Jack"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-dp0/rockchip-dp0.conf
vendored
Executable file
8
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-dp0/rockchip-dp0.conf
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
Syntax 2
|
||||
|
||||
Comment "Rockchip DP card"
|
||||
|
||||
SectionUseCase."HDMI" {
|
||||
File "Hdmi.conf"
|
||||
Comment "DP Port"
|
||||
}
|
||||
116
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-es8388/HiFi.conf
vendored
Normal file
116
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-es8388/HiFi.conf
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
SectionVerb {
|
||||
Value {
|
||||
MinBufferLevel "512"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Speaker Switch' off"
|
||||
cset "name='Headphone Switch' off"
|
||||
cset "name='Headset Mic Switch' off"
|
||||
cset "name='Main Mic Switch' off"
|
||||
cset "name='Speaker Switch' off"
|
||||
cset "name='Headphone Switch' off"
|
||||
cset "name='Headset Mic Switch' off"
|
||||
cset "name='Main Mic Switch' off"
|
||||
cset "name='PCM Volume' 192"
|
||||
cset "name='Output 1 Playback Volume' 27"
|
||||
cset "name='Output 2 Playback Volume' 27"
|
||||
cset "name='Capture Digital Volume' 192"
|
||||
cset "name='Left Channel Capture Volume' 3"
|
||||
cset "name='Right Channel Capture Volume' 3"
|
||||
cset "name='Left Mixer Left Playback Switch' on"
|
||||
cset "name='Right Mixer Right Playback Switch' on"
|
||||
cset "name='Capture Mute' off"
|
||||
cset "name='Right PGA Mux' DifferentialR"
|
||||
cset "name='Left PGA Mux' DifferentialL"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Speaker"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headphones"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Speaker Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Speaker Switch' off"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Mic" {
|
||||
Comment "Internal Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headset"
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 100
|
||||
CapturePCM "hw:${CardId}"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Differential Mux' Line 2"
|
||||
cset "name='Main Mic Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Main Mic Switch' off"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
ConflictingDevice [
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 200
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
JackControl "Headphone Jack"
|
||||
JackHWMute "Speaker"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Headphone Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='Headphone Switch' off"
|
||||
]
|
||||
}
|
||||
|
||||
SectionDevice."Headset" {
|
||||
Comment "Headset Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"Mic"
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 200
|
||||
CapturePCM "hw:${CardId}"
|
||||
JackControl "Headset Mic Jack"
|
||||
JackHWMute "Mic"
|
||||
}
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Differential Mux' Line 1"
|
||||
cset "name='Headset Mic Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Headset Mic Switch' off"
|
||||
]
|
||||
}
|
||||
8
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-es8388/rockchip-es8388.conf
vendored
Normal file
8
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-es8388/rockchip-es8388.conf
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Syntax 2
|
||||
|
||||
Comment "Rockchip ES8388 card"
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Default"
|
||||
}
|
||||
23
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-hdmi0/Hdmi.conf
vendored
Normal file
23
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-hdmi0/Hdmi.conf
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# Usecase for device HDMI0/Display Port stereo playback on rockchip platforms
|
||||
# For Audio in I2S mode
|
||||
|
||||
SectionDevice."HDMI0" {
|
||||
Comment "HDMI"
|
||||
|
||||
Value {
|
||||
PlaybackPriority 300
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
If.1 {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "iface=CARD,name='rockchip-hdmi0 Jack'"
|
||||
}
|
||||
True {
|
||||
#JackControl "rockchip-hdmi0 Jack"
|
||||
}
|
||||
False {
|
||||
#JackControl "rockchip-hdmi0 Jack"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-hdmi0/rockchip-hdmi0.conf
vendored
Normal file
8
external/packages/bsp/rk3588/usr/share/alsa/ucm2/rockchip-hdmi0/rockchip-hdmi0.conf
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Syntax 2
|
||||
|
||||
Comment "Rockchip HDMI card"
|
||||
|
||||
SectionUseCase."HDMI" {
|
||||
File "Hdmi.conf"
|
||||
Comment "HDMI"
|
||||
}
|
||||
135
external/packages/bsp/rk3588/usr/share/alsa/ucm2/ucm.conf
vendored
Normal file
135
external/packages/bsp/rk3588/usr/share/alsa/ucm2/ucm.conf
vendored
Normal file
@@ -0,0 +1,135 @@
|
||||
#
|
||||
# This is the toplevel file included from the alsa-lib.
|
||||
#
|
||||
# It allows to add extra lookups for the old kernels or so.
|
||||
#
|
||||
# You may specify the directory (relative to the toplevel) and
|
||||
# the master configuration file which defines the verbs.
|
||||
#
|
||||
|
||||
#
|
||||
# Syntax version is reset for the master configuration file.
|
||||
#
|
||||
|
||||
Syntax 3
|
||||
|
||||
Define.V1 "" # non-empty string to enable ucm v1 paths
|
||||
Define.V2Module yes # empty string to disable
|
||||
Define.V2Name yes # empty string to disable
|
||||
|
||||
If.driver {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${CardNumber}"
|
||||
}
|
||||
True {
|
||||
#
|
||||
# The probed path for no-hw-card:
|
||||
#
|
||||
# ucm2/${OpenName}/${OpenName}.conf
|
||||
#
|
||||
UseCasePath {
|
||||
legacy {
|
||||
Directory "${OpenName}"
|
||||
File "${OpenName}.conf"
|
||||
}
|
||||
}
|
||||
}
|
||||
False {
|
||||
|
||||
#
|
||||
# The probed path when hw-card is found:
|
||||
#
|
||||
# ucm2/${KernelModule}/${KernelModule}.conf
|
||||
# ucm2/${CardDriver}/${CardLongName}.conf
|
||||
# ucm2/${CardDriver}/${CardDriver}.conf
|
||||
#
|
||||
|
||||
If.V2Module {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${var:V2Module}"
|
||||
}
|
||||
False {
|
||||
Define.KernelModulePath "class/sound/card${CardNumber}/device/driver"
|
||||
Define.KernelModule "${sys:$KernelModulePath}"
|
||||
UseCasePath.module {
|
||||
Directory "module"
|
||||
File "${var:KernelModule}.conf"
|
||||
}
|
||||
}
|
||||
}
|
||||
If.V2Name {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${var:V2Name}"
|
||||
}
|
||||
False.UseCasePath {
|
||||
longname {
|
||||
Directory "${CardDriver}"
|
||||
File "${CardLongName}.conf"
|
||||
}
|
||||
driver {
|
||||
Directory "${CardDriver}"
|
||||
File "${CardDriver}.conf"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
If.V1 {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${var:V1}"
|
||||
}
|
||||
False.If.v1_driver {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${CardNumber}"
|
||||
}
|
||||
True {
|
||||
#
|
||||
# The probed path for no-hw-card:
|
||||
#
|
||||
# ucm/${OpenName}/${OpenName}.conf
|
||||
#
|
||||
UseCasePath.v1_legacy {
|
||||
Version 1
|
||||
Directory "${OpenName}"
|
||||
File "${OpenName}.conf"
|
||||
}
|
||||
}
|
||||
False {
|
||||
#
|
||||
# The ucm v1 probed path when hw-card is found:
|
||||
#
|
||||
# ucm/${CardLongName}/${CardLongName}.conf
|
||||
# ucm/${CardName}/${CardName}.conf or \
|
||||
# ucm/${OpenName}/${OpenName}.conf
|
||||
#
|
||||
UseCasePath.v1_longname {
|
||||
Version 1
|
||||
Directory "${CardLongName}"
|
||||
File "${CardLongName}.conf"
|
||||
}
|
||||
If.v1_hw {
|
||||
Condition {
|
||||
Type String
|
||||
Haystack "${OpenName}"
|
||||
Needle "hw:"
|
||||
}
|
||||
True.UseCasePath.v1_cardnamme {
|
||||
Version 1
|
||||
Directory "${CardName}"
|
||||
File "${CardName}.conf"
|
||||
}
|
||||
False.UseCasePath.v1_openname {
|
||||
Version 1
|
||||
Directory "${OpenName}"
|
||||
File "${OpenName}.conf"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user