Re: snd-usb-audio : issue sending "set sample freq"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



plug out device:
[ 3647.504041] usb 8-2: USB disconnect, address 4


plug it again:
[ 3667.364026] usb 8-2: new full speed USB device using uhci_hcd and
address 5
[ 3667.561637] usb 8-2: configuration #1 chosen from 1 choice
[ 3667.844668] input: Plantronics Plantronics C720 as
/devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.3/input/input12
[ 3667.844799] generic-usb 0003:047F:010A.0008: input,hiddev96,hidraw0:
USB HID v1.11 Device [Plantronics Plantronics C720] on
usb-0000:00:1d.2-2/input3


tail -f /var/log/kern.log (redundant, but just in case):
Apr 24 17:38:40 Lucid-USB kernel: [ 3647.504041] usb 8-2: USB
disconnect, address 4
Apr 24 17:39:00 Lucid-USB kernel: [ 3667.364026] usb 8-2: new full speed
USB device using uhci_hcd and address 5
Apr 24 17:39:00 Lucid-USB kernel: [ 3667.561637] usb 8-2: configuration
#1 chosen from 1 choice
Apr 24 17:39:00 Lucid-USB kernel: [ 3667.844668] input: Plantronics
Plantronics C720 as
/devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.3/input/input12
Apr 24 17:39:00 Lucid-USB kernel: [ 3667.844799] generic-usb
0003:047F:010A.0008: input,hiddev96,hidraw0: USB HID v1.11 Device
[Plantronics Plantronics C720] on usb-0000:00:1d.2-2/input3


/proc/asound/card1/stream0:

Plantronics Plantronics C720 at usb-0000:00:1d.2-2, full speed : USB Audio

Playback:
   Status: Stop
   Interface 1
     Altset 1
     Format: S16_LE
     Channels: 2
     Endpoint: 3 OUT (NONE)
     Rates: 16000, 48000

Capture:
   Status: Stop
   Interface 2
     Altset 1
     Format: S16_LE
     Channels: 1
     Endpoint: 3 IN (NONE)
     Rates: 16000


I don't have the USB analyzer, Plantronics does. I am in the process of
building some patched modules for their environments for them to test.
When playing a 16kHz sample directly on the device (bypassing PulseAudio
with aplay -D hw:1,0), I get only clicks and static. Otherwise things
seems to work OK (when pulse audio remixes the sample...).

When playing anything that is played at 48kHz, it works OK too.

So far, the patch seems almost acceptable to me, but I'd like to
understand why 16kHz can't be played on the device anymore now.

Also, I have had confirmation from Plantronics that they will correct
their firmware(s) to comply with the order of the descriptors as
described in the specs.

Thanks again. I'll keep you posted of other developments, if any.

- Yves

----- Mail original -----
> De: "Daniel Mack" <zonque@xxxxxxxxx> À: "Yves G"
> <alsa-user@xxxxxxxxxxxx> Cc: alsa-user@xxxxxxxxxxxxxxxxxxxxx Envoyé:
> Mercredi 24 Avril 2013 00:04:29 Objet: Re:  [SPAM] Re:
> snd-usb-audio : issue sending "set sample freq"
>
> On 23.04.2013 18:29, Yves G wrote:
>> First test I could make, patching the usbaudio.c source from
>> ubuntu 10.04 with your patch. Now the device can play sounds at
>> 48kHz on the Plantronics C720. However, I can't play sounds at
>> 16kHz anymore, I get clicks instead (exactly like it was previously
>> when trying to play 48kHz sounds with the device set to 16kHz).
>
> With the patch applied, could you please plug out the device, do a
> "sudo dmesg -c", then plug it back in and run "sudo dmesg -c" again,
> and send us the output. Also, I'd need to see the contents of
> /proc/asound/card1/stream0 again, to prove that the patch does the
> right thing.
>
>> I use aplay -D hw:1,0 to run the tests (bypassing pulse etc)
>
> Given that you seem to have access to an USB analyzer, can you look
> at the packets and see if there's anything wrong with them? And
> please also compare the setup sequence again, in comparison to what
> the Windows driver does.
>
>
> Thanks, Daniel
>
>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user





[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux