device-samsung-manta-downstream: remove package (MR 4406)

Signed-off-by: Alexandre Marquet <tb@a-marquet.fr>

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Alexandre Marquet 2023-10-20 13:45:53 +02:00 committed by Oliver Smith
parent dd4fc39824
commit 0480628fe1
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
16 changed files with 0 additions and 365 deletions

View file

@ -1,4 +0,0 @@
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_REMOTE_TYPE}=="USB_DCP", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/lib/device-samsung-manta/autodetect-charger.sh"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_REMOTE_TYPE}=="USB", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/lib/device-samsung-manta/sink-usb-power.sh"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Charging", RUN+="/usr/lib/device-samsung-manta/led-charging-manta.sh"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Discharging", RUN+="/usr/lib/device-samsung-manta/led-discharging-manta.sh"

View file

@ -1 +0,0 @@
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan0", RUN+="/usr/lib/device-samsung-manta/wifi-macaddr.sh"

View file

@ -1,92 +0,0 @@
# Unmaintained: Downstream port, only for testing. Use mainline port (samsung-manta)!
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-manta-downstream
pkgdesc="Google Nexus 10"
pkgver=0.5
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-manta-downstream mkbootimg watchdog-kick alsa-ucm-conf"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
deviceinfo
pointercal
modules-load.conf
100-manta-charging.rules
110-wlan-mac.rules
autodetect-charger.sh
sink-usb-power.sh
led-charging-manta.sh
led-discharging-manta.sh
wifi-macaddr.sh
networkmanager.conf
ucm/Manta-I2S.conf
ucm/HiFi.conf
ucm/Manta-SPDIF.conf
ucm/SPDIF.conf
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/networkmanager.conf \
"$pkgdir"/etc/NetworkManager/conf.d/10-manta.conf
install -Dm744 "$srcdir"/autodetect-charger.sh \
"$pkgdir"/usr/lib/device-samsung-manta/autodetect-charger.sh
install -Dm744 "$srcdir"/sink-usb-power.sh \
"$pkgdir"/usr/lib/device-samsung-manta/sink-usb-power.sh
install -Dm744 "$srcdir"/led-charging-manta.sh \
"$pkgdir"/usr/lib/device-samsung-manta/led-charging-manta.sh
install -Dm744 "$srcdir"/led-discharging-manta.sh \
"$pkgdir"/usr/lib/device-samsung-manta/led-discharging-manta.sh
install -Dm744 "$srcdir"/wifi-macaddr.sh \
"$pkgdir"/usr/lib/device-samsung-manta/wifi-macaddr.sh
install -Dm644 "$srcdir"/100-manta-charging.rules \
"$pkgdir"/usr/lib/udev/rules.d/100-manta-charging.rules
install -Dm644 "$srcdir"/110-wlan-mac.rules \
"$pkgdir"/usr/lib/udev/rules.d/110-wlan-mac.rules
install -D -m644 "$srcdir"/pointercal \
"$pkgdir"/etc/pointercal
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/Manta-I2S \
"$srcdir"/Manta-I2S.conf \
"$srcdir"/HiFi.conf
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/Manta-SPDIF \
"$srcdir"/Manta-SPDIF.conf \
"$srcdir"/SPDIF.conf
}
nonfree_firmware() {
pkgdesc="Firmware for Samsung Manta (Nexus 10)"
depends="firmware-samsung-manta"
mkdir "$subpkgdir"
}
sha512sums="
f7e430647f49ac7b21c6c90e8ebc03d39bd18a60a5e09eeb77a19c20a2c2bc71f08dec568fbc7bc1abead5c459a0c3fa6243e64c87a0a0dae812badf1b1d143b deviceinfo
4a4a1e478131175d628669c45c780db6eace39653d7c331e13042d315a1d04a1feebbf3ab1caea959f84d3203dcf0402da0a51dfd90728bc0a2a52a069069c52 pointercal
aa65eddbf733af7a8c143f810aa21319ea267bfe473080faba634419146ff14f57e9e07cecdf64aefe0d060bf03564637d606be7b436ccb7de512697097460d5 modules-load.conf
e479dd64f2c27aeeafcc57ea1ae650b382e07a7ea2addf994406b2f64e9b3eff7df451637ceeef85e484be39a8d5a19e35d35c2643b9538b29abf55c67bcecc3 100-manta-charging.rules
37a18d36e1e08ddcc605de73214dc02a9e7737f6a66b2e4be301fca816bbf3c2ba6b5ead1f12c745fd0fa019e2a8e959e4fc20386ad94ca7277d4c7d7f9fb703 110-wlan-mac.rules
edb46f0de37835c7c5a55f47f57acd40012817e0a734153d49033d7aa82404192abdd8f100c93df80702a09698e0d13eb3e26f4bcc86dc427322a2b68498bbb4 autodetect-charger.sh
71a4bf6d25b55acb94fd624625c94cc9c74fe57c4328cddb488f57274443f8c9354c0a5a6f52df40f0ca54ed0713db73f1f90b5fcfd0f8e25ed9cc755b30dea3 sink-usb-power.sh
797f5dce8e27bb5e1fb77a6fa9a917847067f533f14b7b6339703f0aa2969cd8bee686fcdd83e91d21c2fefb6d44365f6b5b0c7726950febfee8a99f9faf8be7 led-charging-manta.sh
a6c9ac55b8d343bcef8765498b450d3e17993b7ad72b274c2fe3e9d3b1a94f917f3790a3595394c0a4de5f1debffbcfbfccd1e4eb637604d6a3da54741cf6091 led-discharging-manta.sh
ef18bd3e5c4c8c69dce3293c9e70fa0b30820ba12cb8217346b63392db95513169c31e9bf730aac5cecea15e2cda4166b093bbf0e456055a5432e57400ecb9b1 wifi-macaddr.sh
e4b07d07000e7647bd7b1a7cc9ff93d90873356aeb47fc727a7e2724a998c44550e640b5eaa4f34739c585366fd46fef709a9f6d1d66904ecabf6b99809e16a4 networkmanager.conf
20bd1a5ced8f816c931353abb939936f3c71c5ae1e7a6736dc7c596e721fd59dff70866dc056ef8732fa3cd68f50f08875698696f75ca15e8d618d7778342da4 Manta-I2S.conf
684f1dacb031dcbfd17d55c43db08a1da89d1e7c8197e4c9b8200096e74895469cffabeef3233a4ff380eb92e5fd5618819770ade4f86d1aad9e12e9da7ef122 HiFi.conf
d9e1847f74e46091e2c0bf6cf088cd85ad866fde3e0b8aff8fb02b2dc8869c44977303e40f2be86751ad083838c5a659dd70e434746b92bafd2d0a618f135bcb Manta-SPDIF.conf
5e1bae638cbd88a38b10b45f675bc4e5fdb84155923a945168207e49db2053a31ae9e7b5233936b832ed60b3a367e31dee7b2d85b52b2922dcfa5df1a813aaa7 SPDIF.conf
"

