Bug 339135 - vlc backend chooses JBL Pepples USB loud speakers only on *second* playback attempt in a application
Summary: vlc backend chooses JBL Pepples USB loud speakers only on *second* playback a...
Status: REPORTED
Alias: None
Product: phonon-backend-vlc
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 0.8.0
Platform: Other Linux
: NOR normal
Target Milestone: 0.8
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 08:05 UTC by Martin Steigerwald
Modified: 2021-03-09 22:36 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
phonon debug while inserting, opening multimedia kcm, pressing "test" and quitting kcm again (22.57 KB, text/plain)
2014-09-17 19:20 UTC, Martin Steigerwald
Details
another play test with full phonon debug (17.47 KB, text/plain)
2014-09-17 19:49 UTC, Martin Steigerwald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2014-09-17 08:05:51 UTC
Yesterday I got new JBL Pebbles USB laud speakers. They work marvellously in VLC and I never ever heard any sound of that quality out of a 50 Euro loud speaker. It completely abolishes everything else I heard so far in this price category.

But it doesn´t work with Phonon backend vlc. I always get an error message stating this audio device does not work, switching to name of internal Intel HDA audio of this ThinkPad T520 when trying to test play a song with systemsettings.

I really want these to work, preferably in the VLC backend, which doesn´t hang on seeking in Amarok, so I am willing to do additionally testing, provide information or maybe even possibly buy a developer one of these loudspeakers.

Reproducible: Always

Steps to Reproduce:
1. Have Phonon, but no Pulseaudio.
2. Connect JBL Pebbles via USB.
3. Try to play a test song in Systemsettings.

Actual Results:  
I always get an error message stating this audio device does not work, switching to name of internal Intel HDA audio of this ThinkPad T520. Do not have the exact wording, was in germany anyway… but its the usual does not work message of Phonon.

Expected Results:  
That crystal clear beautiful sound that these JBL Pebbles give me when they work. It works with plain VLC, so it is supposed to work with vlc backend, I think.

I will also reported with for gstreamer backend, cause it fails there to, but in a different way (see bug #Bug 339134).

The speakers work when using PulseAudio, but with PulseAudio so much else does not work, like:
- no OpenAL games without stuttering sound
- mutes loudspeakers on connecting loudspeakers to headphone cinch of laptop without giving a GUI way to override this

merkaba:~> tail -fn0 /var/log/kern.log
Sep 16 20:37:01 merkaba kernel: [26986.351240] usb 1-1.2: new full-speed USB device number 6 using ehci-pci
Sep 16 20:37:02 merkaba kernel: [26986.431882] usb 1-1.2: New USB device found, idVendor=05fc, idProduct=0231
Sep 16 20:37:02 merkaba kernel: [26986.431895] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 16 20:37:02 merkaba kernel: [26986.431945] usb 1-1.2: Product: JBL Pebbles
Sep 16 20:37:02 merkaba kernel: [26986.431964] usb 1-1.2: Manufacturer: Harman Multimedia
Sep 16 20:37:02 merkaba kernel: [26986.431971] usb 1-1.2: SerialNumber: 1.0.0
Sep 16 20:37:02 merkaba kernel: [26986.436951] input: Harman Multimedia JBL Pebbles as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.2/0003:05FC:0231.0002/input/input21
Sep 16 20:37:02 merkaba kernel: [26986.437520] hid-generic 0003:05FC:0231.0002: input,hidraw1: USB HID v1.00 Device [Harman Multimedia JBL Pebbles] on usb-0000:00:1a.0-1.2/input2
Sep 16 20:37:02 merkaba kernel: [26986.528857] usbcore: registered new interface driver snd-usb-audio
^C

Später noch:

Sep 16 20:37:02 merkaba kernel: [26986.436951] input: Harman Multimedia JBL Pebbles as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.2/0003:05FC:0231.0002/input/input21
Sep 16 20:37:02 merkaba kernel: [26986.437520] hid-generic 0003:05FC:0231.0002: input,hidraw1: USB HID v1.00 Device [Harman Multimedia JBL Pebbles] on usb-0000:00:1a.0-1.2/input2
Sep 16 20:37:02 merkaba kernel: [26986.528857] usbcore: registered new interface driver snd-usb-audio

This is volume control via speakers.

merkaba:~> lsusb
Bus 002 Device 003: ID 17ef:1003 Lenovo Integrated Smart Card Reader
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 04f3:0212 Elan Microelectronics Corp. Laser Mouse
Bus 001 Device 004: ID 17ef:100a Lenovo ThinkPad Mini Dock Plus Series 3
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 006: ID 05fc:0231 Harman Multimedia 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

merkaba:~> cat /proc/version
Linux version 3.17.0-rc5-tp520 (martin@merkaba) (gcc version 4.9.1 (Debian 4.9.1-14) ) #5 SMP PREEMPT Mon Sep 15 09:48:43 CEST 2014

martin@merkaba:~> phoronix-test-suite system-info

Phoronix Test Suite v4.8.3
System Information

Hardware:
Processor: Intel Core i5-2520M @ 3.20GHz (4 Cores), Motherboard: LENOVO 42433WG, Chipset: Intel 2nd Generation Core Family DRAM, Memory: 16384MB, Disk: 300GB INTEL SSDSA2CW30 + 480GB Crucial_CT480M50, Graphics: Intel HD 3000 (1300MHz), Audio: Intel 6 /C200, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205

Software:
OS: Debian unstable, Kernel: 3.17.0-rc5-tp520 (x86_64), Desktop: KDE 4.14.0, Display Server: X Server 1.16.0, Display Driver: intel 2.21.15, OpenGL: 3.1 Mesa 10.3.0-rc3, Compiler: GCC 4.9.1, File-System: btrfs, Screen Resolution: 1920x1080

martin@merkaba:~#1> dpkg -l | cut -c1-70 | egrep "vlc|gstreamer|phonon|openal"
ii  gstreamer0.10-alsa:amd64                       0.10.36-1.3        
ii  gstreamer0.10-fluendo-mp3:amd64                0.10.29.debian-1   
ii  gstreamer0.10-gconf:amd64                      0.10.31-3+nmu4     
ii  gstreamer0.10-nice:amd64                       0.1.7-1            
ii  gstreamer0.10-plugins-bad:amd64                0.10.23-7.3        
ii  gstreamer0.10-plugins-base:amd64               0.10.36-1.3        
ii  gstreamer0.10-plugins-good:amd64               0.10.31-3+nmu4     
ii  gstreamer0.10-plugins-ugly:amd64               0.10.19-2.1        
ii  gstreamer0.10-qapt                             1.3.0-2.1          
ii  gstreamer0.10-x:amd64                          0.10.36-1.3        
ii  gstreamer1.0-fluendo-mp3:amd64                 0.10.29.debian-1   
ii  gstreamer1.0-libav:amd64                       1.4.1-1.1          
ii  gstreamer1.0-nice:amd64                        0.1.7-1            
ii  gstreamer1.0-plugins-bad:amd64                 1.4.1-1            
ii  gstreamer1.0-plugins-base:amd64                1.4.1-1            
ii  gstreamer1.0-plugins-base:i386                 1.4.1-1            
ii  gstreamer1.0-plugins-good:amd64                1.4.1-1            
ii  gstreamer1.0-plugins-ugly:amd64                1.4.1-1            
ii  gstreamer1.0-pulseaudio:amd64                  1.4.1-1            
ii  gstreamer1.0-x:amd64                           1.4.1-1            
ii  libghc-openal-dev                              1.4.0.2-3          
ii  libgstreamer-plugins-bad0.10-0:amd64           0.10.23-7.3        
ii  libgstreamer-plugins-bad1.0-0:amd64            1.4.1-1            
ii  libgstreamer-plugins-base0.10-0:amd64          0.10.36-1.3        
ii  libgstreamer-plugins-base0.10-0:i386           0.10.36-1.3        
ii  libgstreamer-plugins-base1.0-0:amd64           1.4.1-1            
ii  libgstreamer-plugins-base1.0-0:i386            1.4.1-1            
ii  libgstreamer0.10-0:amd64                       0.10.36-1.4        
ii  libgstreamer0.10-0:i386                        0.10.36-1.4        
ii  libgstreamer1.0-0:amd64                        1.4.1-1            
ii  libgstreamer1.0-0:i386                         1.4.1-1            
ii  libopenal-data                                 1:1.15.1-5         
ii  libopenal-dev:amd64                            1:1.15.1-5         
ii  libopenal1:amd64                               1:1.15.1-5         
ii  libopenal1:i386                                1:1.15.1-5         
ii  libphonon-dev                                  4:4.8.0-1          
ii  libphonon4:amd64                               4:4.8.0-1          
ii  libphononexperimental4:amd64                   4:4.8.0-1          
ii  libqtgstreamer-0.10-0:amd64                    0.10.2-2.1         
ii  libqtgstreamerui-0.10-0:amd64                  0.10.2-2.1         
ii  libqtgstreamerutils-0.10-0:amd64               0.10.2-2.1         
ii  libreoffice-avmedia-backend-gstreamer          1:4.3.1-2          
ii  libvlc5                                        2.2.0~pre2-4+b1    
rc  libvlccore7                                    2.1.5-1            
ii  libvlccore8                                    2.2.0~pre2-4+b1    
ii  phonon:amd64                                   4:4.8.0-1          
ii  phonon-backend-gstreamer:amd64                 4:4.8.0-1          
ii  phonon-backend-gstreamer-dbg:amd64             4:4.8.0-1          
ii  phonon-backend-vlc:amd64                       0.8.0-1            
ii  phonon-backend-vlc-dbg:amd64                   0.8.0-1            
ii  python-pyside.phonon                           1.2.2-1+b1         
ii  qtgstreamer-plugins:amd64                      0.10.2-2.1         
ii  vlc                                            2.2.0~pre2-4+b1    
ii  vlc-data                                       2.2.0~pre2-4       
ii  vlc-nox                                        2.2.0~pre2-4+b1    
ii  vlc-plugin-notify                              2.2.0~pre2-4+b1    
ii  vlc-plugin-pulse                               2.2.0~pre2-4       
ii  vlc-plugin-samba                               2.2.0~pre2-4+b1
Comment 1 Martin Steigerwald 2014-09-17 08:07:26 UTC
Sorry, Actual Results above are wrong:

GStreamer gives the error message. With VLC it just plays internal laptop audio even when I select JBL Pebbles before pressing "Test" in systemsettings.
Comment 2 Martin Steigerwald 2014-09-17 19:20:20 UTC
Created attachment 88728 [details]
phonon debug while inserting, opening multimedia kcm, pressing "test" and quitting kcm again
Comment 3 Martin Steigerwald 2014-09-17 19:46:47 UTC
This is what works consistently:

martin@merkaba:~> cvlc --alsa-audio-device "default:CARD=Pebbles" file:///usr/share/sounds/KDE-Sys-Log-In.ogg
VLC media player 2.2.0-pre2 Weatherwax (revision 2.2.0-pre1-15-g5178b24)
[0000000000ab6518] dummy interface: using the dummy interface module...

Does it just miss setting the right audio device correctly?
Comment 4 Martin Steigerwald 2014-09-17 19:49:53 UTC
Created attachment 88729 [details]
another play test with full phonon debug

I did this one cause on the first play test a cinch cable was plugged into the aux in port and the JBL Pebbles mute the USB then.

It seems to set the JBL Pebbles:

107 PHONON-VLC Backend connected Phonon::VLC::MediaObject to Phonon::VLC::AudioOutput·
108 PHONON-VLC Setting output soundsystem to "alsa"·
109 PHONON-VLC Setting output device to "default:CARD=Pebbles" ( QVariant(QString, "JBL Pebbles, USB Audio (Default Audio Device)") )·
110 PHONON-VLC Volume changed from 75 to 100·
111 PHONON-VLC Object: Phonon::VLC::MediaObject·
112 PHONON-VLC Object: Phonon::VLC::AudioOutput

Well… I also tried all the other JBL Pebbles it just does not like to use it, while with vlc stand alone just fine!
Comment 5 Martin Steigerwald 2014-09-17 20:28:15 UTC
I got this one:

In systemsettings multimedia kcm always it plays on internal audio.

But with Amarok it plays the first song on internal audio, but when I switch to a different song, it plays all subsequent it and all subsequent song on the JBL Pebbles. This is repeatable when I stop and start Amarok again.

So at least for VLC case seems easy bug in device selection.
Comment 6 Martin Steigerwald 2014-10-17 17:01:57 UTC
Any feedback on this one? Do you need any more information?
Comment 7 Justin Zobel 2021-03-09 22:36:08 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.