asus-tf700t: new device (ASUS Transformer Infinity) (MR 2123)

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
Svyatoslav Ryhel 2021-03-15 13:30:32 +02:00 committed by Oliver Smith
parent 5886e238ba
commit 165094c86e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
7 changed files with 268 additions and 0 deletions

View file

@ -0,0 +1,58 @@
# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
pkgname=device-asus-tf700t
pkgdesc="Asus Transformer Infinity TF700T"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-grate mkbootimg mesa-dri-gallium mkbootimg alsa-ucm-conf asus-transformer-blobtools"
makedepends="devicepkg-dev"
subpackages="$pkgname-phosh
$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo
rootston.ini
ucm/tegra-hda.conf
ucm/tegra-hda-HiFi.conf
ucm/TF700T_RT5631.conf
ucm/TF700T_RT5631-HiFi.conf"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
# Alsa usecase manager config
install -D -m644 "$srcdir"/TF700T_RT5631.conf \
"$pkgdir"/usr/share/alsa/ucm2/TF700T_RT5631/TF700T_RT5631.conf
install -D -m644 "$srcdir"/TF700T_RT5631-HiFi.conf \
"$pkgdir"/usr/share/alsa/ucm2/TF700T_RT5631/HiFi.conf
install -D -m644 "$srcdir"/tegra-hda.conf \
"$pkgdir"/usr/share/alsa/ucm2/tegra-hda/tegra-hda.conf
install -D -m644 "$srcdir"/tegra-hda-HiFi.conf \
"$pkgdir"/usr/share/alsa/ucm2/tegra-hda/HiFi.conf
}
phosh() {
install_if="$pkgname postmarketos-ui-phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
}
nonfree_firmware() {
pkgdesc="Asus Transformers WiFi & BT firmware"
depends="firmware-asus-transformer linux-firmware-brcm linux-firmware-cypress"
mkdir "$subpkgdir"
}
sha512sums="6b6839d5a965a0b10667541115fe762a7cc28818d53bb1102847db4694a7ddca8977c5962f256cc302f69a7144ea952db22b8844f7da5ad07382ffa86f8ff22b deviceinfo
c15e0d54e311892556cf9447d8431b6239fcce29bb011bf4931c909b4d59af2f00b87637b0eb67554ccd063f569ad24c868433c551e27354b3b9af604a08f3d8 rootston.ini
5dead806f7568fad5f240957158864faab7a4dbbdae18b2a18110f64caa0254a001fbd5711789718cfde055528af57cebca11bbc4d7f55e12c9853f3d9e8534c tegra-hda.conf
1cdaa43350d69a021d2ff0b8b91ab537032b6861003bea506e429948c615934f6ee56cc4603dd94d4923c8be4a52a63cac110761b51167761c096b6880ce6c0c tegra-hda-HiFi.conf
5a692d53097c5791bfa6adf149947ec95e9a8392dc14581a62b20ce086ff40afc1a5988dcaa5083df44cfaea51902a9ec09ee9d623df2e595bf1ef1fb1c1f1e8 TF700T_RT5631.conf
9dc4bd7f3b5f24323655ef997d80d310bea00fabfd9bb5f1fbe06682b336ed5ad6ead0b81f84ba83eda0a0202ca279e78b792e6c1bc044315ecbe92fb382d51e TF700T_RT5631-HiFi.conf"

View file

@ -0,0 +1,31 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Asus Transformer Infinity TF700T"
deviceinfo_manufacturer="Asus"
deviceinfo_codename="asus-tf700t"
deviceinfo_year="2012"
deviceinfo_dtb="tegra30-asus-tf700t"
deviceinfo_append_dtb="true"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1920"
deviceinfo_screen_height="1200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_blobpack="sign"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_fastboot_max_size="760"

View file

@ -0,0 +1,8 @@
#[core]
#xwayland=false
[cursor:seat0]
map-to-output:DSI-1
[output:DSI-1]
scale = 1.5

View file

