ArtDio NB-005B USB Speakers Stopped Working in Ubuntu 12.10

Bug #1074783 reported by Lonnie Lee Best
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Undecided
Unassigned

Bug Description

I know the proper way to report bugs about packages of software I use, but I'm not sure how to properly report bugs about hardware I use.

You see, in Ubuntu 12.04, my ArtDio NB-005B USB Speakers worked fine.

However, after upgrading to 12.10 Beta2, they still appear under that "Sound Settings" > "Output" menu, but once selected the audio continues to play out of my laptops internal speakers.

Normally, I choose a package to report a bug, but I'm not sure how to report this type of thing.

Please advise best practices.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

This bug evolved from this question:
https://answers.launchpad.net/ubuntu/+question/210630

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

I can see how I wasn't clear.

This issue isn't that sound is coming out of both devices; it is that once I select "Digital Output (S/PDIF) USB Device" (under the "Output" tab of the "Sound" preferences dialog), the sound continues to be played through my internal speakers AND no sound comes out of the ArtDio NB-005B USB Speakers (for which my selection specifies).

Again, this behavior started after upgrading to Ubuntu 12.10 beta 2, but worked correctly in 12.04.

When I run alsamixer, it says

│ Card: USB Device 0x46d:0x821 F1: Help │
│ Chip: USB Mixer F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Esc: Exit │
│ │
│ │
│ │
│ This sound device does not have any playback controls.

----------------------------------------------------------------
Actually, that's probably not the right device. It is this one, and it is not muted:

│ Card: USB Audio Device F1: Help │
│ Chip: USB Mixer F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: PCM [dB gain: 24.00, 24.00] Esc: Exit │
│ │
│ ┌──┐ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │▒▒│ │
│ │▒▒│ │
│ │▒▒│ │
│ │▒▒│ │
│ │▒▒│ │
│ │▒▒│ │
│ │▒▒│ │
│ ├──┤ │
│ │OO│ │
│ └──┘ │
│ 66<>66 │
│ < PCM >

Revision history for this message
Raymond (superquad-vortex2) wrote :

post the output of alsa-info.sh

https://wiki.ubuntu.com/Audio/AlsaInfo

post the pulseaudio verbose log

when you mute and unmute the sound in sound preference, does the alsamixer change respectively ?

https://wiki.ubuntu.com/PulseAudio/Log

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

ALSA Information:
http://www.alsa-project.org/db/?f=c964bb7dd7d08f5e86818c56533dc519c45291fd

Yes, muting in Sound Settings does mute (MM) in alsamixer. The USB device in Sound Settings seems to map to my internal speakers instead of the USB ArtDio NB-005B speakers . No matter which audio device I choose, my internal speakers remain playing the audio (and the USB ArtDio NB-005B speakers never play, while there power light is indeed on). Muting my USB device (in Ubuntu Sound Settings) mutes my internal speakers in alsamixer but so does muting my internal speaker device (in Ubuntu Sound Settings).

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

See this attachment of my Sound Settings. In Ubuntu 12.04, when I'd select that device, audio would begin coming out of my ArtDia USB Speakers. Now selecting it does nothing; it acts like a still have the internal speakers selected.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

I just noticed something else quite strange. Although I have the balance in the middle. Sound is only coming out of my right internal speaker. Sorry to get off topic, but thought this might somehow be related.

Revision history for this message
Raymond (superquad-vortex2) wrote :

you have to post the pulseaudio verbose log

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :
Revision history for this message
Raymond (superquad-vortex2) wrote :

you need to send email to david to add your device into blacklist

I think a better way is a whitelist for those usb audio which have only iec958 for device zero

http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=bb5c49fa4160ec1d819fb03fc8dfb5387dad0522;hp=a6c50d64d9d06cece520d0ab9b109990241af47b

Revision history for this message
Raymond (superquad-vortex2) wrote :

your ArtDio NB-005B USB Speakers only analog stereo and does not support iec958

( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Profile set 0x2282700, auto_profiles=yes, probed=yes, n_mappings=2, n_profiles=2, n_decibel_fixes=0
( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Mapping analog-stereo (Analog Stereo), priority=60, channel_map=front-left,front-right, supported=yes, direction=0
( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Mapping iec958-stereo (Digital Stereo (IEC958)), priority=55, channel_map=front-left,front-right, supported=yes, direction=0
( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Profile output:analog-stereo (Analog Stereo Output), priority=6000, supported=yes n_input_mappings=0, n_output_mappings=1
( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Output analog-stereo
( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Profile output:iec958-stereo (Digital Stereo (IEC958) Output), priority=5500, supported=yes n_input_mappings=0, n_output_mappings=1
( 0.371| 0.000) D: [pulseaudio] alsa-mixer.c: Output iec958-stereo
( 0.371| 0.000) I: [pulseaudio] module-card-restore.c: Restoring profile for card alsa_card.usb-19a8_USB_Audio_Device-01-Device.
( 0.371| 0.000) I: [pulseaudio] card.c: Created 2 "alsa_card.usb-19a8_USB_Audio_Device-01-Device"
( 0.372| 0.000) D: [pulseaudio] reserve-wrap.c: Successfully create reservation lock monitor for device 'Audio1'
( 0.372| 0.000) D: [pulseaudio] alsa-util.c: Trying iec958:1 with SND_PCM_NO_AUTO_FORMAT ...
( 0.373| 0.000) D: [pulseaudio] alsa-util.c: Managed to open iec958:1
( 0.373| 0.000) I: [pulseaudio] alsa-util.c: cannot disable ALSA period wakeups
( 0.373| 0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 5592 ms
( 0.373| 0.000) D: [pulseaudio] alsa-util.c: Set buffer size first (to 93750 samples), period size second (to 93750 samples).
( 0.373| 0.000) I: [pulseaudio] alsa-util.c: Device iec958:1 doesn't support 44100 Hz, changed to 46875 Hz.
( 0.373| 0.000) I: [pulseaudio] alsa-util.c: ALSA period wakeups were not disabled
( 0.373| 0.000) I: [pulseaudio] alsa-sink.c: Successfully opened device iec958:1.
( 0.373| 0.000) I: [pulseaudio] alsa-sink.c: Selected mapping 'Digital Stereo (IEC958)' (iec958-stereo).
( 0.373| 0.000) I: [pulseaudio] alsa-sink.c: Successfully enabled mmap() mode.
( 0.373| 0.000) I: [pulseaudio] alsa-sink.c: Successfully enabled timer-based scheduling mode.
( 0.373| 0.000) E: [pulseaudio] alsa-sink.c: Failed to find any supported sample rates.
( 0.407| 0.033) D: [pulseaudio] module-alsa-card.c: Found 0 jacks.
( 0.411| 0.004) I: [pulseaudio] module.c: Loaded "module-alsa-card" (index: #6; argument: "device_id="1" name="usb-19a8_USB_Audio_Device-01-Device" card_name="alsa_card.usb-19a8_USB_Audio_Device-01-Device" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes card_properties="module-udev-detect.discovered=1"").
( 0.411| 0.000) I: [pulseaudio] module-udev-detect.c: Card /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4.1/2-4.1:1.1/sound/card1 (alsa_card.usb-19a8_USB_Audio_Device-01-Device) module loaded.

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

What's weird, is that the speakers work in Ubuntu 12.04 (and earlier) and in Windows XP, but do not work with Windows 7 or Ubuntu 12.10. I'm emailing David Henningsson now.

Revision history for this message
David Henningsson (diwic) wrote :

I could add the device to the alsa-lib blacklist but that would not solve the problem, just remove the S/PDIF connection.

I think the key to understand this problem is:

Device iec958:1 doesn't support 44100 Hz, changed to 46875 Hz.

Now that's a weird sample rate. I wonder if this is actually the case, i e, that the true sample rate of the speakers are 46875 Hz, or if there's something in the lsusb device information that's wrong. Do you get any sound out of your speakers with this command?

speaker-test -c 2 -D plughw:Device -t sine

...and if so, are you able to figure out if the sample rate is actually 46875 Hz or if the tone is detuned? :-)

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Thanks for looking into this.

I have the volume all the way up, and the USB Audio device selected in Ubuntu "Sound Settings", but I do not hear any sound when I run the following command in the terminal:

speaker-test -c 2 -D plughw:Device -t sine

speaker-test 1.0.25

Playback device is plughw:Device
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 268435
Period size range from 48 to 134218
Using max buffer size 268432
Periods = 4
was set period_size = 53686
was set buffer_size = 268432
 0 - Front Left
 1 - Front Right
Time per period = 4.631471
 0 - Front Left
 1 - Front Right
Time per period = 4.639996
 0 - Front Left
 1 - Front Right
Time per period = 4.639965
 0 - Front Left
 1 - Front Right
Time per period = 4.639900
 0 - Front Left
 1 - Front Right
Time per period = 4.639921
 0 - Front Left

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

When I do this command for (HDA Intel) 0:
speaker-test -c 2 -D plughw:0 -t sine

Only through my laptop's right-internal-speaker do I hear sound. The left one doesn't work.

When I do this command for (USB Audio Device) 1, I do not hear sound from any speaker:
speaker-test -c 2 -D plughw:1 -t sine

speaker-test 1.0.25

Playback device is plughw:1
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 268435
Period size range from 48 to 134218
Using max buffer size 268432
Periods = 4
was set period_size = 53686
was set buffer_size = 268432
 0 - Front Left
 1 - Front Right

And lastly, if I try (USB Device 0x46d:0x821) 2, I get an error

speaker-test -c 2 -D plughw:2 -t sine

speaker-test 1.0.25

Playback device is plughw:2
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Playback open error: -2,No such file or directory

Revision history for this message
David Henningsson (diwic) wrote :

the "USB Device 0x46d:0x821" device is probably a webcam or similar device, from which you cannot play back.

As for the USB speakers - I don't know what's causing it, but there was some refactoring in the 3.5 kernel of the usb-audio driver. It might be worth to try a later kernel, and if that does not help, reporting the issue upstream at the alsa-devel mailinglist.

Revision history for this message
Raymond (superquad-vortex2) wrote :

usb audio 1.0 specification seem not imposing any limit on the sampling rate, look like the hda developer enforce the rate restriction of hda with the pulseaudio server for optimaztion

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

As mentioned, I can't get the ArtDio NB-005B USB Speakers to work on Ubuntu 12.10.

So, I tried using them with the 12.04 Live CD, and I was surprised that they didn't work there either (because before upgrading to 12.10 they worked).

Then I tried using them by loading the Ubuntu 10.04.2 Live CD. From there, they worked fine!

Here's the alsa-info of the speakers working perfectly in Ubuntu 10.04.2:
http://www.alsa-project.org/db/?f=c633ff994562edbb21f2d9bdefae40b8c5c68c05

and here's them not working in Ubuntu 12.10:
http://www.alsa-project.org/db/?f=c964bb7dd7d08f5e86818c56533dc519c45291fd

Previously, I attached the Pulse Audio Log of the speakers NOT working in 12.10.

Now, this attachment is the Pulse Audio Log of them WORKING in Ubuntu 10.04.2

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

These speakers worked fine in Windows XP and Ubuntu 10.04. Yet they weren't working Windows 7, Windows 8, or Ubuntu 12.10.

I got them to work in Windows 7 and 8 by disabling all enhancements:
http://www.fixya.com/support/t4027966-usb_speakers_not_working_windows_7

What would be the equivalent for doing that in Ubuntu 12.10? If I knew this, perhaps it would be a workaround in Ubuntu 12.10 too.

Revision history for this message
Raymond (superquad-vortex2) wrote :

post the output of "lsusb -vvvv" for ArtDio NB-005B USB Speakers

Revision history for this message
Raymond (superquad-vortex2) wrote :

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=e67440e2208fb8182916493b57b75e91013510e7

unsigned int *pa_alsa_get_supported_rates(snd_pcm_t *pcm) {
    static unsigned int all_rates[] = { 8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000, 384000 };

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :
Download full text (132.0 KiB)

Output for command "lsusb -vvvv":

Bus 001 Device 002: ID 05ca:18a1 Ricoh Co., Ltd
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 239 Miscellaneous Device
  bDeviceSubClass 2 ?
  bDeviceProtocol 1 Interface Association
  bMaxPacketSize0 64
  idVendor 0x05ca Ricoh Co., Ltd
  idProduct 0x18a1
  bcdDevice 87.31
  iManufacturer 9
  iProduct 2
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 1144
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 100mA
    Interface Association:
      bLength 8
      bDescriptorType 11
      bFirstInterface 0
      bInterfaceCount 2
      bFunctionClass 14 Video
      bFunctionSubClass 3 Video Interface Collection
      bFunctionProtocol 0
      iFunction 2
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 14 Video
      bInterfaceSubClass 1 Video Control
      bInterfaceProtocol 0
      iInterface 2
      VideoControl Interface Descriptor:
        bLength 13
        bDescriptorType 36
        bDescriptorSubtype 1 (HEADER)
        bcdUVC 1.00
        wTotalLength 104
        dwClockFrequency 24.000000MHz
        bInCollection 1
        baInterfaceNr( 0) 1
      VideoControl Interface Descriptor:
        bLength 18
        bDescriptorType 36
        bDescriptorSubtype 2 (INPUT_TERMINAL)
        bTerminalID 1
        wTerminalType 0x0201 Camera Sensor
        bAssocTerminal 3
        iTerminal 0
        wObjectiveFocalLengthMin 0
        wObjectiveFocalLengthMax 0
        wOcularFocalLength 0
        bControlSize 3
        bmControls 0x00000000
      VideoControl Interface Descriptor:
        bLength 11
        bDescriptorType 36
        bDescriptorSubtype 5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID 2
        bSourceID 1
        wMaxMultiplier 0
        bControlSize 2
        bmControls 0x0000157f
          Brightness
          Contrast
          Hue
          Saturation
          Sharpness
          Gamma
          White Balance Temperature
          Backlight Compensation
          Power Line Frequency
          White Balance Temperature, Auto
        iProcessing 0
        bmVideoStandards 0x1b
          None
          NTSC - 525/60
          SECAM - 625/50
          NTSC - 625/50
      VideoControl Interface Descriptor:
        bLength 27
 ...

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Not for sure which device is the ArtDio NB-005B USB Speakers. "ArtDio" may be a brand relabeling or something that is only printed on the device, but not inside of it.

Revision history for this message
Raymond (superquad-vortex2) wrote :
Download full text (5.9 KiB)

Bus 002 Device 004: ID 19a8:2036 Biforst Technology Inc.
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x19a8 Biforst Technology Inc.
  idProduct 0x2036
  bcdDevice 1.00
  iManufacturer 0
  iProduct 2
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 138
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 500mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 0 No Subclass
      bInterfaceProtocol 0 None
      iInterface 0
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.00
          bCountryCode 0 Not supported
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 35
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0002 1x 2 bytes
        bInterval 16
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 0
      bInterfaceClass 1 Audio
      bInterfaceSubClass 1 Control Device
      bInterfaceProtocol 0
      iInterface 0
      AudioControl Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 1 (HEADER)
        bcdADC 1.00
        wTotalLength 43
        bInCollection 1
        baInterfaceNr( 0) 2
      AudioControl Interface Descriptor:
        bLength 12
        bDescriptorType 36
        bDescriptorSubtype 2 (INPUT_TERMINAL)
        bTerminalID 1
        wTerminalType 0x0101 USB Streaming
        bAssocTerminal 0
        bNrChannels 2
        wChannelConfig 0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames 0
        iTerminal 0
      AudioControl Interface Descriptor:
        bLength 13
        bDescriptorType 36
        bDescriptorSubtype 6 (FEATURE_UNIT)
        bUnitID 2
    ...

Read more...

Revision history for this message
Raymond (superquad-vortex2) wrote :

a dirty hack is just add 46875 to the array all_rates in function pa_alsa_get_supported_rates

     AudioStreaming Interface Descriptor:
         bLength 11
         bDescriptorType 36
         bDescriptorSubtype 2 (FORMAT_TYPE)
         bFormatType 1 (FORMAT_TYPE_I)
         bNrChannels 2
         bSubframeSize 2
         bBitResolution 16
         bSamFreqType 1 Discrete
         tSamFreq[ 0] 46875

Revision history for this message
David Henningsson (diwic) wrote :

Hi Lonnie,

I'm currently discussing this upstream, and confirmed it is a regression. Hopefully it'll be fixed in PulseAudio 3.0, which is going to be used in Ubuntu 13.04.

Changed in alsa-driver (Ubuntu):
status: New → In Progress
affects: alsa-driver (Ubuntu) → pulseaudio (Ubuntu)
Revision history for this message
typos1 (jhills1) wrote :

Belatedly upgraded to 12.10 and having same problem with my USB audio device, this device has worked fine inprevious versions of Ubuntu, very strange that it doesnt work on 12.10, anyone sort a fix ?

Revision history for this message
typos1 (jhills1) wrote :

Not the same usb device though, "music studio" usb speakers

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Thanks to David Henningsson, my ArtDio NB-005B USB Speakers are working in the 13.04 Alpha under:
 3.8.0-15-generic #25-Ubuntu SMP Wed Mar 27 19:19:30 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

It was annoying (them not working the entire time of Ubuntu 12.10), but this is good sign they'll working in the 13.04 release.

Thanks to all that helped make this happen!

Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

Thank you Raymond (too)!

Revision history for this message
David Henningsson (diwic) wrote :

Fixed in 13.04 according to comment #30. Thanks for confirming!

Changed in pulseaudio (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :

These speakers are again not working in my testing of the 3.12 Kernel:

Linux sidekick 3.12.0-999-generic #201309190446 SMP Thu Sep 19 08:47:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions