Announcement

Collapse
No announcement yet.

Corrupt Audio input. With loopback cable, low system load, & high max distortion lvl.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Corrupt Audio input. With loopback cable, low system load, & high max distortion lvl.

    Hello! Using 64bit cmd line bit linux on my embedded system, I am getting an error with sound, saying 'Corrupt Audio input'. I've reviewed pdf guide, the forums, and the web before posting here. I was wondering if I could get some help debugging.

    1) I've set the system loads to 1 and set a max distortion level to 20. This did not change any results.


    2) The pdf guide says the Sound Test generates an 8 bit sound format. My aplay sound test, says only 16&32 LE formats are supported. Could this be a problem?
    root:~# aplay -D default Untitled3.wav
    Playing WAVE 'Untitled3.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

    3) Loopback Cable:
    https://www.newegg.com/Product/Produ...A&gclsrc=aw.ds

    4)
    ******************
    DETAILED EVENT LOG
    ******************
    LOG NOTE: 2017-05-08 19:08:41, Status, Completed started test run
    LOG NOTE: 2017-05-08 19:08:41, Disk: Startup Disk [/dev/root], Each file size is: 36444 blocks of 16384 bytes (569 MB, 597098496 Bytes)
    SERIOUS: 2017-05-08 19:08:47, Sound, Corrupt Audio input
    LOG NOTE: 2017-05-08 19:08:47, Sound, No audio signal for 990f sample. Try reducing system load.
    LOG NOTE: 2017-05-08 19:08:55, Status, Test run stopped

    5)
    ========================= SOUND_INFO =========================
    Mon May 8 19:08:41 2017 - 381334 APLAY
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
    front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
    surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
    hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
    hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
    hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Mon May 8 19:08:41 2017 - 410378 /proc/asound/version
    Advanced Linux Sound Architecture Driver Version k4.4.26-yocto-standard.
    Mon May 8 19:08:41 2017 - 416168 LSPCI audio
    Mon May 8 19:08:41 2017 - 422147 LSMOD snd
    snd_hda_codec_hdmi 37630 1
    snd_hda_codec_realtek 57347 1
    snd_hda_codec_generic 54850 1 snd_hda_codec_realtek
    snd_hda_intel 22577 0
    snd_hda_codec 80756 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_c odec_generic,snd_hda_intel
    snd_hda_core 38763 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_c odec_generic,snd_hda_codec,snd_hda_intel
    Mon May 8 19:08:41 2017 - 428555 ========================== SOUND_INFO_END ==========================


    Any input, feedback, or questions would be appreciated.
    Cheers,
    -Eric Zaluzec

  • #2
    As a quick update, I did a dump on my hardware parameters and it looks like the the hardware only supports signed 16 & 32 bit LE audio formats.

    The burnintest tries to run an 8 bit sound format and this must be my problem.

    Is there any way to pass in a configuration option to run a 16 bit sound format when using bit_cmd_line_x64?

    Comment


    • #3
      This issue can be marked as resolved.
      1) To resolve the 'Corrupt Audio Input', the embedded linux system needed the following packages & kernel modules to support sound loopback & 8bit audio formats:
      libasound, alsa-conf, alsa-conf-base, alsa-lib, alsa-utils-alsaloop, & kernel-module-snd-aloop.

      2) Once the 'Corrupt Audio Input' was resolved, a new issue occurred saying:
      CWave::StartInput: about to read
      CWave::StartInput: Read error: -11 Resource temporarily unavailable
      CWave::StartInput: called snd_pcm_prepare: -16 Device or resource busy

      To resolve 'Resource temporarily unavailable', the 'plughw' sound alias called in config_cmd.txt was changed to 'default' and the .asoundrc file was used to modify the 'default' alias, to share the capture/playback using dsnoop/dmix PCM's on the loopback card created by kernel module snd-aloop and alsaloop.

      .asoundrc file:
      Code:
      pcm.dmixer {
        type dmix
        ipc_key 1024
        ipc_key_add_uid true
        ipc_perm 0666
        slave {
          pcm "hw:1,1,0"
          period_time 0
          period_size 1024
          buffer_size 8192
          rate 44100
        }
      
        bindings {
          0 0
          1 1
        }
      }
      
      pcm.dsnooper {
        type dsnoop
        ipc_key 1024
        ipc_key_add_uid true
        ipc_perm 0666
        slave {
          pcm "hw:1,0,0"
          period_time 0
          period_size 1024
          buffer_size 8192
          rate 44100
        }
      
        bindings {
          0 0
          1 1
        }
      }
      
      pcm.asymed {
        type asym
        playback.pcm "dmixer"
        capture.pcm "dsnooper"
      }
      
      pcm.dsp0 {
        type plug
        slave.pcm "asymed"
      }
      
      pcm.!default {
        type plug
        slave.pcm "asymed"
      }
      
      pcm.default {
        type plug
        slave.pcm "asymed"
      }
      
      ctl.mixer0 {
        type hw
        card 1
      }

      Comment


      • #4
        We tried to email you a test build but sounds like you didn't receive it.

        Glad to hear it is working on your system now and thanks for posting the follow up.

        Comment

        Working...
        X