samsung-zeroltexx: Fix audio (fix memory alignment problem)
samsung-zeroltexx: Fix audio (fix memory alignment issue that led to crashes).
The compile switches relating to memory alignment seem necessary to prevent a crash in DMA transfers (gcc6 instead of gcc10 would also have fixed this; cf. my earlier comment in !2105 (comment 593597958)).
Alsa audio playback works fine after this fix. I have not yet fully figured out the mixer functionality (>700 controls!) yet, but with these example commands, audio output is routed to the earpiece:
# Audio on receiver:
amixer cset name='HPOUT3L Input 1' AIF1RX1
amixer cset name='HPOUT3 Digital Switch' on,on
aplay /usr/share/sounds/alsa/Front_Center.wav
With this example, audio output is routed to the speaker:
# Audio on Speaker:
amixer cset name="AIF4TX1 Input 2" AIF1RX1
amixer cset name="AIF4TX2 Input 2" AIF1RX2
amixer cset name='SPK Enable Switch' Enable
amixer cset name='SPK Switch' on
amixer cset name='SPK out' 1
echo "Hello, World!" | flite
Merge request reports
Activity
added 1 commit
- 6360701b - samsung-zeroltexx: Fix audio (missing file added to git)
By st s on 2021-06-19T18:17:52
- Resolved by Administrator
added category::device + 1 deleted label
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
The two commits in this MR should be squashed. If you need help with that, let us know!
By clayton craft on 2021-06-23T05:57:19
added 38 commits
-
6360701b...c78c633a - 37 commits from branch
postmarketOS:master
- db675760 - samsung-zeroltexx: Fix audio (fix memory alignment issue that led to crashes...
By st s on 2021-06-25T23:21:57
-
6360701b...c78c633a - 37 commits from branch
added 6 commits
-
db675760...424528a7 - 5 commits from branch
postmarketOS:master
- 8efe40ce - samsung-zeroltexx: fix audio (MR 2263)
By Dylan Van Assche on 2021-06-26T17:50:30
-
db675760...424528a7 - 5 commits from branch
enabled an automatic merge when the pipeline for 8efe40ce succeeds
By Dylan Van Assche on 2021-06-26T17:50:51