View file

@ -1,2 +0,0 @@
#!/bin/sh
echo 1 > /sys/class/power_supply/smb347-usb/charger_detection

View file

@ -1,32 +0,0 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Google Nexus 10"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-manta-downstream"
deviceinfo_year="2012"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="false"
deviceinfo_screen_width="2560"
deviceinfo_screen_height="1600"
deviceinfo_dev_touchscreen="/dev/input/event2"
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_flash_sparse="true"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
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_heimdall_partition_kernel="boot"
deviceinfo_flash_heimdall_partition_system="system"
deviceinfo_zram_swap_pct="0"

View file

@ -1,3 +0,0 @@
#!/bin/sh
echo 0xFF000000 > /sys/class/leds/as3668/color
echo 50 > /sys/class/leds/as3668/brightness

View file

@ -1,3 +0,0 @@
#!/bin/sh
echo 0 > /sys/class/leds/as3668/brightness
echo 0xFFFFFFFF > /sys/class/leds/as3668/color

View file

@ -1,5 +0,0 @@
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# touch
atmel_mxt_ts

View file

@ -1,5 +0,0 @@
[keyfile]
unmanaged-devices=interface-name:p2p*
[connection]
wifi.cloned-mac-address=preserve

View file

@ -1 +0,0 @@
40845 31 317640 35 25267 538664 65536 2560 1600 0

