All of lore.kernel.org
 help / color / mirror / Atom feed
* usb: Novation Twitch not working on Linux 4.7
@ 2016-09-21 10:42 Juan Pedro Bolívar Puente
  2016-09-21 11:32 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Juan Pedro Bolívar Puente @ 2016-09-21 10:42 UTC (permalink / raw)
  To: alsa-devel, Mark Hills, tiwai


[-- Attachment #1.1: Type: text/plain, Size: 3538 bytes --]

Hi!

I am trying to use again my Novation Twitch after some time, and audio
playback is not working anymore.  I have tried with Jackd and various
other programs, and it seems to always fail to install the hardware
params.  Note that before it fails, I do get to hear a little noise in
the monitor output.  Here is console the output of various programs.

Note that, I am using Linux 4.7.0-1-amd64 as distributed with Debian
Sid.

Here is the output of some commands:

  $ ./alsacap

      *** Scanning for playback devices ***
      ...
      Card 1, ID `Twitch', name `Twitch'
        Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
          4 channels, sampling rate 44100..48000 Hz
          Sample formats: S24_3LE
            Subdevice 0, name `subdevice #0'

  $ ./alsacap -d hw:Twitch

      *** Exploring configuration space of device `hw:Twitch' for playback ***
      4 channels
      Sampling rate 44100..48000 Hz
      Sample formats: S24_3LE
      Significant bits: 24

  $ aplay -D hw:Twitch -f S24_3LE -c 4 -r 44100 test.wav

      Playing raw data 'prueba.wav' : Signed 24 bit Little Endian in
      3bytes, Rate 44100 Hz, Channels 4
      aplay: set_params:1361: Unable to install hw params:
      ACCESS:  RW_INTERLEAVED
      FORMAT:  S24_3LE
      SUBFORMAT:  STD
      SAMPLE_BITS: 24
      FRAME_BITS: 96
      CHANNELS: 4
      RATE: 44100
      PERIOD_TIME: (125011 125012)
      PERIOD_SIZE: 5513
      PERIOD_BYTES: 66156
      PERIODS: (3 4)
      BUFFER_TIME: 500000
      BUFFER_SIZE: 22050
      BUFFER_BYTES: 264600
      TICK_TIME: 0

  $ mplayer -ao alsa:device=hw=Twitch test.mp3

      MPlayer 1.3.0 (Debian), built with gcc-5.4.0 (C) 2000-2016 MPlayer Team
      Playing test.mp3.
      ...
      [AO_ALSA] Format s16le is not supported by hardware, trying default.
      [AO_ALSA] Unable to set format: Invalid argument
      Failed to initialize audio driver 'alsa:device=hw=Twitch'

  $ mplayer -ao alsa:device=plughw=Twitch test.mp3

      MPlayer 1.3.0 (Debian), built with gcc-5.4.0 (C) 2000-2016 MPlayer Team
      Playing test.mp3.
      ...
      [AO_ALSA] alsa-lib: pcm_hw.c:603:(snd_pcm_hw_prepare)
  SNDRV_PCM_IOCTL_PREPARE failed (-32): Broken pipe
      [AO_ALSA] alsa-lib: pcm_direct.c:1054:(snd1_pcm_direct_initialize_slave)
  unable to install hw params
      [AO_ALSA] alsa-lib: pcm_dmix.c:1053:(snd_pcm_dmix_open) unable to
  initialize slave
      [AO_ALSA] Playback open error: Broken pipe
      Failed to initialize audio driver 'alsa:device=hw=Twitch'

  $ jackd -n twitch -d alsa -d hw:Twitch

      jackdmp 1.9.11
      ...
      creating alsa driver ...
  hw:Twitch|hw:Twitch|1024|2|48000|0|0|nomon|swmeter|-|32bit
      Using ALSA driver USB-Audio running on card 1 - Novation Twitch at
  usb-0000:00:1d.0-1.2, full speed
      ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to
  playback-only mode
      configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2
  periods
      ALSA: final selected sample format for playback: 24bit little-endian in
  3bytes format
      ALSA: use 2 periods for playback
      ALSA: cannot set hardware parameters for playback
      ALSA: cannot configure playback channel

Am I doing something wrong?  Is it really broken?
  
Thanks a lot!

JP

--
                                 ∿∿∿∿
                         https://sinusoid.es
                                 ∿∿∿∿

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usb: Novation Twitch not working on Linux 4.7
  2016-09-21 10:42 usb: Novation Twitch not working on Linux 4.7 Juan Pedro Bolívar Puente
@ 2016-09-21 11:32 ` Clemens Ladisch
  2016-09-21 17:39   ` Juan Pedro Bolívar Puente
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2016-09-21 11:32 UTC (permalink / raw)
  To: Juan Pedro Bolívar Puente, alsa-devel, Mark Hills

Juan Pedro Bolívar Puente wrote:
>   $ aplay -D hw:Twitch -f S24_3LE -c 4 -r 44100 test.wav
>
>       Playing raw data 'prueba.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Channels 4
>       aplay: set_params:1361: Unable to install hw params:

Any error message in the system log?


Regards,
Clemens

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usb: Novation Twitch not working on Linux 4.7
  2016-09-21 11:32 ` Clemens Ladisch
@ 2016-09-21 17:39   ` Juan Pedro Bolívar Puente
  0 siblings, 0 replies; 3+ messages in thread
From: Juan Pedro Bolívar Puente @ 2016-09-21 17:39 UTC (permalink / raw)
  To: Clemens Ladisch, alsa-devel, Mark Hills


[-- Attachment #1.1: Type: text/plain, Size: 1564 bytes --]

Clemens Ladisch <clemens@ladisch.de> writes:

> Juan Pedro Bolívar Puente wrote:
>>   $ aplay -D hw:Twitch -f S24_3LE -c 4 -r 44100 test.wav
>>
>>       Playing raw data 'prueba.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Channels 4
>>       aplay: set_params:1361: Unable to install hw params:
>
> Any error message in the system log?

Hmmm, today, the weirdest thing happened.  It worked!  For a while...
It worked with aplay, mplayer and jackd.  Then I tried with Mixxx (with
ALSA output) and it got "broken".  I reboot: it works again.  I even get
it to work on Mixxx.  But then I press "query devices" on Mixxx and it
gets "broken" again.  I reboot to try to see if I can make the sequence
reproducible: it does not work anymore.  I reboot: again and again and
again and it does not work.

When I say "it does not work" the symptons are exactly the same as I
said before.  Additionally, I just tried looking at `dmesg`, and I see
lots of this:

    [ 116.551873] usb 2-1.2: cannot submit urb 0, error -28: not enough
    bandwidth

Lol, one last funny thing.  I just tried again as I was writing this
Email: now it is working with all programs.  Oh, no!  I press "Query
devices" on Mixxx and it gets broken again.

I look at the logs for a while, nothing new.

Oh, now it works again!  This is driving me crazy...

Thanks anyways for the responses :-)

  JP

-- 
                                 ∿∿∿∿
                         https://sinusoid.es
                                 ∿∿∿∿

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-21 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 10:42 usb: Novation Twitch not working on Linux 4.7 Juan Pedro Bolívar Puente
2016-09-21 11:32 ` Clemens Ladisch
2016-09-21 17:39   ` Juan Pedro Bolívar Puente

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.