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

Thread: No JACK USB audio output

  1. #1
    Join Date
    Feb 2011
    Location
    Erie, PA, USA
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    No JACK USB audio output

    Hi all.

    Having trouble with JACK audio output through a USB interface.

    Recording guitars and such through an ART USB Dual Pre, which I just received yesterday. Plugged it in, and it worked right out of the box. Configuration in JACK was very straightforward, and had no trouble getting tones from Rakarrack/JackRack/Guitarix etc., and getting processed signal through my headphone out of the preamp.

    Then of course I put it away and brought it back out again, and now it doesn't work... :-/

    I can still hear the dry signal from the preamp, but no return signal from JACK. It's not just the guitar signal, synths and other JACK-connected things aren't sounding either. I know the input is working, I'm still able to successfully record it in Ardour, even. I just can't hear it.

    Both input and output devices are set to hw:1 / USB Audio CODEC, which is what was working yesterday. Tried alternate USB cables and everything I could think of, and no dice.

    Any help would be appreciated...

  2. #2
    Join Date
    Jun 2008
    Location
    Gipuzkoa, Spain
    Beans
    732
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: No JACK USB audio output

    Hi,

    Check your hardware connections. I think it is better if you connect the monitor outputs left and right to an external amplifier, instead of the headphone output, that you normally use for hardware monitoring. Anyway, what is the setting of the MIX knob?

    On the software side, in Jack Control, I think it is better if you leave the input and output devices as (default) and choose your soundcard in the interface field, so that jack will hopefully default to the right input/output device (duplex mode).

    I suggest you use aqualung to test the playback (software center). Make sure that the aqualung (or whatever) output ports are connected to the system: playback input ports (which correspond to the output ports of the card that jack is using for playback) in the connect window of Jack Control (audio tab), or in patchage (blue connections).

    We can help better if you give the terminal output of the command:

    arecord -l && aplay -l

    and show the messages of Jack Control.

    Cheers, Pablo

  3. #3
    Join Date
    Feb 2011
    Location
    Erie, PA, USA
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No JACK USB audio output

    Hi Pablo.

    Using the monitor outs to an external amp & speakers is not going to work most of the time, as I'll be using this for portable recording with my laptop.

    The MIX knob - when it's panned to 'Preamp' I hear the dry signal from the preamp, and when panned to 'Computer' I hear nothing.

    I tried as you suggested and changed the input and output channels to (default) and the interface tab to hw:1, and same result.

    Aqualung appears to play, but no audio.

    Terminal output & JACK messages below, thanks for the help.

    Adam


    arecord -l && aplay -l
    **** List of CAPTURE Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
    Subdevices: 2/2
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    card 1: default [USB Audio CODEC ], device 0: USB Audio [USB Audio]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: default [USB Audio CODEC ], device 0: USB Audio [USB Audio]
    Subdevices: 0/1
    Subdevice #0: subdevice #0


    22:58:04.065 JACK is starting...
    22:58:04.066 /usr/bin/jackd -dalsa -dhw:1 -r44100 -p256 -n2
    22:58:04.072 JACK was started with PID=2681.
    no message buffer overruns
    no message buffer overruns
    jackdmp 1.9.7
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2010 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    JACK server starting in realtime mode with priority 10
    control device hw:1
    control device hw:1
    audio_reservation_init
    Acquire audio card Audio1
    creating alsa driver ... hw:1|hw:1|256|2|44100|0|0|nomon|swmeter|-|32bit
    control device hw:1
    Using ALSA driver USB-Audio running on card 1 - Burr-Brown from TI USB Audio CODEC at usb-0000:00:1d.0-1, full s
    configuring for 44100Hz, period = 256 frames (5.8 ms), buffer = 2 periods
    ALSA: final selected sample format for capture: 16bit little-endian
    ALSA: use 2 periods for capture
    ALSA: final selected sample format for playback: 16bit little-endian
    ALSA: use 2 periods for playback
    22:58:06.214 JACK connection change.
    22:58:06.217 Server configuration saved to "/home/adam/.jackdrc".
    22:58:06.219 Statistics reset.
    22:58:06.229 Client activated.

  4. #4
    Join Date
    Jun 2008
    Location
    Gipuzkoa, Spain
    Beans
    732
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: No JACK USB audio output

    Hi,

    I don't know what happens but you can try a lower level test: speaker-test

    http://alsa.opensrc.org/Speaker-test

    I think, someting like:

    speaker-test -Dfront:default -c2 -twav

    should give sound when the knob is panned to computer. If not, post the output of aplay -L please.

    EDIT: stop the jack server before running speaker-test

    Cheers, Pablo

  5. #5
    Join Date
    Dec 2006
    Beans
    1,540

    Re: No JACK USB audio output

    Quote Originally Posted by onewayness View Post
    Hi all.

    Having trouble with JACK audio output through a USB interface.

    Recording guitars and such through an ART USB Dual Pre, which I just received yesterday. Plugged it in, and it worked right out of the box. Configuration in JACK was very straightforward, and had no trouble getting tones from Rakarrack/JackRack/Guitarix etc., and getting processed signal through my headphone out of the preamp.

    Then of course I put it away and brought it back out again, and now it doesn't work... :-/

    I can still hear the dry signal from the preamp, but no return signal from JACK. It's not just the guitar signal, synths and other JACK-connected things aren't sounding either. I know the input is working, I'm still able to successfully record it in Ardour, even. I just can't hear it.

    Both input and output devices are set to hw:1 / USB Audio CODEC, which is what was working yesterday. Tried alternate USB cables and everything I could think of, and no dice.

    Any help would be appreciated...
    If the ART preamp is the HW:1, then it can't be both the input and output, your souncard/chip needs to be the output device. Qjackctl
    setup page,

    Input device >
    Output device >

    click the > and see your options.

    If you have a second usb device, like an m-audio usb soundcard,
    then it may have changed its hw: number on a fresh boot. I have a
    bootable usb drive, usb guitar amp, and usb modem, all in use at
    irregular times, so some horesplay is needed to sort the hw: in
    qjackctl.

    Cheers

  6. #6
    Join Date
    Jun 2008
    Location
    Gipuzkoa, Spain
    Beans
    732
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: No JACK USB audio output

    If the ART preamp is the HW:1, then it can't be both the input and output
    Why not? hw:1 or hw:default is the USB card and the device hw:1,0 has both capture and playback ports.

    **** List of CAPTURE Hardware Devices ****
    card 1: default [USB Audio CODEC ], device 0: USB Audio [USB Audio]
    **** List of PLAYBACK Hardware Devices ****
    card 1: default [USB Audio CODEC ], device 0: USB Audio [USB Audio]

    This card is not just a preamp, it is a class compliant usb soundcard 16bit/44,1kHz with input and output connections. The OP does not need to choose the input and output devices separately as they want to use the USB card in duplex mode (for capture and playback).

    OTOH, jack gives no errors. To narrow down the sources of the problem, I suggested the speaker-test.

    Cheers, Pablo

  7. #7
    Join Date
    Feb 2011
    Location
    Erie, PA, USA
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No JACK USB audio output

    @Pablo: The speaker test failed, see below...


    adam@adam-HP-Mini:~$ speaker-test -Dfront:default -c2 -twavPlayback open error: -16,Device or resource busy

    speaker-test 1.0.23

    speaker-test: invalid option -- '1'
    Unknown option '?'
    adam@adam-HP-Mini:~$ speaker-test -Dfront:default -c2 -twav

    speaker-test 1.0.23

    Playback device is front:default
    Stream parameters are 48000Hz, S16_LE, 2 channels
    WAV file(s)
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy
    Playback open error: -16,Device or resource busy



    adam@adam-HP-Mini:~$ aplay -L
    default
    pulse
    Playback/recording through the PulseAudio sound server
    front:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Front speakers
    surround40:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    dmix:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Direct sample mixing device
    dsnoop:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Direct sample snooping device
    hw:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Direct hardware device without any conversions
    plughw:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Hardware device with all software conversions
    front:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    Front speakers
    surround40:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    IEC958 (S/PDIF) Digital Audio Output
    dmix:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    Direct sample mixing device
    dsnoop:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    Direct sample snooping device
    hw:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    Direct hardware device without any conversions
    plughw:CARD=default,DEV=0
    USB Audio CODEC , USB Audio
    Hardware device with all software conversions
    adam@adam-HP-Mini:~$

  8. #8
    Join Date
    Jun 2008
    Location
    Gipuzkoa, Spain
    Beans
    732
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: No JACK USB audio output

    Hi,

    Did you stop the jack server before running speaker-test? You also might need to kill pulseaudio (the default audio server in ubuntu) but in this case, you also need to avoid autospawn. In a terminal:

    echo "autospawn=no" > ~/.pulse/client.conf
    pulseaudio -k
    killall jackd
    speaker-test -Dfront:default -c2 -twav

    Cheers, Pablo

  9. #9
    Join Date
    Feb 2011
    Location
    Erie, PA, USA
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No JACK USB audio output

    Hi Pablo.

    No, I hadn't killed JACK first, I thought you had meant for me to run the script with it running. Tried it per your instructions, and it executed, but I heard nothing. Should this have sounded through my internal speaker, or through the preamp?

    I tried resetting JACK to hw:0 for the outputs, and I hear playback normally through my laptop's internal sound card. Switched it back to hw:1, and again nothing through the preamp...

    Thanks,
    Adam

    adam@adam-HP-Mini:~$ echo "autospawn=no" > ~/.pulse/client.conf
    adam@adam-HP-Mini:~$ pulseaudio -k
    adam@adam-HP-Mini:~$ killall jackd
    jackd: no process found
    adam@adam-HP-Mini:~$ speaker-test -Dfront:default -c2 -twav

    speaker-test 1.0.23

    Playback device is front:default
    Stream parameters are 48000Hz, S16_LE, 2 channels
    WAV file(s)
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 96 to 262144
    Period size range from 48 to 131072
    Using max buffer size 262144
    Periods = 4
    was set period_size = 65536
    was set buffer_size = 262144
    0 - Front Left
    1 - Front Right
    Time per period = 5.543955
    0 - Front Left
    1 - Front Right
    Time per period = 5.547827

    etc etc etc...

  10. #10
    Join Date
    Jun 2008
    Location
    Gipuzkoa, Spain
    Beans
    732
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: No JACK USB audio output

    Hi,

    No, I hadn't killed JACK first, I thought you had meant for me to run the script with it running.
    No, I wanted you to leave jack or any other audio server out of the equation. Now it seems that jack is not to blame, that the problem is in a lower level (in the hardware or the alsa driver).

    Try with 44100 frame rate (adding the -r44100 option):

    speaker-test -Dfront:default -r44100 -c2 -twav

    This command tests your interface called "hw:default" which is the USB audio interface. Sorry for this again, buy I suppose you have the MIX knob set to computer.

    I suggest you try with the monitor outs to an external amplifier, with speaker-test and jack-aqualung.

    Should this have sounded through my internal speaker, or through the preamp?
    Through the USB card, of course. To test the laptop speakers, just to hear what you should be hearing through the ART USB Dual Pre, modify the command:

    speaker-test -Dfront:Intel -c2 -twav

    Cheers, Pablo

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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