View file

@ -1,2 +0,0 @@
#!/bin/sh
echo 1 > /sys/class/power_supply/smb347-usb/usb_hc

View file

@ -1,152 +0,0 @@
SectionVerb {
EnableSequence [
]
DisableSequence [
]
Value {
PlaybackPCM "hw:MantaI2S,0"
CapturePCM "hw:MantaI2S,0"
}
}
SectionDevice."Speaker" {
ConflictingDevice [
"Headphones"
]
EnableSequence [
cset "name='DAC1R Mixer AIF1.1 Switch' 1"
cset "name='DAC1L Mixer AIF1.1 Switch' 1"
cset "name='DAC1 Switch' 1"
cset "name='AIF1DAC1 EQ Switch' 1"
cset "name='AIF1DAC1 EQ1 Volume' 3"
cset "name='AIF1DAC1 EQ2 Volume' 8"
cset "name='AIF1DAC1 EQ3 Volume' 16"
cset "name='AIF1DAC1 EQ4 Volume' 10"
cset "name='AIF1DAC1 EQ5 Volume' 11"
cset "name='Speaker Switch' 1"
cset "name='SPKR DAC1 Switch' 1"
cset "name='SPKL DAC1 Switch' 1"
cset "name='Speaker Mixer Volume' 3"
cset "name='Speaker Boost Volume' 5"
cset "name='AIF1DRC1 Mode' Speakers Media"
cset "name='AIF1DAC1 DRC Switch' 1"
cset "name='Speaker Volume' 51"
cset "name='Speaker Volume' 52"
]
DisableSequence [
cset "name='DAC1R Mixer AIF1.1 Switch' 0"
cset "name='DAC1L Mixer AIF1.1 Switch' 0"
cset "name='DAC1 Switch' 0"
cset "name='Speaker Switch' 0"
cset "name='SPKR DAC1 Switch' 0"
cset "name='SPKL DAC1 Switch' 0"
cset "name='Speaker Mixer Volume' 0"
cset "name='AIF1DRC1 Mode' Default"
cset "name='AIF1DAC1 DRC Switch' 0"
]
Value {
PlaybackChannels "2"
}
}
SectionDevice."Headphones" {
ConflictingDevice [
"Speaker"
]
EnableSequence [
cset "name='DAC1R Mixer AIF1.1 Switch' 1"
cset "name='DAC1L Mixer AIF1.1 Switch' 1"
cset "name='DAC1 Switch' 1"
cset "name='AIF1DAC1 EQ Switch' 0"
cset "name='Headphone Switch' 1"
cset "name='Headphone Volume' 24"
]
DisableSequence [
cset "name='DAC1R Mixer AIF1.1 Switch' 0"
cset "name='DAC1L Mixer AIF1.1 Switch' 0"
cset "name='DAC1 Switch' 0"
cset "name='Headphone Switch' 0"
]
Value {
PlaybackChannels "2"
}
}
SectionDevice."Mic" {
Comment "Microphone"
ConflictingDevice [
"Headset"
]
EnableSequence [
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 1"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 1"
cset "name='MIXINR IN2R Switch' 1"
cset "name='MIXINR IN2R Volume' 1"
cset "name='IN2R Switch' 1"
cset "name='AIF1ADCL Source' Right"
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 1"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 1"
cset "name='MIXINL IN2L Switch' 1"
cset "name='MIXINL IN2L Volume' 1"
cset "name='IN2L Switch' 1"
cset "name='AIF1ADCR Source' Left"
cset "name='IN2R Volume' 16"
cset "name='IN2L Volume' 16"
cset "name='AIF1ADC1 HPF Switch' 1"
cset "name='AIF1ADC1 HPF Mode' HiFi"
]
DisableSequence [
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 0"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 0"
cset "name='MIXINR IN2R Switch' 0"
cset "name='IN2R Switch' 0"
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 0"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 0"
cset "name='MIXINL IN2L Switch' 0"
cset "name='IN2L Switch' 0"
]
Value {
CaptureChannels "2"
}
}
SectionDevice."Headset" {
ConflictingDevice [
"Mic"
]
EnableSequence [
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 1"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 1"
cset "name='MIXINR IN1R Switch' 1"
cset "name='MIXINR IN1R Volume' 1"
cset "name='IN1R Switch' 1"
cset "name='AIF1ADCL Source' Right"
cset "name='IN1R Volume' 16"
cset "name='AIF1ADC1 HPF Mode' HiFi"
]
DisableSequence [
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 0"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 0"
cset "name='MIXINR IN1R Switch' 0"
cset "name='IN1R Switch' 0"
]
Value {
CaptureChannels "2"
}
}

