Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Witam.
Uruchomiłem debiana 12.1 w chroocie na androidzie.
Najpierw zbudowałem na emulatorze przy pomocy debootstrap obraz dla architektury ARM64
a następnie przeniosłem na partycję androida i uruchomiłem.
Po uruchomieniu zainstalowałem alsa-utils żeby mieć dźwięk przez alse.
Jednak dźwięk mi nie działa i speaker-test kończy się błędem we/wy.
Alsamixer działa i wszystko wydaję się że jest dobrze ustawione ale dźwięku brak.
Uruchamiam to na fabrycznie zrootowanym Tvboxie z androidem 11.
Partycje systemowe są montowane w trybie rw (można pisać).
root@localhost:/# speaker-test -c 2
speaker-test 1.2.8
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 65536
Period size range from 16 to 32768
Using max buffer size 65536
Periods = 4
was set period_size = 16384
was set buffer_size = 65536
0 - Front Left
Write error: -5,Błąd wejścia/wyjścia
xrun_recovery failed: -5,Błąd wejścia/wyjścia
Transfer failed: Błąd wejścia/wyjścia
root@localhost:/# cat /proc/asound/devices
0: [ 0] : control
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
18: [ 0- 2]: digital audio playback
20: [ 0- 4]: digital audio playback
21: [ 0- 5]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
26: [ 0- 2]: digital audio capture
27: [ 0- 3]: digital audio capture
28: [ 0- 4]: digital audio capture
30: [ 0- 6]: digital audio capture
32: [ 1] : control
33: : timer
56: [ 1- 0]: digital audio capture
root@localhost:/# cat /proc/asound/cards
0 [AMLAUGESOUND ]: AML-AUGESOUND - AML-AUGESOUND
AML-AUGESOUND
1 [Mic ]: USB-Audio - ZY Control Mic
ZY.Ltd ZY Control Mic at usb-xhci-hcd.0.auto-2, full speed
root@localhost:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AMLAUGESOUND [AML-AUGESOUND], device 0: TDM-A-dummy-alsaPORT-pcm soc:dummy-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 1: TDM-B-T9015-audio-hifi-alsaPORT-i2s fe01a000.t9015-1 []
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 2: TDM-C-dummy-alsaPORT-i2s2hdmi soc:dummy-2 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 4: SPDIF-dummy-alsaPORT-spdif soc:dummy-4 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 5: SPDIF-B-dummy-alsaPORT-spdifb soc:dummy-5 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@localhost:/#
Offline
W moim cegłofonie z Andkiem:
uname -m aarch64
lsof /dev/snd/* COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME audio.service 598 audioserve 8u CHR 116,2 0t0 17998 /dev/snd/controlC0 audio.service 598 audioserve 9u CHR 116,2 0t0 17998 /dev/snd/controlC0 audio.service 598 audioserve 38u CHR 116,2 0t0 17998 /dev/snd/controlC0 audio.service 598 audioserve 39u CHR 116,2 0t0 17998 /dev/snd/controlC0 audio.service 598 audioserve 40w CHR 116,65 0t0 14201 /dev/snd/hwC0D1000
Jeżeli audio.service trzyma urządzenia dźwiękowe w trybie blokującym, to musisz wysłać dźwięk do tego audio.service albo przez socket unix, albo po sieci.
Chyba, że w Androidzie masz możliwości użycia alsy z biblioteką dmix, ale wątpię, aby to było możliwe w prosty sposób.
Ostatnio edytowany przez Jacekalex (2023-09-24 02:53:48)
Online
root@localhost:~# uname -m
armv8l
root@localhost:~# lsof /dev/snd/*
lsof: no pwd entry for UID 1041
lsof: no pwd entry for UID 1041
lsof: no pwd entry for UID 1041
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lsof: no pwd entry for UID 1041
audio.ser 346 1041 13u CHR 116,0 0t0 2465 /dev/snd/controlC0
lsof: no pwd entry for UID 1041
audio.ser 346 1041 15u CHR 116,0 0t0 2465 /dev/snd/controlC0
lsof: no pwd entry for UID 1041
audio.ser 346 1041 18u CHR 116,17 0t0 19895 /dev/snd/pcmC0D1
Wolałbym uzyskać dźwięk bezpośrednio z alsy bez połączeń przez sieć czy socket.
Na androidzie mam zainstalowane tinyalsa z tinymix.
127|:/ # tinymix
Mixer name: 'AML-AUGESOUND'
Number of controls: 61
ctl type num name value
0 INT 2 DAC Digital Playback Volume 251 251
1 ENUM 1 DAC Extra Digital Gain 0dB
2 ENUM 1 PDM Filter Mode Filter Mode 1
3 ENUM 1 PDM HCIC shift gain from coeff keep with coeff
4 ENUM 1 PDM Dclk PDM Dclk 3.072m, support 8k/16k/32k/48k/64k/96k
5 ENUM 1 PDM Low Power mode PDM Normal Mode
6 ENUM 1 PDM Train Disabled
7 ENUM 1 PDM Bypass PCM Data
8 INT 1 PDM Gain 0
9 INT 1 SPDIF CLK Fine Setting 6143970
10 ENUM 1 SPDIFIN audio samplerate N/A
11 ENUM 1 SPDIFIN Audio Type LPCM
12 ENUM 1 Audio spdif format 2 CH PCM
13 BOOL 1 Audio spdif mute Off
14 ENUM 1 Audio spdifin source spdifin pad
15 BOOL 1 Audio hdmi-out mute Off
16 BOOL 1 Audio spdif_b mute Off
17 ENUM 1 Audio spdif_b format 2 CH PCM
18 ENUM 1 Spdif to HDMITX Select Spdif
19 INT 1 SPDIF_B CLK Fine Setting 6143970
20 ENUM 1 Loopback datain source PDMIN
21 ENUM 1 Loopback tdmin lb source TDMOUT_B
22 INT 1 TDM MCLK Fine Setting 12287939
23 ENUM 1 Lineout left P switch LOLP_SEL_DACL
24 ENUM 1 Lineout left N switch LOLN_SEL_DACL_INV
25 ENUM 1 Lineout right P switch LORP_SEL_DACR
26 ENUM 1 Lineout right N switch LORN_SEL_DACR_INV
27 ENUM 1 Audio In Source (null)
28 ENUM 1 Audio Out Sink (null)
29 BOOL 1 AED DC cut enable Off
30 BOOL 1 AED Noise Detect enable Off
31 BOOL 1 AED EQ enable Off
32 BYTE 400 AED EQ Parameters 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
33 BOOL 1 AED Multi-band DRC enable Off
34 BYTE 80 AED Crossover Filter Parameters 00 00 03 19 00 00 06 32 00 00 03 19 03 04 fa 54 00 7b 12 10 00 7d 85 ef 03 04 f4 22 00 7d 85 ef 03 04 fa 54 00 7b 12 10 00 08 38 8a 00 10 71 13 00 08 38 8a 03 81 c1 39 00 1f 20 ee 00 47 57 ed 03 71 50 25 00 47 57 ed 03 81 c1 39 00 1f 20 ee
35 BYTE 120 AED Multi-band DRC Parameters 00 01 2a a0 00 7e d5 60 00 00 0e ff 00 7f f1 01 00 00 95 a8 00 7f 6a 58 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 02 e5 78 00 7d 1a 88 00 00 0e ff 00 7f f1 01 00 01 2a a0 00 7e d5 60 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 02 e5 78 00 7d 1a 88 00 00 0e ff 00 7f f1 01 00 01 2a a0 00 7e d5 60 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00
36 BOOL 1 AED Full-band DRC enable Off
37 BYTE 70 AED Full-band DRC Parameters 00 00 4a ea 00 7f b5 16 00 02 e5 78 00 7d 1a 88 00 00 00 00 00 00 00 00 00 00 0e ff 00 7f f1 01 00 00 0e ff 00 7f f1 01 ce 00 00 00 00 04 00 00 00 05 ba 29 00 7a 45 d7 00 00 00 90 ce 00 00 00 00 04 00 00 00 00
38 INT 1 AED Lch volume 207
39 INT 1 AED Rch volume 207
40 INT 1 AED master volume 831
41 INT 1 AED Clip THD 8388607
42 INT 1 AED Mixer Gain LL 262144
43 INT 1 AED Mixer Gain RL 0
44 INT 1 AED Mixer Gain LR 0
45 INT 1 AED Mixer Gain RR 262144
46 BOOL 1 VAD enable Off
47 ENUM 1 VAD Source sel PDMIN
48 BOOL 1 VAD Switch Off
49 BOOL 1 VAD Test Off
50 INT 1 SPDIFIN Channel Status 0
51 ENUM 1 SPDIFOUT Lane0 Left Channel Swap Swap To CH0
52 ENUM 1 SPDIFOUT Lane0 Right Channel Swap Swap To CH1
53 ENUM 1 SPDIFOUT Mixer Channel Disable Mix
54 INT 1 SPDIFOUT Channel Status 33554688
55 ENUM 1 audio locker enable Disable
56 ENUM 1 audio inskew set 0
57 ENUM 1 tdmout_c binv set 0
58 ENUM 1 Audio HAL Format PCM
59 BYTE 1 AML chip id 32
60 BOOL 1 SPK mute Off
:/ #
Offline
Na próbę uruchomiłem Coreelec z pamięci USB i tam ten sam problem z dźwiękiem.
Czyli dźwięk przez hdmi działa natomiast spdif nie działa.
Dlaczego ten Linux musi być tak toporny.
Offline
Ogólnie to zielony jestem w Alsie ale chciałbym pokombinować z tym dźwiękiem bo mi na tym zależy.
Może mi ktoś pomóc?
Tu znalazłem opracowanie z 2016 roku dla androida 7.1.2: https://github.com/meefik/linuxdeploy/issues/223#is … ent-339116666
Jak to przenieść na androida 11 ?
W androidzie mam te wszystkie katalogi związane z alsą ale nie mam polecenia 'alsactl monitor'.
Więc jak mogę sprawdzić które urządzenie odtwarza muzykę ?
Mam katalog '/proc/asound/card0' ale polecenie '/proc/asound/card0# grep -v closed */sub0/status' nie działa.
Może tam jest jakaś literówka, a może inna przyczyna.
Nie znam się na tym.
Więc proszę o jakąś pomoc.
Offline
:/ # ls -l /proc/asound/card0
total 0
-r--r--r-- 1 root root 0 2023-09-25 21:00 id
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm0c
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm0p
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm1c
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm1p
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm2c
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm2p
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm3c
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm4c
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm4p
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm5p
dr-xr-xr-x 4 root root 0 2023-09-25 21:00 pcm6c
Offline
:/ # cat /proc/asound/card0/pcm0c/sub0/status
closed
:/ # cat /proc/asound/card0/pcm0p/sub0/status
closed
:/ # cat /proc/asound/card0/pcm1c/sub0/status
closed
:/ # cat /proc/asound/card0/pcm1p/sub0/status
state: RUNNING
owner_pid : 531
trigger_time: 87.840972124
tstamp : 8512.766421600
delay : 3072
avail : 0
avail_max : 0
-----
hw_ptr : 404388608
appl_ptr : 404391680
:/ # cat /proc/asound/card0/pcm2c/sub0/status
closed
:/ # cat /proc/asound/card0/pcm2p/sub0/status
closed
:/ # cat /proc/asound/card0/pcm3c/sub0/status
closed
:/ # cat /proc/asound/card0/pcm4c/sub0/status
closed
:/ # cat /proc/asound/card0/pcm4p/sub0/status
closed
:/ # cat /proc/asound/card0/pcm5p/sub0/status
closed
:/ # cat /proc/asound/card0/pcm6c/sub0/status
closed
:/ #
Offline
:/ # cat /proc/asound/card0/pcm1p/sub0/info
card: 0
device: 1
subdevice: 0
stream: PLAYBACK
id: TDM-B-T9015-audio-hifi-alsaPORT-i2s fe01a000.t9015-1
name:
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
:/ #
Offline
Strony: 1