Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: No audio on Pine64

  1. #1

    Default No audio on Pine64

    Hi,

    I'm using Tumbleweed on my PinePhone. But pulseaudio does not seem to run properly.
    When I klick on the sound symbol in the top menu (where you can also toggle Wi-Fi and auto-rotate etc like in usual mobiles) it shows the volume bar. But when returning back to that menu the sound symbol remains un-highlighted.

    When I kill pulsaudio with pulesaudio --kill the journal shows the following entries:

    Code:
    
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSink/sbc 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSource/sbc 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSink/sbc_xq_
    453 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSource/sbc_x
    q_453 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSink/sbc_xq_
    512 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSource/sbc_x
    q_512 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSink/sbc_xq_
    552 
    Jan 08 16:43:26 openSUSE bluetoothd[5695]: Endpoint unregistered: sender=:1.128 path=/MediaEndpoint/A2DPSource/sbc_x
    q_552 
    Jan 08 16:43:27 openSUSE systemd[5770]: Starting Sound Service... 
    Jan 08 16:43:27 openSUSE kernel: hdmi-audio-codec hdmi-audio-codec.5.auto: Only one simultaneous stream supported!
    Jan 08 16:43:27 openSUSE kernel: hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s
    -hifi: -22
    Jan 08 16:43:27 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:27 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:27 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:27 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE rtkit-daemon[6105]: Supervising 2 threads of 1 processes of 1 users.
    Jan 08 16:43:28 openSUSE systemd[5770]: Started Sound Service. 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSink/sbc 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSource/sbc 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSink/sbc_xq_45
    3 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSource/sbc_xq_
    453 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSink/sbc_xq_51
    2 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSource/sbc_xq_
    512 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSink/sbc_xq_55
    2 
    Jan 08 16:43:28 openSUSE bluetoothd[5695]: Endpoint registered: sender=:1.151 path=/MediaEndpoint/A2DPSource/sbc_xq_
    552 
    Jan 08 16:43:34 openSUSE eg25manager[5348]: Rescheduling upload since Location interface is not available, in 30s
    


    I assume the last entry does not belong to this, since it appears anyway from time to time in the logs.
    But there are this two red lines concerning the kernel, including one error message, which I don't know how to handle.

    So obviously pulseaudio is somehow running, but no sound comes out of the device.
    (For the moment I use VLC media player for sound checking with an mp3 music file or an mp4 video, variantly)

    Can anybody help?

    Thanks in advance.




  2. #2
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    27,138
    Blog Entries
    40

    Default Re: No audio on Pine64

    I do not know anything about the pinephone ... and had to search to see what it was. I can see its not the typical hardware, but it would be kind of interesting to get this working.

    Is it possible for you to run a diagnostic script, that would provide more information on the pinephone hardware, such that we may be able to guess/assess where the problem could be?

    Can you open on konsole/xterm on this device, and as a regular user run this diagnostic script (when connected to the internet):
    Code:
    /usr/sbin/alsa-info.sh
    and select the "upload/share" option when prompted. Let the script run to completion. When it is complete it will put a website address/url in the konsole/xterm which is where the diagnostic information was uploaded. Please post that address here. We can then look at it and try to make an assessment (and again post address where info uploaded).

    In addition to various information in the script output, I am also interested in what the dmesg (at the end of that script) may say ... and if there is no dmesg information (where due to permission issues dmesg it may not run as a regular user) then perhaps you could run that script a second time, where the 2nd time you run it with root permissions.
    .

  3. #3

    Default Re: No audio on Pine64

    Thank you for your initiative!

    When I sent "OK" to the intial info screen of alsa-info, it reported 5 error messages before it finally started the diagnose:

    Code:
    cat: /tmp/alsa-info.N2vt6Pl6NP/acpidevicestatus.tmp: No such file or directory 
    cat: '/sys/module/snd_soc_simple_card/parameters/*': No such file or directory 
    cat: '/sys/module/snd_soc_simple_card/parameters/*': No such file or directory 
    /usr/sbin/alsa-info.sh: line 661: tree: command not found 
    /usr/sbin/alsa-info.sh: line 661: tree: command not found 


    Then it proceeded. The result is this web address (
    dmesg at the end of the report):

    https://alsa-project.org/db/?f=01e94...663006be920b82






  4. #4
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    27,138
    Blog Entries
    40

    Default Re: No audio on Pine64

    Quote Originally Posted by Jaizkibel View Post
    When I sent "OK" to the intial info screen of alsa-info, it reported 5 error messages before it finally started the diagnose:

    Code:
    cat: /tmp/alsa-info.N2vt6Pl6NP/acpidevicestatus.tmp: No such file or directory 
    cat: '/sys/module/snd_soc_simple_card/parameters/*': No such file or directory 
    cat: '/sys/module/snd_soc_simple_card/parameters/*': No such file or directory 
    /usr/sbin/alsa-info.sh: line 661: tree: command not found 
    /usr/sbin/alsa-info.sh: line 661: tree: command not found 


    I don't know the significance of those. It looks like some parameters are missing maybe with snd_soc_simple_card. Is that significant? I don't know. Could this be missing firmware? Missing alsa? I don't know.

    If you open up the script /usr/sbin/alsa-info.sh (in a text editor that gives line numbers) and go to line 661 it might tell you which command can not be found.
    Quote Originally Posted by Jaizkibel View Post
    Then it proceeded. The result is this web address
    OK.

    This pinephone install is all very unusual for me, although I note from an openSUSE HCL that sound should work:
    HCL : PinePhone

    I assume you read this:

    If you have problems with audio playback make sure the correct output device (Internal speaker) and device profile settings (Default) are selected in the audio settings. Multimedia content on websites or container formats like mp4 may fail to play - try installing the necessary codecs. They are not included in openSUSE distributions for legal reasons.

    First I note this is an old version of Tumbleweed, where I see the "5.12.13-11 kernel". I think that is very old. I think Tumbleweed is now up to 5.15.12 ... but perhaps because there are unique aspects to this pinephone (and what ever hardware it has) that only a 5.12.13 has been built for the pinephone? I don't know.

    In summary, what puzzles me is

    (1) the script reports your PC does not have the app 'alsa' installed, but only has some support alsa apps installed. I don't understand that. Why is alsa not installed?

    (2) your mixer has the volume for many items muted, and not knowing the pinephone hardware, I can not say if that important. It could be important. I don't know your hardware ... I recommend you check the effect of unmuting (it could add noise in which case mute again).

    (3) you don't have pipewire running. Are more pipewire packages needed? pipewire? pipewire-pulseaudio? pipewire-alsa? Honestly, I do not know and others need to chime in.

    Some details:

    According to the script some alsa modules were loaded:
    Code:
    !!Loaded ALSA modules
    !!-------------------
    snd_soc_simple_card (card 0)
    snd_soc_simple_card (card 1)
    I note sound cards identified - PinePhone and HDMI. Do you have an HDMI device connected (I am just curious) ?
    Code:
    !!Soundcards recognised by ALSA
    !!-----------------------------
    
     0 [PinePhone      ]: PinePhone - PinePhone
                          PinePhone
     1 [sun50ia64hdmi  ]: sun50i-a64-hdmi - sun50i-a64-hdmi
                          sun50i-a64-hdmi
    Sound servers notes pipewire is not running. Others need to chime in here, but does it not need to be running for Tumbleweed?
    Code:
    !!Sound Servers on this system
    !!----------------------------
    
    PipeWire:
          Installed - Yes (/usr/bin/pipewire)
          Running - No
    
    Pulseaudio:
          Installed - Yes (/usr/bin/pulseaudio)
          Running - Yes
    I note no PCI sound cards. Wow! That must be a hardware charactristic of a pinephone? < my speculation >
    Code:
    !!PCI Soundcards installed in the system
    !!--------------------------------------
    Now lets check the sound modules:
    Code:
    !!Loaded sound module options
    !!---------------------------
    
    !!Module: snd_soc_simple_card
        * : 
    
    !!Module: snd_soc_simple_card
        * :
    OK ... that's interesting ... I wonder thou if there is custom firmware needed to go with that? Is there a custom firmware? I don't know.

    Code:
    !!Aplay/Arecord output
    !!--------------------
    
    APLAY
    
    **** List of PLAYBACK Hardware Devices ****
    card 0: PinePhone [PinePhone], device 0: 1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 [1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: sun50ia64hdmi [sun50i-a64-hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0 [1c22800.i2s-i2s-hifi i2s-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    Ok, so your pinephone sound device is hw:0,0 and your HDMI sound device is hw:1,0 . By default sound will NOT go to the HDMI but it will go to the pinephone.

    Did you try to play sound from a bash shell ? ie in a bash shell send this command:
    Code:
    aplay -D hw:0,0 -vv /usr/share/sounds/alsa/test.wav
    aplay comes with alsa-utils that you have installed .... although given I can't see the alsa app installed, that might just give errors.

    There many items with volume low or muted - I do not know if they should be unmuted:
    Code:
    !!Amixer output
    !!-------------
    !!-------Mixer controls for card PinePhone
    ...........
    Simple mixer control 'Line Out',0
      Capabilities: pvolume pvolume-joined pswitch
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 31
      Mono:
      Front Left: Playback 17 [55%] [-21.00dB] [on]
      Front Right: Playback 17 [55%] [-21.00dB] [on]
    ...
    Simple mixer control 'ADC Digital DAC',0
      Capabilities: pswitch
      Playback channels: Front Left - Front Right
      Mono:
      Front Left: Playback [off]
      Front Right: Playback [off]
    ...
    Simple mixer control 'AIF1 AD0 Stereo',0
      Capabilities: cenum
      Items: 'Stereo' 'Reverse Stereo' 'Sum Mono' 'Mix Mono'
      Item0: 'Stereo'
      Item1: 'Stereo'
    ...
    Simple mixer control 'AIF1 DA0',0
      Capabilities: pvolume
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 192
      Mono:
      Front Left: Playback 0 [0%] [-99999.99dB]
      Front Right: Playback 0 [0%] [-99999.99dB]
    ...
    Simple mixer control 'AIF1 DA0 Stereo',0
      Capabilities: penum
      Items: 'Stereo' 'Reverse Stereo' 'Sum Mono' 'Mix Mono'
      Item0: 'Stereo'
      Item1: 'Stereo'
    ...
    Simple mixer control 'AIF1 Slot 0 Digital DAC',0
      Capabilities: pswitch
      Playback channels: Front Left - Front Right
      Mono:
      Front Left: Playback [off]
      Front Right: Playback [off]
    ...
    Simple mixer control 'AIF2 ADC Stereo',0
      Capabilities: cenum
      Items: 'Stereo' 'Reverse Stereo' 'Sum Mono' 'Mix Mono'
      Item0: 'Stereo'
      Item1: 'Stereo'
    ...
    Simple mixer control 'AIF2 DAC',0
      Capabilities: pvolume
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 192
      Mono:
      Front Left: Playback 0 [0%] [-99999.99dB]
      Front Right: Playback 0 [0%] [-99999.99dB]
    ...
    Simple mixer control 'AIF2 DAC Source',0
      Capabilities: penum
      Items: 'AIF2' 'AIF3 2' 'AIF2 3'
      Item0: 'AIF2'
    Simple mixer control 'AIF2 DAC Stereo',0
      Capabilities: penum
      Items: 'Stereo' 'Reverse Stereo' 'Sum Mono' 'Mix Mono'
      Item0: 'Stereo'
      Item1: 'Stereo'
    ...
    Simple mixer control 'AIF2 Digital DAC',0
      Capabilities: pswitch
      Playback channels: Front Left - Front Right
      Mono:
      Front Left: Playback [off]
      Front Right: Playback [off]
    ...
    Simple mixer control 'AIF3 ADC Source',0
      Capabilities: cenum
      Items: 'None' 'AIF2 ADCL' 'AIF2 ADCR'
      Item0: 'None
    ...
    Simple mixer control 'DAC Reversed',0
      Capabilities: pswitch
      Playback channels: Front Left - Front Right
      Mono:
      Front Left: Playback [off]
      Front Right: Playback [off]
    Simple mixer control 'Earpiece',0
      Capabilities: pvolume pvolume-joined pswitch pswitch-joined
      Playback channels: Mono
      Limits: Playback 0 - 31
      Mono: Playback 0 [0%] [-99999.99dB] [off]
    Simple mixer control 'Earpiece Source',0
      Capabilities: penum
      Items: 'DACR' 'DACL' 'Right Mixer' 'Left Mixer'
      Item0: 'DACR'
    I don't know the significance of this - no controls !
    Code:
    !!-------Mixer controls for card sun50ia64hdmi
    
    Card sysdefault:1 'sun50ia64hdmi'/'sun50i-a64-hdmi'
      Mixer name    : ''
      Components    : ''
      Controls      : 2
      Simple ctrls  : 0
    Now lets look at loaded kernel modules for sound:
    Code:
    !!All Loaded Modules
    !!------------------
    ....
    dm_multipath
    dw_hdmi_cec
    dw_hdmi_i2s_audio
    ....
    snd
    snd_compress
    snd_pcm
    snd_pcm_dmaengine
    snd_soc_bt_sco
    snd_soc_core
    snd_soc_ec25
    snd_soc_hdmi_codec
    snd_soc_simple_amplifier
    snd_soc_simple_card
    snd_soc_simple_card_utils
    snd_timer
    soundcore
    There is no mention there of firmware, but maybe none is needed.

    Now the dmesg:
    Code:
    !!ALSA/HDA dmesg
    !!--------------
    
    [   15.674170] input: PinePhone Headset Jack as /devices/platform/sound/sound/card0/input6
    Do you have a headset plugged in?

    Code:
    [   39.514280] hdmi-audio-codec hdmi-audio-codec.5.auto: Only one simultaneous stream supported!
    [   39.522972] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -22
    And error message wrt the HDMI. I don't know if that is important.


    Code:
    !!Packages installed
    !!--------------------
    
    alsa-utils-1.2.6-1.1.aarch64
    alsa-ucm-conf-1.2.6.3-2.1.noarch
    alsa-plugins-pulse-1.2.6-1.1.aarch64
    No alsa .... only some side alsa apps. Why is alsa not installed? You could try to install 'alsa'.

    Did you have problems with your install ? I am surprised to see no 'alsa'.

    Also, see my above note about pipewire.

    My apologies - I have only questions - and no solutions. But possibly the questions could give you avenues to explore.
    .
    Last edited by oldcpu; 10-Jan-2022 at 05:02.

  5. #5

    Default Re: No audio on Pine64

    No, I have neither a headset nor any HDMI devices connected.

    If you open up the script /usr/sbin/alsa-info.sh (in a text editor that gives line numbers) and go to line 661 it might tell you which command can not be found.

    It was in fact the 'tree' command, which shows the file names in stylish tree order. I ran the script again and it showed some little additional information. But I guess that will not help really. I started pipewire by hand this time. Here is the link:


    http://alsa-project.org/db/?f=d7a44b0230dc43adfead3e70d9884bbd178f7991


    Zypper says
    alsa-1.2.6.1-1.1.aarch64 is installed. I don't understand why it's not listed in the overview.


    This pinephone install is all very unusual for me, although I note from an openSUSE HCL that sound should work:
    HCL : PinePhone

    I assume you read this:

    If you have problems with audio playback make sure the correct output device (Internal speaker) and device profile settings (Default) are selected in the audio settings. Multimedia content on websites or container formats like mp4 may fail to play - try installing the necessary codecs. They are not included in openSUSE distributions for legal reasons.


    Yes, I read it, and I followed the instructions meticulously after the first boot.

    You're right. Actually sound should simply be working. The install went fine as far as I remember. There were no obstacles, interrupts or anything else.

    So I consider trying a different OS-image. The Plasma desktop behaves a bit unstable. So maybe I try the PHOSH version, which is especially designed for mobile use.



    Code:
    (3) you don't have pipewire running. Are more pipewire packages needed?  pipewire? pipewire-pulseaudio? pipewire-alsa?  Honestly, I do not know and others need to chime in.
    I added pipewir-alsa, but pipewire-pulseaudio conflicted with pipewire-daemon. So I left it.

    Code:
    OK ... that's interesting ... I wonder thou if there is custom firmware needed to go with that?  Is there a custom firmware? I don't know.
    They would have mentioned it on the HLC:PinePhone page.

    Code:
    Did you try to play sound from a bash shell ?  ie in a bash shell send this command:
    
    aplay -D hw:0,0 -vv /usr/share/sounds/alsa/test.wav
    Tried it now. The console stated it plays the file but no sound comes out of the phone.

    Code:
    There many items with volume low or muted - I do not know if they should be unmuted:
    I tried alsamixer. But it doesn't start. Unable to connect to PulseAudio. No unmute option found anywhere.


    In the Audio Settings there's only one Profile to chose, called "Stereo Output".

  6. #6

    Default Re: No audio on Pine64

    Re-installing now...

  7. #7
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    27,138
    Blog Entries
    40

    Default Re: No audio on Pine64

    Good luck with the re-install.

    I wish I had better advice. ... I am still puzzling if special firmware is needed. But if it was, one would think the wiki pages would mention such.
    Last edited by oldcpu; 10-Jan-2022 at 20:53.

  8. #8
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    27,138
    Blog Entries
    40

    Default Re: No audio on Pine64

    Quote Originally Posted by Jaizkibel View Post

    Zypper says
    alsa-1.2.6.1-1.1.aarch64 is installed. I don't understand why it's not listed in the overview.
    aarch64 ???

    Strange.

    I wonder if that alsa version could be an issue? ... < wild speculative question on my part - it could be perfectly ok >

  9. #9
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    27,138
    Blog Entries
    40

    Default Re: No audio on Pine64

    Quote Originally Posted by oldcpu View Post
    aarch64 ???
    Strange.
    ... maybe its not strange - rather its me not being up to date.

  10. #10

    Default Re: No audio on Pine64

    I tried the other OS image (still Tumbleweed, but Phosh instead of Plasma), but the sound problem was the same.
    Then I gave the Arch Linux version a chance. And everything seems perfect now. It's a bit of a different world for me after more than 2 decades with Suse.But after all it's still Linux. We'll wait and see if I get to terms with it.

    Thanks for your assistance with this. You gave your best

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •