ALSA: Zoom H4n Not Working as USB Audio Source on PC The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsHow do I make Wheezy see my sound card?Alsa not detecting USB microphone on system bootUSB MIDI keyboard (Oxygen 61) now not appearing in QJackCtlAlsa not detecting my soundcardUSB audio not working when plugged in during bootALSA - Traktor Audio 2 - How to split front and rear stereo channels / How to debug dmixALSA REAL TIME AUDIO PROGRAMMINGHow to create a default device in .asoundrc that uses a dmix and a dsnoop device?Pulseaudio USB headset audio output working but microphone doesn'tHow can I debug Pulseaudio failing after plugging in USB headset?

Example of compact Riemannian manifold with only one geodesic.

Do warforged have souls?

What can I do if neighbor is blocking my solar panels intentionally?

Did the new image of black hole confirm the general theory of relativity?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

How to read αἱμύλιος or when to aspirate

Didn't get enough time to take a Coding Test - what to do now?

My body leaves; my core can stay

How many cones with angle theta can I pack into the unit sphere?

Why did Peik Lin say, "I'm not an animal"?

What is the padding with red substance inside of steak packaging?

How do spell lists change if the party levels up without taking a long rest?

Match Roman Numerals

Can each chord in a progression create its own key?

Why are PDP-7-style microprogrammed instructions out of vogue?

Loose spokes after only a few rides

How to handle characters who are more educated than the author?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

Why doesn't shell automatically fix "useless use of cat"?

Button changing its text & action. Good or terrible?

Word to describe a time interval

should truth entail possible truth

Homework question about an engine pulling a train

Do working physicists consider Newtonian mechanics to be "falsified"?



ALSA: Zoom H4n Not Working as USB Audio Source on PC



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsHow do I make Wheezy see my sound card?Alsa not detecting USB microphone on system bootUSB MIDI keyboard (Oxygen 61) now not appearing in QJackCtlAlsa not detecting my soundcardUSB audio not working when plugged in during bootALSA - Traktor Audio 2 - How to split front and rear stereo channels / How to debug dmixALSA REAL TIME AUDIO PROGRAMMINGHow to create a default device in .asoundrc that uses a dmix and a dsnoop device?Pulseaudio USB headset audio output working but microphone doesn'tHow can I debug Pulseaudio failing after plugging in USB headset?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Once upon a time, I was abe to plug in my Zoom H4n field recorder into my main PC and have it appear as another audio source inside Audacity for live recording. Worked great. Sometime in the last few months, however, this stopped working. The H4n "appears" (alsamixer sees it), but the PCMs don't work.



When you plug the H4n into a USB socket, the H4n powers up, but does not yet enumerate. A small UI appears on the device asking how you want the H4n to connect to the PC -- as a USB block device (for retrieving audio recordings from the SD card), or as a USB audio device. I select USB audio, select a sample rate of 48KHz, then select Connect.



After pressing Connect, the H4n fully initializes, and journalctl -f prints out the following:



Sep 01 16:27:56 exiguous kernel: usb 3-4: new high-speed USB device number 15 using xhci_hcd
Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: USB hub found
Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: 4 ports detected
Sep 01 16:27:56 exiguous kernel: usb 3-4.2: new full-speed USB device number 16 using xhci_hcd
Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Product: H4
Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
Sep 01 16:27:56 exiguous mtp-probe[2543]: checking bus 3, device 16: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
Sep 01 16:27:56 exiguous mtp-probe[2543]: bus: 3, device: 16 was not an MTP device
Sep 01 16:27:56 exiguous systemd-udevd[2542]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2561 of process 1576 (n/a) owned by '1000' RT at priority 5.
Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2564 of process 1576 (n/a) owned by '1000' RT at priority 5.
Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
Sep 01 16:28:01 exiguous kernel: usb 3-4.2: USB disconnect, device number 16
Sep 01 16:28:02 exiguous kernel: usb 3-4.2: new full-speed USB device number 17 using xhci_hcd
Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Product: H4
Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
Sep 01 16:28:02 exiguous mtp-probe[2589]: checking bus 3, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
Sep 01 16:28:02 exiguous mtp-probe[2589]: bus: 3, device: 17 was not an MTP device
Sep 01 16:28:02 exiguous systemd-udevd[2588]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2608 of process 1576 (n/a) owned by '1000' RT at priority 5.
Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2610 of process 1576 (n/a) owned by '1000' RT at priority 5.
Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
Sep 01 16:29:30 exiguous rtkit-daemon[798]: Successfully made thread 2658 of process 1576 (n/a) owned by '1000' RT at priority 5.
Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.


From the above, the device appears to enumerate twice; I'm not sure why this happens (it takes about eight seconds for the H4n to fully boot up). Once it's fully booted, however, none of PCMs appear to actually work. arecord directly from the device konks out with a generic I/O error. The little live volume monitor in pavucontrol that normally appears underneath input devices is missing entirely for the H4n.



Audacity gets especially confused, as the H4n appears several times in the available inputs, showing:



  • front-mic 0

  • rear-mic 0

  • line-mic 0

  • front-mic 1

  • rear-mic 1

  • line-mic 1

Which seems nonsense; the H4n is strictly a stereo USB device.



I don't think Pulseaudio is the culprit because, prior to posting this, I ran the following test:



  • Log out of X11 desktop.

  • Switch to text console; login as root.

  • Kill Pulseaudio daemon; verify it didn't respawn.


  • chmod -x /usr/sbin/alsactl (prevents system from re-writing possibly insane asound.state at reboot).

  • Delete /var/lib/alsa/asound.state. Coupled with the above, this forces the ALSA system back to "factory defaults" at next boot.

  • Reboot.


  • Do not login to X11. Switch to text console; login as root.


  • chmod +x /usr/sbin/alsactl (fix that back up).

  • Confirm Pulseaudio is not running.

  • Plug in H4n.

So, with "factory default" ALSA settings and Pulseaudio nowhere to be seen, the problem persists.



In case it matters, there is an Oculus Rift plugged in to the system, but is never used under Linux.



And, just to make things weirder, when I plug the very same H4n into my Thinkpad laptop (running the same kernel), it works perfectly fine. Both machines are Debian Sid ("unstable") systems.



Any and all hints appreciated.



Edit 2018.09.03:



After double-checking journalctl logs on my laptop, I find that the H4n also enumerates there twice as well, with almost identical messages. So the double-enumeration itself does not appear to be the problem.



Edit 2018.09.04:



After unplugging the Oculus Rift and the Logitech Web cam, there is slight improvement. Rather than hanging immediately, arecord manages to successfully capture about 1-2 seconds of audio, but then hangs for several seconds, reports two short reads (the first always being 96 samples long), and then the program aborts with a generic I/O error.



I tried loading the usbmon kernel module and capturing bus activity, but my USB-fu doesn't appear to be up to the task of getting terribly useful information out of the logs. It sure feels like something is getting stuck in the USB layers somewhere. I have one more possible hardware culprit to try and eliminate.



Edit 2019.04.11:



Based on a couple off-hand comments in some discussion fora suggesting that Intel's X99 chipset might be the problem (!?), I tried an experiment: Rather than plug the H4n directly in to the USB ports on the motherboard, I instead tried plugging it in to a port on an external USB hub. (The "hub" is actually a Corsair Polaris MM800 RGB mouse pad with a single "extension" port; you're intended to plug your mouse in to it).



Doing so causes the H4n to operate correctly. The strange list of inputs still appears in Audacity, but I can successfully record audio by selecting "front mic 0". Pulseaudio and OBS also handle it correctly.



I'm happy that I now have a workaround, but I can't imagine why this should work, nor why direct motherboard ports wouldn't.










share|improve this question






























    0















    Once upon a time, I was abe to plug in my Zoom H4n field recorder into my main PC and have it appear as another audio source inside Audacity for live recording. Worked great. Sometime in the last few months, however, this stopped working. The H4n "appears" (alsamixer sees it), but the PCMs don't work.



    When you plug the H4n into a USB socket, the H4n powers up, but does not yet enumerate. A small UI appears on the device asking how you want the H4n to connect to the PC -- as a USB block device (for retrieving audio recordings from the SD card), or as a USB audio device. I select USB audio, select a sample rate of 48KHz, then select Connect.



    After pressing Connect, the H4n fully initializes, and journalctl -f prints out the following:



    Sep 01 16:27:56 exiguous kernel: usb 3-4: new high-speed USB device number 15 using xhci_hcd
    Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
    Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: USB hub found
    Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: 4 ports detected
    Sep 01 16:27:56 exiguous kernel: usb 3-4.2: new full-speed USB device number 16 using xhci_hcd
    Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
    Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Product: H4
    Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
    Sep 01 16:27:56 exiguous mtp-probe[2543]: checking bus 3, device 16: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
    Sep 01 16:27:56 exiguous mtp-probe[2543]: bus: 3, device: 16 was not an MTP device
    Sep 01 16:27:56 exiguous systemd-udevd[2542]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
    Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
    Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2561 of process 1576 (n/a) owned by '1000' RT at priority 5.
    Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
    Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
    Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2564 of process 1576 (n/a) owned by '1000' RT at priority 5.
    Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
    Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
    Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
    Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
    Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
    Sep 01 16:28:01 exiguous kernel: usb 3-4.2: USB disconnect, device number 16
    Sep 01 16:28:02 exiguous kernel: usb 3-4.2: new full-speed USB device number 17 using xhci_hcd
    Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
    Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Product: H4
    Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
    Sep 01 16:28:02 exiguous mtp-probe[2589]: checking bus 3, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
    Sep 01 16:28:02 exiguous mtp-probe[2589]: bus: 3, device: 17 was not an MTP device
    Sep 01 16:28:02 exiguous systemd-udevd[2588]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
    Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
    Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2608 of process 1576 (n/a) owned by '1000' RT at priority 5.
    Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
    Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
    Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2610 of process 1576 (n/a) owned by '1000' RT at priority 5.
    Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
    Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
    Sep 01 16:29:30 exiguous rtkit-daemon[798]: Successfully made thread 2658 of process 1576 (n/a) owned by '1000' RT at priority 5.
    Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.


    From the above, the device appears to enumerate twice; I'm not sure why this happens (it takes about eight seconds for the H4n to fully boot up). Once it's fully booted, however, none of PCMs appear to actually work. arecord directly from the device konks out with a generic I/O error. The little live volume monitor in pavucontrol that normally appears underneath input devices is missing entirely for the H4n.



    Audacity gets especially confused, as the H4n appears several times in the available inputs, showing:



    • front-mic 0

    • rear-mic 0

    • line-mic 0

    • front-mic 1

    • rear-mic 1

    • line-mic 1

    Which seems nonsense; the H4n is strictly a stereo USB device.



    I don't think Pulseaudio is the culprit because, prior to posting this, I ran the following test:



    • Log out of X11 desktop.

    • Switch to text console; login as root.

    • Kill Pulseaudio daemon; verify it didn't respawn.


    • chmod -x /usr/sbin/alsactl (prevents system from re-writing possibly insane asound.state at reboot).

    • Delete /var/lib/alsa/asound.state. Coupled with the above, this forces the ALSA system back to "factory defaults" at next boot.

    • Reboot.


    • Do not login to X11. Switch to text console; login as root.


    • chmod +x /usr/sbin/alsactl (fix that back up).

    • Confirm Pulseaudio is not running.

    • Plug in H4n.

    So, with "factory default" ALSA settings and Pulseaudio nowhere to be seen, the problem persists.



    In case it matters, there is an Oculus Rift plugged in to the system, but is never used under Linux.



    And, just to make things weirder, when I plug the very same H4n into my Thinkpad laptop (running the same kernel), it works perfectly fine. Both machines are Debian Sid ("unstable") systems.



    Any and all hints appreciated.



    Edit 2018.09.03:



    After double-checking journalctl logs on my laptop, I find that the H4n also enumerates there twice as well, with almost identical messages. So the double-enumeration itself does not appear to be the problem.



    Edit 2018.09.04:



    After unplugging the Oculus Rift and the Logitech Web cam, there is slight improvement. Rather than hanging immediately, arecord manages to successfully capture about 1-2 seconds of audio, but then hangs for several seconds, reports two short reads (the first always being 96 samples long), and then the program aborts with a generic I/O error.



    I tried loading the usbmon kernel module and capturing bus activity, but my USB-fu doesn't appear to be up to the task of getting terribly useful information out of the logs. It sure feels like something is getting stuck in the USB layers somewhere. I have one more possible hardware culprit to try and eliminate.



    Edit 2019.04.11:



    Based on a couple off-hand comments in some discussion fora suggesting that Intel's X99 chipset might be the problem (!?), I tried an experiment: Rather than plug the H4n directly in to the USB ports on the motherboard, I instead tried plugging it in to a port on an external USB hub. (The "hub" is actually a Corsair Polaris MM800 RGB mouse pad with a single "extension" port; you're intended to plug your mouse in to it).



    Doing so causes the H4n to operate correctly. The strange list of inputs still appears in Audacity, but I can successfully record audio by selecting "front mic 0". Pulseaudio and OBS also handle it correctly.



    I'm happy that I now have a workaround, but I can't imagine why this should work, nor why direct motherboard ports wouldn't.










    share|improve this question


























      0












      0








      0








      Once upon a time, I was abe to plug in my Zoom H4n field recorder into my main PC and have it appear as another audio source inside Audacity for live recording. Worked great. Sometime in the last few months, however, this stopped working. The H4n "appears" (alsamixer sees it), but the PCMs don't work.



      When you plug the H4n into a USB socket, the H4n powers up, but does not yet enumerate. A small UI appears on the device asking how you want the H4n to connect to the PC -- as a USB block device (for retrieving audio recordings from the SD card), or as a USB audio device. I select USB audio, select a sample rate of 48KHz, then select Connect.



      After pressing Connect, the H4n fully initializes, and journalctl -f prints out the following:



      Sep 01 16:27:56 exiguous kernel: usb 3-4: new high-speed USB device number 15 using xhci_hcd
      Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
      Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: USB hub found
      Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: 4 ports detected
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: new full-speed USB device number 16 using xhci_hcd
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Product: H4
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
      Sep 01 16:27:56 exiguous mtp-probe[2543]: checking bus 3, device 16: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
      Sep 01 16:27:56 exiguous mtp-probe[2543]: bus: 3, device: 16 was not an MTP device
      Sep 01 16:27:56 exiguous systemd-udevd[2542]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2561 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2564 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
      Sep 01 16:28:01 exiguous kernel: usb 3-4.2: USB disconnect, device number 16
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: new full-speed USB device number 17 using xhci_hcd
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Product: H4
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
      Sep 01 16:28:02 exiguous mtp-probe[2589]: checking bus 3, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
      Sep 01 16:28:02 exiguous mtp-probe[2589]: bus: 3, device: 17 was not an MTP device
      Sep 01 16:28:02 exiguous systemd-udevd[2588]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2608 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2610 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
      Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:29:30 exiguous rtkit-daemon[798]: Successfully made thread 2658 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.


      From the above, the device appears to enumerate twice; I'm not sure why this happens (it takes about eight seconds for the H4n to fully boot up). Once it's fully booted, however, none of PCMs appear to actually work. arecord directly from the device konks out with a generic I/O error. The little live volume monitor in pavucontrol that normally appears underneath input devices is missing entirely for the H4n.



      Audacity gets especially confused, as the H4n appears several times in the available inputs, showing:



      • front-mic 0

      • rear-mic 0

      • line-mic 0

      • front-mic 1

      • rear-mic 1

      • line-mic 1

      Which seems nonsense; the H4n is strictly a stereo USB device.



      I don't think Pulseaudio is the culprit because, prior to posting this, I ran the following test:



      • Log out of X11 desktop.

      • Switch to text console; login as root.

      • Kill Pulseaudio daemon; verify it didn't respawn.


      • chmod -x /usr/sbin/alsactl (prevents system from re-writing possibly insane asound.state at reboot).

      • Delete /var/lib/alsa/asound.state. Coupled with the above, this forces the ALSA system back to "factory defaults" at next boot.

      • Reboot.


      • Do not login to X11. Switch to text console; login as root.


      • chmod +x /usr/sbin/alsactl (fix that back up).

      • Confirm Pulseaudio is not running.

      • Plug in H4n.

      So, with "factory default" ALSA settings and Pulseaudio nowhere to be seen, the problem persists.



      In case it matters, there is an Oculus Rift plugged in to the system, but is never used under Linux.



      And, just to make things weirder, when I plug the very same H4n into my Thinkpad laptop (running the same kernel), it works perfectly fine. Both machines are Debian Sid ("unstable") systems.



      Any and all hints appreciated.



      Edit 2018.09.03:



      After double-checking journalctl logs on my laptop, I find that the H4n also enumerates there twice as well, with almost identical messages. So the double-enumeration itself does not appear to be the problem.



      Edit 2018.09.04:



      After unplugging the Oculus Rift and the Logitech Web cam, there is slight improvement. Rather than hanging immediately, arecord manages to successfully capture about 1-2 seconds of audio, but then hangs for several seconds, reports two short reads (the first always being 96 samples long), and then the program aborts with a generic I/O error.



      I tried loading the usbmon kernel module and capturing bus activity, but my USB-fu doesn't appear to be up to the task of getting terribly useful information out of the logs. It sure feels like something is getting stuck in the USB layers somewhere. I have one more possible hardware culprit to try and eliminate.



      Edit 2019.04.11:



      Based on a couple off-hand comments in some discussion fora suggesting that Intel's X99 chipset might be the problem (!?), I tried an experiment: Rather than plug the H4n directly in to the USB ports on the motherboard, I instead tried plugging it in to a port on an external USB hub. (The "hub" is actually a Corsair Polaris MM800 RGB mouse pad with a single "extension" port; you're intended to plug your mouse in to it).



      Doing so causes the H4n to operate correctly. The strange list of inputs still appears in Audacity, but I can successfully record audio by selecting "front mic 0". Pulseaudio and OBS also handle it correctly.



      I'm happy that I now have a workaround, but I can't imagine why this should work, nor why direct motherboard ports wouldn't.










      share|improve this question
















      Once upon a time, I was abe to plug in my Zoom H4n field recorder into my main PC and have it appear as another audio source inside Audacity for live recording. Worked great. Sometime in the last few months, however, this stopped working. The H4n "appears" (alsamixer sees it), but the PCMs don't work.



      When you plug the H4n into a USB socket, the H4n powers up, but does not yet enumerate. A small UI appears on the device asking how you want the H4n to connect to the PC -- as a USB block device (for retrieving audio recordings from the SD card), or as a USB audio device. I select USB audio, select a sample rate of 48KHz, then select Connect.



      After pressing Connect, the H4n fully initializes, and journalctl -f prints out the following:



      Sep 01 16:27:56 exiguous kernel: usb 3-4: new high-speed USB device number 15 using xhci_hcd
      Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
      Sep 01 16:27:56 exiguous kernel: usb 3-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: USB hub found
      Sep 01 16:27:56 exiguous kernel: hub 3-4:1.0: 4 ports detected
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: new full-speed USB device number 16 using xhci_hcd
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Product: H4
      Sep 01 16:27:56 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
      Sep 01 16:27:56 exiguous mtp-probe[2543]: checking bus 3, device 16: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
      Sep 01 16:27:56 exiguous mtp-probe[2543]: bus: 3, device: 16 was not an MTP device
      Sep 01 16:27:56 exiguous systemd-udevd[2542]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2561 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Successfully made thread 2564 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:27:56 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-source-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
      Sep 01 16:28:01 exiguous pulseaudio[1576]: W: [alsa-sink-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
      Sep 01 16:28:01 exiguous kernel: usb 3-4.2: USB disconnect, device number 16
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: new full-speed USB device number 17 using xhci_hcd
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device found, idVendor=1686, idProduct=0045, bcdDevice= 0.00
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Product: H4
      Sep 01 16:28:02 exiguous kernel: usb 3-4.2: Manufacturer: ZOOM Corporation
      Sep 01 16:28:02 exiguous mtp-probe[2589]: checking bus 3, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2"
      Sep 01 16:28:02 exiguous mtp-probe[2589]: bus: 3, device: 17 was not an MTP device
      Sep 01 16:28:02 exiguous systemd-udevd[2588]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 4' failed with exit code 99.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 4 threads of 1 processes of 1 users.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2608 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Successfully made thread 2610 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:28:02 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.
      Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 5 threads of 1 processes of 1 users.
      Sep 01 16:29:30 exiguous rtkit-daemon[798]: Successfully made thread 2658 of process 1576 (n/a) owned by '1000' RT at priority 5.
      Sep 01 16:29:30 exiguous rtkit-daemon[798]: Supervising 6 threads of 1 processes of 1 users.


      From the above, the device appears to enumerate twice; I'm not sure why this happens (it takes about eight seconds for the H4n to fully boot up). Once it's fully booted, however, none of PCMs appear to actually work. arecord directly from the device konks out with a generic I/O error. The little live volume monitor in pavucontrol that normally appears underneath input devices is missing entirely for the H4n.



      Audacity gets especially confused, as the H4n appears several times in the available inputs, showing:



      • front-mic 0

      • rear-mic 0

      • line-mic 0

      • front-mic 1

      • rear-mic 1

      • line-mic 1

      Which seems nonsense; the H4n is strictly a stereo USB device.



      I don't think Pulseaudio is the culprit because, prior to posting this, I ran the following test:



      • Log out of X11 desktop.

      • Switch to text console; login as root.

      • Kill Pulseaudio daemon; verify it didn't respawn.


      • chmod -x /usr/sbin/alsactl (prevents system from re-writing possibly insane asound.state at reboot).

      • Delete /var/lib/alsa/asound.state. Coupled with the above, this forces the ALSA system back to "factory defaults" at next boot.

      • Reboot.


      • Do not login to X11. Switch to text console; login as root.


      • chmod +x /usr/sbin/alsactl (fix that back up).

      • Confirm Pulseaudio is not running.

      • Plug in H4n.

      So, with "factory default" ALSA settings and Pulseaudio nowhere to be seen, the problem persists.



      In case it matters, there is an Oculus Rift plugged in to the system, but is never used under Linux.



      And, just to make things weirder, when I plug the very same H4n into my Thinkpad laptop (running the same kernel), it works perfectly fine. Both machines are Debian Sid ("unstable") systems.



      Any and all hints appreciated.



      Edit 2018.09.03:



      After double-checking journalctl logs on my laptop, I find that the H4n also enumerates there twice as well, with almost identical messages. So the double-enumeration itself does not appear to be the problem.



      Edit 2018.09.04:



      After unplugging the Oculus Rift and the Logitech Web cam, there is slight improvement. Rather than hanging immediately, arecord manages to successfully capture about 1-2 seconds of audio, but then hangs for several seconds, reports two short reads (the first always being 96 samples long), and then the program aborts with a generic I/O error.



      I tried loading the usbmon kernel module and capturing bus activity, but my USB-fu doesn't appear to be up to the task of getting terribly useful information out of the logs. It sure feels like something is getting stuck in the USB layers somewhere. I have one more possible hardware culprit to try and eliminate.



      Edit 2019.04.11:



      Based on a couple off-hand comments in some discussion fora suggesting that Intel's X99 chipset might be the problem (!?), I tried an experiment: Rather than plug the H4n directly in to the USB ports on the motherboard, I instead tried plugging it in to a port on an external USB hub. (The "hub" is actually a Corsair Polaris MM800 RGB mouse pad with a single "extension" port; you're intended to plug your mouse in to it).



      Doing so causes the H4n to operate correctly. The strange list of inputs still appears in Audacity, but I can successfully record audio by selecting "front mic 0". Pulseaudio and OBS also handle it correctly.



      I'm happy that I now have a workaround, but I can't imagine why this should work, nor why direct motherboard ports wouldn't.







      alsa usb-audio






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday







      ewhac

















      asked Sep 2 '18 at 0:39









      ewhacewhac

      6301620




      6301620




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466325%2falsa-zoom-h4n-not-working-as-usb-audio-source-on-pc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466325%2falsa-zoom-h4n-not-working-as-usb-audio-source-on-pc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          -alsa, usb-audio

          Popular posts from this blog

          Mobil Contents History Mobil brands Former Mobil brands Lukoil transaction Mobil UK Mobil Australia Mobil New Zealand Mobil Greece Mobil in Japan Mobil in Canada Mobil Egypt See also References External links Navigation menuwww.mobil.com"Mobil Corporation"the original"Our Houston campus""Business & Finance: Socony-Vacuum Corp.""Popular Mechanics""Lubrite Technologies""Exxon Mobil campus 'clearly happening'""Toledo Blade - Google News Archive Search""The Lion and the Moose - How 2 Executives Pulled off the Biggest Merger Ever""ExxonMobil Press Release""Lubricants""Archived copy"the original"Mobil 1™ and Mobil Super™ motor oil and synthetic motor oil - Mobil™ Motor Oils""Mobil Delvac""Mobil Industrial website""The State of Competition in Gasoline Marketing: The Effects of Refiner Operations at Retail""Mobil Travel Guide to become Forbes Travel Guide""Hotel Rankings: Forbes Merges with Mobil"the original"Jamieson oil industry history""Mobil news""Caltex pumps for control""Watchdog blocks Caltex bid""Exxon Mobil sells service station network""Mobil Oil New Zealand Limited is New Zealand's oldest oil company, with predecessor companies having first established a presence in the country in 1896""ExxonMobil subsidiaries have a business history in New Zealand stretching back more than 120 years. We are involved in petroleum refining and distribution and the marketing of fuels, lubricants and chemical products""Archived copy"the original"Exxon Mobil to Sell Its Japanese Arm for $3.9 Billion""Gas station merger will end Esso and Mobil's long run in Japan""Esso moves to affiliate itself with PC Optimum, no longer Aeroplan, in loyalty point switch""Mobil brand of gas stations to launch in Canada after deal for 213 Loblaws-owned locations""Mobil Nears Completion of Rebranding 200 Loblaw Gas Stations""Learn about ExxonMobil's operations in Egypt""Petrol and Diesel Service Stations in Egypt - Mobil"Official websiteExxon Mobil corporate websiteMobil Industrial official websiteeeeeeeeDA04275022275790-40000 0001 0860 5061n82045453134887257134887257

          Frič See also Navigation menuinternal link

          Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant