Skip to content
Snippets Groups Projects

samsung-zeroltexx: Fix audio (fix memory alignment problem)

Merged Imported Administrator requested to merge samsung-zeroltexx-fix-audio into master
All threads resolved!

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
Edited by Administrator

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator added category::device + 1 deleted label · Imported

    added category::device + 1 deleted label

  • Administrator
  • Administrator
  • Administrator
  • Administrator added 38 commits · Imported

    added 38 commits

    • 6360701b...c78c633a - 37 commits from branch postmarketOS:master
    • db675760 - samsung-zeroltexx: Fix audio (fix memory alignment issue that led to crashes...

    Compare with previous version

    By st s on 2021-06-25T23:21:57

  • Administrator changed title from samsung-zeroltexx: Fix audio (adding Seiren firmware and fix memory alignment problem) to samsung-zeroltexx: Fix audio (fix memory alignment problem) · Imported

    changed title from samsung-zeroltexx: Fix audio (adding Seiren firmware and fix memory alignment problem) to samsung-zeroltexx: Fix audio (fix memory alignment problem)

    By st s on 2021-06-25T23:35:26

  • Administrator changed the description · Imported

    changed the description

    By st s on 2021-06-25T23:35:26

  • Administrator approved this merge request · Imported

    approved this merge request

    By Alexey Min on 2021-06-25T23:43:02

  • Administrator added 6 commits · Imported

    added 6 commits

    Compare with previous version

    By Dylan Van Assche on 2021-06-26T17:50:30

  • Administrator approved this merge request · Imported

    approved this merge request

    By Dylan Van Assche on 2021-06-26T17:50:38

  • Administrator resolved all threads · Imported

    resolved all threads

    By Dylan Van Assche on 2021-06-26T17:50:49

  • Administrator enabled an automatic merge when the pipeline for 8efe40ce succeeds · Imported

    enabled an automatic merge when the pipeline for 8efe40ce succeeds

    By Dylan Van Assche on 2021-06-26T17:50:51

  • Administrator merged · Imported

    merged

  • Please register or sign in to reply
    Loading