Skip to content

Commit

Permalink
meson: add initial p241 support
Browse files Browse the repository at this point in the history
Add support for the p241 board, the amlogic s905x reference design

Closes: #355
Signed-off-by: Jerome Brunet <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
jbrun3t authored and perexg committed Oct 30, 2023
1 parent 6cf6481 commit be47cc6
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
40 changes: 40 additions & 0 deletions ucm2/Amlogic/p241/p241-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
SectionDevice."Line" {
Comment "Analog Lineout"

EnableSequence [
cset "name='AIU ACODEC SRC' I2S"
cset "name='AIU ACODEC OUT EN Switch' 1"
cset "name='ACODEC Playback Switch' 1"
]

DisableSequence [
cset "name='ACODEC Playback Switch' 0"
cset "name='AIU ACODEC OUT EN Switch' 0"
cset "name='AIU ACODEC SRC' DISABLED"
]

Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},0"
PlaybackChannels 2
PlaybackVolume "ACODEC Playback Volume"
PlaybackMixerElem "ACODEC"
}
}

SectionDevice."HDMI" {
Comment "HDMI"

EnableSequence [
cset "name='AIU HDMI CTRL SRC' I2S"
]

DisableSequence [
cset "name='AIU HDMI CTRL SRC' DISABLED"
]

Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId},0"
}
}
31 changes: 31 additions & 0 deletions ucm2/Amlogic/p241/p241.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Use case for the p241 Amlogic s805x reference design

Syntax 3

SectionUseCase."HiFi" {
File "/Amlogic/p241/p241-HiFi.conf"
Comment "Play HiFi quality Music"
}

FixedBootSequence [
cset "name='AIU SPDIF SRC SEL' SPDIF"
]

BootSequence [
cset "name='AIU ACODEC I2S Lane Select' 0"
cset "name='ACODEC Playback Channel Mode' Stereo"
cset "name='ACODEC Playback Volume' 80%"
cset "name='ACODEC Ramp Rate' Fast"
cset "name='ACODEC Volume Ramp Switch' on"
cset "name='ACODEC Mute Ramp Switch' on"
cset "name='ACODEC Unmute Ramp Switch' on"
cset "name='ACODEC Right DAC Sel' Right"
cset "name='ACODEC Left DAC Sel' Left"
]

SectionDefaults [
cset "name='ACODEC Playback Switch' off"
cset "name='AIU ACODEC OUT EN Switch' off"
cset "name='AIU ACODEC SRC' DISABLED"
cset "name='AIU HDMI CTRL SRC' DISABLED"
]
1 change: 1 addition & 0 deletions ucm2/conf.d/gx-sound-card/GXL-P241.conf

0 comments on commit be47cc6

Please sign in to comment.