View file

@ -1,51 +0,0 @@
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"
}
SectionDefaults [
cdev "hw:MantaI2S"
cset "name='DAC1R Mixer AIF1.1 Switch' 0"
cset "name='DAC1L Mixer AIF1.1 Switch' 0"
cset "name='DAC1 Switch' 0"
cset "name='DAC2 Switch' 0"
cset "name='AIF1DRC1 Mode' Default"
cset "name='AIF1DAC1 DRC Switch' 0"
cset "name='Speaker Switch' 0"
cset "name='SPKR DAC1 Switch' 0"
cset "name='SPKL DAC1 Switch' 0"
cset "name='Speaker Mixer Volume' 0"
cset "name='Headphone Switch' 0"
cset "name='Right Headphone Mux' DAC"
cset "name='Left Headphone Mux' DAC"
cset "name='Left Output Mixer DAC Switch' 0"
cset "name='Right Output Mixer DAC Switch' 0"
cset "name='MIXINL IN1L Switch' 0"
cset "name='IN1L Switch' 0"
cset "name='IN1L PGA IN1LP Switch' 0"
cset "name='IN1L PGA IN1LN Switch' 1"
cset "name='MIXINL IN2L Switch' 0"
cset "name='IN2L Switch' 0"
cset "name='IN2L PGA IN2LP Switch' 0"
cset "name='IN2L PGA IN2LN Switch' 1"
cset "name='MIXINR IN1R Switch' 0"
cset "name='IN1R Switch' 0"
cset "name='IN1R PGA IN1RP Switch' 0"
cset "name='IN1R PGA IN1RN Switch' 1"
cset "name='MIXINR IN2R Switch' 0"
cset "name='IN2R Switch' 0"
cset "name='IN2R PGA IN2RP Switch' 0"
cset "name='IN2R PGA IN2RN Switch' 1"
cset "name='AIF2DACL Mux' AIF3"
cset "name='AIF2DACR Mux' AIF3"
cset "name='AIF2DAC Mux' AIF3DACDAT"
cset "name='AIF3ADC Mux' AIF2ADCDAT"
cset "name='AIF1ADC1L Mixer AIF2 Switch' 0"
cset "name='AIF1ADC1R Mixer AIF2 Switch' 0"
cset "name='AIF1ADC2L Mixer AIF2 Switch' 0"
cset "name='AIF1ADC2R Mixer AIF2 Switch' 0"
cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 0"
cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 0"
]

View file

@ -1,5 +0,0 @@
Syntax 3
SectionUseCase."SPDIF" {
File "SPDIF.conf"
}

View file

@ -1,2 +0,0 @@
SectionDevice."SPDIF" {
}

View file

@ -1,5 +0,0 @@
#!/bin/sh
macaddr=$(cat /proc/cmdline | sed -n "s/^.*androidboot\.wifimacaddr=\(\([0-9A-Fa-f]\{2\}:\)\{5\}[0-9A-Fa-f]\{2\}\).*$/\1/p")
/sbin/ip link set wlan0 address $macaddr