@ -0,0 +1,131 @@
# Use case Configuration for ASUS Transformer Prime TF201
SectionVerb {
EnableSequence [
cset "name='OUTVOL Channel Switch' on"
cset "name='AXO2 Playback Switch' on"
cset "name='AXO2MIX Mixer OUTVOLL Playback Switch' on"
cset "name='PCM Playback Switch' on"
cset "name='PCM Playback Volume' 255"
# Speakers
cset "name='Speaker Playback Switch' off"
cset "name='Speaker Playback Volume' 10"
cset "name='Int Spk Switch' on"
cset "name='SPK Ratio Control' 1.99x"
cset "name='SPKMIXL Mixer DACL Playback Switch' on"
cset "name='Left SPKVOL Mux' SPKMIXL"
cset "name='SPOLMIX Mixer SPKVOLL Playback Switch' on"
cset "name='SPOL Mux' SPOLMIX"
cset "name='SPKMIXR Mixer DACR Playback Switch' on"
cset "name='Right SPKVOL Mux' SPKMIXR"
cset "name='SPORMIX Mixer SPKVOLR Playback Switch' on"
cset "name='SPOR Mux' SPORMIX"
# Headphones
cset "name='HP Playback Switch' off"
cset "name='HP Playback Volume' 20"
cset "name='OUTMIXL Mixer DACL Playback Switch' on"
cset "name='Left HPVOL Mux' OUTMIXL"
cset "name='Left OUTVOL Mux' OUTMIXL"
cset "name='HPL Mux' Left HPVOL"
cset "name='OUTMIXR Mixer DACR Playback Switch' on"
cset "name='Right HPVOL Mux' OUTMIXR"
cset "name='Right OUTVOL Mux' OUTMIXR"
cset "name='HPR Mux' Right HPVOL"
# Mics
cset "name='DMIC Switch' off"
cset "name='DMIC Capture Switch' off"
cset "name='Int Mic Switch' off"
cset "name='MIC1 Mode Control' Differential"
cset "name='MIC2 Mode Control' Single ended"
cset "name='MIC1 Boost Volume' 6"
cset "name='MIC2 Boost Volume' 6"
cset "name='RECMIXL Mixer MIC1_BST1 Capture Switch' on"
#cset "name='Mic Jack Switch' off"
cset "name='MONO Mux' MONOMIX"
cset "name='MONO Playback Switch' off"
cset "name='MONOIN Mode Control' Differential"
cset "name='MONOIN_RX Capture Volume' 25"
cset "name='AXI Capture Volume' 23"
]
}
SectionDevice."Speakers" {
Comment "Speakers"
EnableSequence [
cset "name='Speaker Playback Switch' on"
cset "name='Int Spk Switch' on"
]
DisableSequence [
cset "name='Int Spk Switch' off"
cset "name='Speaker Playback Switch' off"
]
Value {
PlaybackPCM "hw:${CardId}"
PlaybackChannels 2
PlaybackPriority 200
PlaybackVolume "Speaker Playback Volume"
PlaybackSwitch "Speaker Playback Switch"
}
}
SectionDevice."Headphones" {
Comment "Headphones"
EnableSequence [
cset "name='HP Playback Switch' on"
]
DisableSequence [
cset "name='HP Playback Switch' off"
]
Value {
PlaybackPCM "hw:${CardId}"
PlaybackChannels 2
PlaybackPriority 100
PlaybackVolume "HP Playback Volume"
PlaybackSwitch "HP Playback Switch"
JackControl "Headphone Jack"
}
}
SectionDevice."InternalMic" {
Comment "Internal Microphone"
ConflictingDevice [
]
EnableSequence [
cset "name='DMIC Capture Switch' on"
cset "name='DMIC Switch' on"
cset "name='Int Mic Switch' on"
]
DisableSequence [
cset "name='DMIC Capture Switch' off"
cset "name='DMIC Switch' off"
cset "name='Int Mic Switch' off"
]
Value {
CapturePCM "hw:${CardId}"
CaptureChannels 2
}
}

View file

@ -0,0 +1,8 @@
# Use case Configuration for ASUS Transformer Prime TF201
Syntax 2
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play HiFi quality Music"
}

View file

@ -0,0 +1,24 @@
If.hdmi {
Condition {
Type ControlExists
Control "iface=CARD,name='HDMI/DP,pcm=3 Jack'"
}
True {
SectionDevice."HDMI1" {
Comment "HDMI / DisplayPort Output"
EnableSequence [
cset "name='IEC958 Playback Switch' on"
]
DisableSequence [
cset "name='IEC958 Playback Switch' off"
]
Value {
PlaybackPCM "hw:${CardId},3"
JackControl "HDMI/DP,pcm=3 Jack"
}
}
}
}

View file

@ -0,0 +1,8 @@
# UCM for Nvidia Tegra30 HDMI Audio
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play HiFi quality Music"
}