Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions projects/ROCKNIX/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
<file>rk3566-powkiddy-x55</file>
<file>rk3566-powkiddy-x35s</file>
<file>rk3568-anbernic-rg-ds</file>
<file>rk3568-anbernic-rg-ds-plus</file>
</Specific>
</RK3566>
<RK3576 mkimage_options="dtb,extlinux,uboot" fdt="device_trees/rk3576-anbernic-rg-vita-pro.dtb" fdt_type="fdt" dtb_prefix="rockchip">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
SectionDevice."Headphones" {
Comment "Headphones"

EnableSequence [
cset "name='Playback Mux' HP"
]

Value {
PlaybackMixerElem "Master Playback Volume"
PlaybackPriority 200
PlaybackPCM "hw:${CardId}"
JackControl "Headphones Jack"
}
}

SectionDevice."Mic" {
Comment "Microphone"

Value {
CapturePriority 100
CapturePCM "hw:${CardId}"
CaptureMixerElem "Mic Capture Gain"
CaptureMasterElem "Master Capture Volume"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SectionDevice."Speaker" {
Comment "Internal Speaker"

Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId}"
PlaybackChannels 2
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Use case configuration for the Anbernic RG DS Plus
#
# 2x awinic aw88166 speakers on I2S3.

Syntax 4

SectionUseCase."HiFi" {
File "/Anbernic/RG-DS-Plus/SpeakerHiFi.conf"
Comment "Play HiFi quality music"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Use case configuration for the Anbernic RG DS Plus
#
# rk817 codec: headphones and microphone only, speakers are on the aw88166 card.

Syntax 4

SectionUseCase."HiFi" {
File "/Anbernic/RG-DS-Plus/HeadphonesHiFi.conf"
Comment "Play HiFi quality music"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Anbernic RG DS Plus: the rk817 card only has a jack-detected headphone
# output, so ACP marks its HiFi profile unavailable while unplugged and
# WirePlumber turns the whole card off, taking the microphone with it.
# Keep the HiFi profile active; speakers live on the aw88166 card.
#
# UCM priorities do not carry across cards, so prefer the headphone sink
# explicitly. It is skipped as a default while its jack route is unavailable.

device.profile.priority.rules = [
{
matches = [
{
alsa.card_name = "rk817_hp"
}
]
actions = {
update-props = {
priorities = [ "HiFi" ]
}
}
}
]

monitor.alsa.rules = [
{
matches = [
{
node.name = "~alsa_output.*sound_card0.HiFi__Headphones__sink"
alsa.card_name = "rk817_hp"
}
]
actions = {
update-props = {
priority.driver = 1100
priority.session = 1100
}
}
}
]
Loading