Pages : 1
#1 Le 27/02/2014, à 13:50
- Bybeu
Problème de sampling rate usb-audio
Bonjour tous
Je suis coincé avec ma carte son usb bloquée à 44100 Hz de sampling rate. J'ai ouvert la boîte et regardé la puce, c'est une Texas Instruments TAS1020B.
Comme je suis paumé pour savoir par où ça bloque entre mon appli qui nécessite du 48000Hz, entre qjackctl, jackd, alsa, ubuntu, je cherche dans tous les sens, mais comme je suis pas mal limité du neurone, je finis toujours par être bloqué au niveau des infos que je peux trouver sur Internet.
J'ai trouvé la datasheet de la puce et elle semble OK pour 48000Hz.
J'ai fini par essayer ma boîte sur le windows de Bonnemine, mais il est vieux alors y'a rien qui marche dessus. Malgré ça il m'a quand-même permis de faire une sorte de dump usb avec le freeware Thesycon USB Descriptor Dumper.
Je vous le livre, brut de coupe:
À la suite, mais là j'ai très honte, je vous mets aussi 2 dumps usb linux, le premier de tous les interfaces (au cas où...), et après, celui de juste l'interface où est accrochée la carte.
Merci si vous pouvez m'apporter un peu d'espoir.
Thesycon dump:
Information for device PANDORA PX5D (VID=0x0944 PID=0x0200):
*** ERROR: Descriptor has errors! ***
Connection Information:
------------------------------
Connection status: Device connected
Device actual bus speed: Full
Device is hub: No
Device adress: 0x0001
Current configuration value: 0x01
Number of open pipes: 2
Device Descriptor:
------------------------------
0x12 bLength
0x01 bDescriptorType
0x0110 bcdUSB
0x00 bDeviceClass
0x00 bDeviceSubClass
0x00 bDeviceProtocol
0x08 bMaxPacketSize0 (8 Bytes)
0x0944 idVendor
0x0200 idProduct
0x0100 bcdDevice
0x01 iManufacturer "KORG INC."
0x02 iProduct "PANDORA PX5D"
0x00 iSerialNumber
0x01 bNumConfigurations
Configuration Descriptor:
------------------------------
0x09 bLength
0x02 bDescriptorType
0x00F8 wTotalLength
0x04 bNumInterfaces
0x01 bConfigurationValue
0x00 iConfiguration
0x80 bmAttributes (Bus-powered Device)
0x7D bMaxPower (250 mA)
Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x00 bInterfaceNumber
0x00 bAlternateSetting
0x00 bNumEndPoints
0x01 bInterfaceClass (Audio Device Class)
0x01 bInterfaceSubClass (Audio Control Interface)
0x00 bInterfaceProtocol
0x00 iInterface
AC Interface Header Descriptor:
------------------------------
0x0A bLength
0x24 bDescriptorType
0x01 bDescriptorSubtype
0x0100 bcdADC
0x0034 wTotalLength
0x02 bInCollection
0x01 baInterfaceNr(1)
0x02 baInterfaceNr(2)
AC Input Terminal Descriptor:
------------------------------
0x0C bLength
0x24 bDescriptorType
0x02 bDescriptorSubtype
0x01 bTerminalID
0x0101 wTerminalType (USB Streaming)
0x00 bAssocTerminal
0x02 bNrChannels
0x0003 wChannelConfig
0x00 iChannelNames
0x00 iTerminal
AC Output Terminal Descriptor:
------------------------------
0x09 bLength
0x24 bDescriptorType
0x03 bDescriptorSubtype
0x02 bTerminalID
0x0302 wTerminalType (Headphones)
0x00 bAssocTerminal
0x01 bSourceID
0x00 iTerminal
AC Input Terminal Descriptor:
------------------------------
0x0C bLength
0x24 bDescriptorType
0x02 bDescriptorSubtype
0x03 bTerminalID
0x0601 wTerminalType (Analog connector)
0x00 bAssocTerminal
0x02 bNrChannels
0x0003 wChannelConfig
0x00 iChannelNames
0x00 iTerminal
AC Output Terminal Descriptor:
------------------------------
0x09 bLength
0x24 bDescriptorType
0x03 bDescriptorSubtype
0x04 bTerminalID
0x0101 wTerminalType (USB Streaming)
0x00 bAssocTerminal
0x03 bSourceID
0x00 iTerminal
Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x01 bInterfaceNumber
0x00 bAlternateSetting
0x00 bNumEndPoints
0x01 bInterfaceClass (Audio Device Class)
0x02 bInterfaceSubClass (Audio Streaming Interface)
0x00 bInterfaceProtocol
0x00 iInterface
Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x01 bInterfaceNumber
0x01 bAlternateSetting
0x01 bNumEndPoints
0x01 bInterfaceClass (Audio Device Class)
0x02 bInterfaceSubClass (Audio Streaming Interface)
0x00 bInterfaceProtocol
0x00 iInterface
AS Interface Descriptor:
------------------------------
0x07 bLength
0x24 bDescriptorType
0x01 bDescriptorSubtype
0x01 bTerminalLink
0x01 bDelay
0x0001 wFormatTag (PCM)
AS Format Type 1 Descriptor:
------------------------------
0x0B bLength
0x24 bDescriptorType
0x02 bDescriptorSubtype
0x01 bFormatType
0x02 bNrChannels
0x02 bSubframeSize
0x10 bBitResolution (16 Bits/sample)
0x01 bSamFreqType (Discrete sampling frequencies)
0x00AC44 tSamFreq(1) (44100 Hz)
Endpoint Descriptor (Audio/MIDI):
------------------------------
0x09 bLength
0x05 bDescriptorType
0x01 bEndpointAddress (OUT Endpoint)
0x09 bmAttributes (Transfer: Isochronous / Synch: Adaptive / Usage: Data)
0x00C0 wMaxPacketSize (192 Bytes)
0x01 bInterval
0x00 bRefresh
0x00 bSynchAddress
AS Isochronous Data Endpoint Descriptor:
------------------------------
0x07 bLength
0x25 bDescriptorType
0x01 bDescriptorSubtype
0x00 bmAttributes
0x01 bLockDelayUnits (Milliseconds)
0x0001 wLockDelay
Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x02 bInterfaceNumber
0x00 bAlternateSetting
0x00 bNumEndPoints
0x01 bInterfaceClass (Audio Device Class)
0x02 bInterfaceSubClass (Audio Streaming Interface)
0x00 bInterfaceProtocol
0x00 iInterface
Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x02 bInterfaceNumber
0x01 bAlternateSetting
0x01 bNumEndPoints
0x01 bInterfaceClass (Audio Device Class)
0x02 bInterfaceSubClass (Audio Streaming Interface)
0x00 bInterfaceProtocol
0x00 iInterface
AS Interface Descriptor:
------------------------------
0x07 bLength
0x24 bDescriptorType
0x01 bDescriptorSubtype
0x04 bTerminalLink
0x01 bDelay
0x0001 wFormatTag (PCM)
AS Format Type 1 Descriptor:
------------------------------
0x0B bLength
0x24 bDescriptorType
0x02 bDescriptorSubtype
0x01 bFormatType
0x02 bNrChannels
0x02 bSubframeSize
0x10 bBitResolution (16 Bits/sample)
0x01 bSamFreqType (Discrete sampling frequencies)
0x00AC44 tSamFreq(1) (44100 Hz)
Endpoint Descriptor (Audio/MIDI):
------------------------------
0x09 bLength
0x05 bDescriptorType
0x82 bEndpointAddress (IN Endpoint)
0x05 bmAttributes (Transfer: Isochronous / Synch: Asynchronous / Usage: Data)
0x00C0 wMaxPacketSize (192 Bytes)
0x01 bInterval
0x00 bRefresh
0x00 bSynchAddress
AS Isochronous Data Endpoint Descriptor:
------------------------------
0x07 bLength
0x25 bDescriptorType
0x01 bDescriptorSubtype
0x00 bmAttributes
0x00 bLockDelayUnits (Undefined)
0x0000 wLockDelay
Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x03 bInterfaceNumber
0x00 bAlternateSetting
0x02 bNumEndPoints
0xFF bInterfaceClass (Vendor specific)
0xFF bInterfaceSubClass
0x00 bInterfaceProtocol
0x00 iInterface
Unknown Descriptor:
------------------------------
0x07 bLength
0x24 bDescriptorType
Hex dump:
0x07 0x24 0x01 0x00 0x01 0x25 0x00
Unknown Descriptor:
------------------------------
0x06 bLength
0x24 bDescriptorType
Hex dump:
0x06 0x24 0x02 0x01 0x10 0x03
Unknown Descriptor:
------------------------------
0x09 bLength
0x24 bDescriptorType
Hex dump:
0x09 0x24 0x03 0x02 0x40 0x01 0x10 0x01 0x00
Unknown Descriptor:
------------------------------
0x09 bLength
0x24 bDescriptorType
Hex dump:
0x09 0x24 0x03 0x01 0x30 0x01 0x20 0x01 0x04
Unknown Descriptor:
------------------------------
0x06 bLength
0x24 bDescriptorType
Hex dump:
0x06 0x24 0x02 0x02 0x20 0x00
Endpoint Descriptor:
------------------------------
*** ERROR: Invalid descriptor length 0x09
Hex dump:
0x09 0x05 0x04 0x02 0x40 0x00 0x00 0x00 0x00
Unknown Descriptor:
------------------------------
0x05 bLength
0x25 bDescriptorType
Hex dump:
0x05 0x25 0x01 0x01 0x10
Endpoint Descriptor:
------------------------------
*** ERROR: Invalid descriptor length 0x09
Hex dump:
0x09 0x05 0x85 0x02 0x40 0x00 0x00 0x00 0x00
Unknown Descriptor:
------------------------------
0x05 bLength
0x25 bDescriptorType
Hex dump:
0x05 0x25 0x01 0x01 0x30
String Descriptor Table
--------------------------------
Index LANGID String
0x00 0x0000 0x0409
0x01 0x0409 "KORG INC."
0x02 0x0409 "PANDORA PX5D"
0x03 0x0409 "PANDORA PX5D _ Ctrl Out"
0x04 0x0409 "PANDORA PX5D _ Ctrl In"
------------------------------
Connection path for device:
Contrôleur hôte universel USB Rev 5 ou ultérieur VIA
Root Hub
PANDORA PX5D (VID=0x0944 PID=0x0200)
Brought to you by TDD v1.82.0, Aug 20 2013, 17:17:20
Dump linux 0u (tous):
J'ai pas réussi à faire interpréter ce code par wireshark qui paraît-il, peut le faire.
ffff880230b42cc0 3723368791 C Ii:3:001:1 0:2048 1 = 02
ffff880230b42cc0 3723368828 S Ii:3:001:1 -115:2048 4 <
ffff8802318af900 3723368884 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802318af900 3723368899 C Ci:3:001:0 0 4 = 00010100
ffff8802318af900 3723368904 S Co:3:001:0 s 23 01 0010 0001 0000 0
ffff8802318af900 3723368908 C Co:3:001:0 0 0
ffff880230343900 3723374573 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff880230343900 3723374588 C Ci:3:001:0 0 4 = 00010000
ffff8802311a2cc0 3723403764 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802311a2cc0 3723403779 C Ci:3:001:0 0 4 = 00010000
ffff88023430d300 3723435756 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff88023430d300 3723435770 C Ci:3:001:0 0 4 = 00010000
ffff8802311a2cc0 3723467854 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802311a2cc0 3723467877 C Ci:3:001:0 0 4 = 00010000
ffff8802311a2cc0 3723499801 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802311a2cc0 3723499818 C Ci:3:001:0 0 4 = 00010000
ffff880230b42cc0 3723499853 C Ii:3:001:1 -2:2048 0
ffff8802304b6480 3727131312 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802304b6480 3727131330 C Ci:3:001:0 0 4 = 01010100
ffff8802304b6480 3727131337 S Co:3:001:0 s 23 01 0010 0001 0000 0
ffff8802304b6480 3727131344 C Co:3:001:0 0 0
ffff8802304b6480 3727131347 S Ci:3:001:0 s a3 00 0000 0002 0004 4 <
ffff8802304b6480 3727131350 C Ci:3:001:0 0 4 = 00010000
ffff8802304b6480 3727131352 S Ci:3:001:0 s a3 00 0000 0003 0004 4 <
ffff8802304b6480 3727131355 C Ci:3:001:0 0 4 = 00010000
ffff8802304b6480 3727131357 S Ci:3:001:0 s a3 00 0000 0004 0004 4 <
ffff8802304b6480 3727131360 C Ci:3:001:0 0 4 = 00010000
ffff880230b42cc0 3727231834 S Ii:3:001:1 -115:2048 4 <
ffff8802311a2f00 3727231913 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802311a2f00 3727231922 C Ci:3:001:0 0 4 = 01010000
ffff8802311a2f00 3727231997 S Co:3:001:0 s 23 03 0004 0001 0000 0
ffff8802311a2f00 3727232003 C Co:3:001:0 0 0
ffff8802304b6480 3727287837 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802304b6480 3727287862 C Ci:3:001:0 0 4 = 03011000
ffff8802311a2f00 3727343839 S Co:3:001:0 s 23 01 0014 0001 0000 0
ffff8802311a2f00 3727343862 C Co:3:001:0 0 0
ffff8802311a2f00 3727451780 S Ci:3:005:0 s 80 06 0100 0000 0008 8 <
ffff8802311a2f00 3727452658 C Ci:3:005:0 0 8 = 12011001 00000008
ffff8802311a2f00 3727452717 S Ci:3:005:0 s 80 06 0100 0000 0012 18 <
ffff8802311a2f00 3727455696 C Ci:3:005:0 0 18 = 12011001 00000008 44090002 00010102 0001
ffff8802311a2f00 3727455785 S Ci:3:005:0 s 80 06 0200 0000 0009 9 <
ffff8802311a2f00 3727457456 C Ci:3:005:0 0 9 = 0902f800 04010080 7d
ffff8802311a2f00 3727457535 S Ci:3:005:0 s 80 06 0200 0000 00f8 248 <
ffff8802311a2f00 3727477729 C Ci:3:005:0 0 248 = 0902f800 04010080 7d090400 00000101 00000a24 01000134 00020102 0c240201
ffff8802311a2f00 3727477822 S Ci:3:005:0 s 80 06 0300 0000 00ff 255 <
ffff8802311a2f00 3727479136 C Ci:3:005:0 0 4 = 04030904
ffff8802311a2f00 3727479215 S Ci:3:005:0 s 80 06 0302 0409 00ff 255 <
ffff8802311a2f00 3727482287 C Ci:3:005:0 0 26 = 1a035000 41004e00 44004f00 52004100 20005000 58003500 4400
ffff8802311a2f00 3727482367 S Ci:3:005:0 s 80 06 0301 0409 00ff 255 <
ffff8802311a2f00 3727485019 C Ci:3:005:0 0 20 = 14034b00 4f005200 47002000 49004e00 43002e00
ffff8802304b6480 3727485547 S Co:3:005:0 s 00 09 0001 0000 0000 0
ffff8802304b6480 3727488284 C Co:3:005:0 0 0
ffff8802311a2000 3727488565 S Ci:3:005:0 s 80 06 0302 0409 00ff 255 <
ffff8802311a2000 3727491805 C Ci:3:005:0 0 26 = 1a035000 41004e00 44004f00 52004100 20005000 58003500 4400
ffff8802311a2000 3727491889 S Ci:3:005:0 s 80 06 0301 0409 00ff 255 <
ffff8802311a2000 3727493503 C Ci:3:005:0 0 20 = 14034b00 4f005200 47002000 49004e00 43002e00
ffff8802304b66c0 3727493779 S Co:3:005:0 s 01 0b 0001 0001 0000 0
ffff8802304b66c0 3727494119 C Co:3:005:0 0 0
ffff8802304b63c0 3727494294 S Co:3:005:0 s 01 0b 0000 0001 0000 0
ffff8802304b63c0 3727494632 C Co:3:005:0 0 0
ffff8802304b6240 3727494882 S Co:3:005:0 s 01 0b 0001 0002 0000 0
ffff8802304b6240 3727495359 C Co:3:005:0 0 0
ffff8802304b6cc0 3727495535 S Co:3:005:0 s 01 0b 0000 0002 0000 0
ffff8802304b6cc0 3727495877 C Co:3:005:0 0 0
Dump linux 3u (juste le port n°3):
ffff8802311e49c0 3756681769 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff8802311e49c0 3756681801 C Ci:3:001:0 0 4 = 01010100
ffff8802311e49c0 3756681806 S Co:3:001:0 s 23 01 0010 0001 0000 0
ffff8802311e49c0 3756681811 C Co:3:001:0 0 0
ffff8802311e49c0 3756681813 S Ci:3:001:0 s a3 00 0000 0002 0004 4 <
ffff8802311e49c0 3756681815 C Ci:3:001:0 0 4 = 00010000
ffff8802311e49c0 3756681817 S Ci:3:001:0 s a3 00 0000 0003 0004 4 <
ffff8802311e49c0 3756681819 C Ci:3:001:0 0 4 = 00010000
ffff8802311e49c0 3756681821 S Ci:3:001:0 s a3 00 0000 0004 0004 4 <
ffff8802311e49c0 3756681823 C Ci:3:001:0 0 4 = 00010000
ffff880230b42cc0 3756783818 S Ii:3:001:1 -115:2048 4 <
ffff88023110a840 3756783863 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff88023110a840 3756783896 C Ci:3:001:0 0 4 = 01010000
ffff8802311e49c0 3756784021 S Co:3:001:0 s 23 03 0004 0001 0000 0
ffff8802311e49c0 3756784039 C Co:3:001:0 0 0
ffff880223674480 3756839817 S Ci:3:001:0 s a3 00 0000 0001 0004 4 <
ffff880223674480 3756839853 C Ci:3:001:0 0 4 = 03011000
ffff8802311e49c0 3756895851 S Co:3:001:0 s 23 01 0014 0001 0000 0
ffff8802311e49c0 3756895876 C Co:3:001:0 0 0
ffff880223674480 3757003794 S Ci:3:006:0 s 80 06 0100 0000 0008 8 <
ffff880223674480 3757004760 C Ci:3:006:0 0 8 = 12011001 00000008
ffff880223674480 3757004830 S Ci:3:006:0 s 80 06 0100 0000 0012 18 <
ffff880223674480 3757007701 C Ci:3:006:0 0 18 = 12011001 00000008 44090002 00010102 0001
ffff880223674480 3757007793 S Ci:3:006:0 s 80 06 0200 0000 0009 9 <
ffff880223674480 3757009461 C Ci:3:006:0 0 9 = 0902f800 04010080 7d
ffff880223674480 3757009539 S Ci:3:006:0 s 80 06 0200 0000 00f8 248 <
ffff880223674480 3757029499 C Ci:3:006:0 0 248 = 0902f800 04010080 7d090400 00000101 00000a24 01000134 00020102 0c240201
ffff880223674480 3757029588 S Ci:3:006:0 s 80 06 0300 0000 00ff 255 <
ffff880223674480 3757030770 C Ci:3:006:0 0 4 = 04030904
ffff880223674480 3757030849 S Ci:3:006:0 s 80 06 0302 0409 00ff 255 <
ffff880223674480 3757034128 C Ci:3:006:0 0 26 = 1a035000 41004e00 44004f00 52004100 20005000 58003500 4400
ffff880223674480 3757034203 S Ci:3:006:0 s 80 06 0301 0409 00ff 255 <
ffff880223674480 3757036916 C Ci:3:006:0 0 20 = 14034b00 4f005200 47002000 49004e00 43002e00
ffff880223674a80 3757037482 S Co:3:006:0 s 00 09 0001 0000 0000 0
ffff880223674a80 3757040220 C Co:3:006:0 0 0
ffff8802236740c0 3757040445 S Ci:3:006:0 s 80 06 0302 0409 00ff 255 <
ffff8802236740c0 3757043730 C Ci:3:006:0 0 26 = 1a035000 41004e00 44004f00 52004100 20005000 58003500 4400
ffff8802236740c0 3757043813 S Ci:3:006:0 s 80 06 0301 0409 00ff 255 <
ffff8802236740c0 3757046712 C Ci:3:006:0 0 20 = 14034b00 4f005200 47002000 49004e00 43002e00
ffff8802311e49c0 3757046985 S Co:3:006:0 s 01 0b 0001 0001 0000 0
ffff8802311e49c0 3757047829 C Co:3:006:0 0 0
ffff8802311e4240 3757047998 S Co:3:006:0 s 01 0b 0000 0001 0000 0
ffff8802311e4240 3757048806 C Co:3:006:0 0 0
ffff8802311e4780 3757049074 S Co:3:006:0 s 01 0b 0001 0002 0000 0
ffff8802311e4780 3757049442 C Co:3:006:0 0 0
ffff8802311e4d80 3757049613 S Co:3:006:0 s 01 0b 0000 0002 0000 0
ffff8802311e4d80 3757049948 C Co:3:006:0 0 0
Dernière modification par Bybeu (Le 28/02/2014, à 01:03)
Hors ligne
#2 Le 28/02/2014, à 00:39
- jacobus77
Re : Problème de sampling rate usb-audio
Il me sembe que par défaut alsa/jackd ressample en 48000Hz donc si tu n'as pas changé les réglages ton appli reçoit du 48000Hz...
Hors ligne
#3 Le 28/02/2014, à 01:16
- Bybeu
Re : Problème de sampling rate usb-audio
Dans les messages de qjackctl je vois bien d'abord "apparent rate 48000" et puis ensuite plus loin, quand c'est la carte du PC ça reste à 48000, l'afficheur de qjackctrl reste à 48000 et l'appli se lance sans problème, mais quand j'ai choisi la carte usb, il y a toujours au début "Apparent rate 48000" mais ça retombe à 44100 (j'ai vu ça avec l'option bavard/verbose, 1ère et dernière lignes), et l'afficheur aussi:
creating alsa driver ... hw:1,0|hw:1,0|256|3|48000|2|2|nomon|swmeter|-|16bit
configuring for 48000Hz, period = 256 frames (5.3 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback
Jack: JackSocketServerChannel::Open
Jack: JackServerSocket::Bind : addr.sun_path /dev/shm/jack_default_1000_0
Jack: JackSocketServerChannel::BuildPoolTable size = 1
Jack: JackEngine::Open
Jack: JackClientSocket::Connect : addr.sun_path /dev/shm/jack_default_1000_0
Jack: JackEngine::ClientInternalOpen: name = freewheel
Jack: JackEngine::AllocateRefNum ref = 1
Jack: JackPosixSemaphore::Allocate name = jack_sem.1000_default_freewheel val = 0
Jack: JackEngine::NotifyAddClient: name = freewheel
Jack: JackDriver::ClientNotify ref = 1 driver = system name = freewheel notify = 0
Jack: JackDriver::ClientNotify ref = 0 driver = freewheel name = system notify = 0
Jack: JackConnectionManager::DirectConnect first: ref1 = 1 ref2 = 1
Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 1 ref2 = 1
Jack: JackDriver::SetupDriverSync driver sem in flush mode
Jack: JackGraphManager::SetBufferSize size = 256
Jack: JackAlsaDriver::Attach fBufferSize 256 fSampleRate 44100
... et l'appli refuse de se lancer, avec un message qui dit que qjack n'est pas à 48000.
Jacobus, tu dis que l'appli reçoit à 48 mais en fait je sais pas, mais cette appli envoie et reçoit en même temps: elle envoie et reçoit simultanément sur Internet (elle envoie sur le net ce que je joue en entrée, un serveur web mélange ça avec les parties des copains et renvoie le tout à chaque client, l'appli en question. À partir de là elle envoie le paquet vers l'entrée usb de la carte son. En fait ça me serait même égal si elle renvoyait vers la puce audio du pc (portable), mais il faudrait que jack sache avoir une carte en entrée et une autre en sortie. J'ai essayé mais ça fait le même résultat dès qu'il y a la carte usb en entrée ou en sortie, l'appli réclame du 48.
C'est possible que la carte soit bonne pour la poubelle ?
Dernière modification par Bybeu (Le 28/02/2014, à 01:28)
Hors ligne
#4 Le 28/02/2014, à 01:39
- jacobus77
Re : Problème de sampling rate usb-audio
C'est possible que la carte soit bonne pour la poubelle ?
Ton pb c'est de faire en sorte que ce qui sort de ta carte usb soit ressampler à 48000... effectivement, c'est peut-être pas possible de façon simple.
Je ne sais pas peut-être qu'un truc comme ça fera l'affaire :
jack_control dps rate 48000
Sinon cherches dans les régages de jack vu que c'est probablement le point qui pèches.
Dernière modification par jacobus77 (Le 28/02/2014, à 01:40)
Hors ligne
#5 Le 01/03/2014, à 12:05
- Bybeu
Re : Problème de sampling rate usb-audio
Jacobus ça veut dire que tu me conseilles d'abandonner qjackctl alors?
J'ai essayé ta commande jack_control
jack_control dps rate 48000
--- driver param set "rate" -> "48000"
mais j'ai un larsen comme quand je selectionne hw:0
J'ai essayé de trouver comment utiliser jack_control dps pour mettre hw:1 mais je comprends pas la syntaxe même en m'aidant avec jack_control dp
jack_control dg
--- get selected driver
alsa
jack_control asd alsa
--- add slave driver
~$ jack_control start
--- start
DBus exception: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
jack_control status
--- status
stopped
Dernière modification par Bybeu (Le 01/03/2014, à 12:11)
Hors ligne
#6 Le 04/03/2014, à 00:16
- Bybeu
Re : Problème de sampling rate usb-audio
Désolé pour l'absence.
J'ai tout désinstallé et reinstallé, rebooté plusieurs fois, mais c'est pas mieux. Après j'ai lu que jack n'a rien à faire avec les cartes audio, c'est alsa qui cause avec les cartes et après jack cause avec alsa.
ça devrait m'éclairer, mais non. Pour la clarté j'ai mis hw:PX5D dans Interface de jack et désactivé le support dbus.
et j'ai créé ~/.asoundrc:
pcm.rate_convert {
type plug
slave {
pcm "hw:1,0"
rate 48000
}
}
Voilà
ps ax | grep jac
9164 ? Ss 0:28 /usr/bin/jackdbus auto
10002 ? S 0:00 /bin/sh /usr/bin/qjackctl
10010 ? SLl 0:01 /usr/lib/qjackctl/qjackctl.real
10016 ? SLsl 0:01 /usr/bin/jackd -P89 -p512 -dalsa -dhw:PX5D -r48000 -p256 -n3 -S
et le log:
23:08:40.110 Baie de brassage désactivée.
23:08:40.114 Réinitialisation des statistiques.
23:08:40.122 Changement des connexions ALSA.
Cannot connect to server socket err = Aucun fichier ou dossier de ce type
Cannot connect to server request channel
jack server is not running or cannot be started
23:08:40.135 Changement du graphique des connexions ALSA.
23:09:05.416 JACK démarre...
23:09:05.417 /usr/bin/jackd -P89 -p512 -dalsa -dhw:PX5D -r48000 -p256 -n3 -S
Cannot connect to server socket err = Aucun fichier ou dossier de ce type
Cannot connect to server request channel
jack server is not running or cannot be started
23:09:05.432 JACK a été démarrer avec le PID=10016.
no message buffer overruns
no message buffer overruns
no message buffer overruns
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2013 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 89
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:PX5D|hw:PX5D|256|3|48000|0|0|nomon|swmeter|-|16bit
configuring for 48000Hz, period = 256 frames (5.3 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback
23:09:07.567 Changement des connexions JACK.
23:09:07.570 Configuration du serveur enregistrée dans « /home/fab/.jackdrc ».
23:09:07.572 Réinitialisation des statistiques.
23:09:07.582 Client activé.
23:09:07.595 Changement du graphique des connexions JACK.
Oooops, je vais me faire remonter les bretelles, j'avais oublié ça depuis le début:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"
lspci | grep [Aa]udio && lsusb | grep [Aa]udio
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 004: ID 0944:0200 KORG, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0c45:644d Microdia
Bus 002 Device 003: ID 8087:07da Intel Corp.
cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k3.8.0-35-generic.
uname -a
Linux xps 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:24:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
et ce gros paquet
sudo lsusb -v | grep -A230 "KORG"
Bus 003 Device 004: ID 0944:0200 KORG, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0944 KORG, Inc.
idProduct 0x0200
bcdDevice 1.00
iManufacturer 1 KORG INC.
iProduct 2 PANDORA PX5D
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 248
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 250mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 0
AudioControl Interface Descriptor:
bLength 10
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 52
bInCollection 2
baInterfaceNr( 0) 1
baInterfaceNr( 1) 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 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0302 Headphones
bAssocTerminal 0
bSourceID 1
iTerminal 0
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 3
wTerminalType 0x0601 Analog Connector
bAssocTerminal 0
bNrChannels 2
wChannelConfig 0x0003
Left Front (L)
Right Front (R)
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 3
iTerminal 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 1
bDelay 1 frames
wFormatTag 1 PCM
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] 44100
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 9
Transfer Type Isochronous
Synch Type Adaptive
Usage Type Data
wMaxPacketSize 0x00c0 1x 192 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 1 Milliseconds
wLockDelay 1 Milliseconds
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 4
bDelay 1 frames
wFormatTag 1 PCM
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] 44100
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x00c0 1x 192 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 07 24 01 00 01 25 00
** UNRECOGNIZED: 06 24 02 01 10 03
** UNRECOGNIZED: 09 24 03 02 40 01 10 01 00
** UNRECOGNIZED: 09 24 03 01 30 01 20 01 04
** UNRECOGNIZED: 06 24 02 02 20 00
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
bRefresh 0
bSynchAddress 0
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
bRefresh 0
bSynchAddress 0
Device Status: 0x0001
Self Powered
Dernière modification par Bybeu (Le 04/03/2014, à 01:01)
Hors ligne
#7 Le 04/03/2014, à 01:49
- jacobus77
Re : Problème de sampling rate usb-audio
Si tu as bien une pandora px5d tu devrais peut-être poster direct sur les forums de linuxmao.org, j'ai regardé vite fait et apparement tu n'es pas le seul à avoir rencontrer le pb.
Sinon tu ne précises pas ta version du kernel et apparement des patchs sont arrivés pour cette carte "relativement" récemment.
Hors ligne
#8 Le 04/03/2014, à 10:42
- Bybeu
Re : Problème de sampling rate usb-audio
Salut Jacobus, tu es un oiseau de nuit toi aussi
LinuxMao, je crois que c'est par là que j'ai commencé. J'y ai appris plein de choses nouvelles, mais comme je suis vraiment novice en linux et en mao, y'avait vraiment pas de mal. Ce que j'y ai aimé, c'est que c'était en français, et la conversation est directe et moins ambiguë que sur les fora anglophones, au moins pour moi.
Ce que j'ai appris, d'abord c'est la différence entre usb-audio et MIDI (une paille !)
Ensuite que la boîte est reconnue en standard pour usb-audio (et midi depuis les kernels 3.0, en fait c'est même par là que j'ai fait mes premiers pas en mao, sans le savoir, grâce au logiciel éditeur pour linux de soulfish).
Mais si mais si, j'ai indiqué cette nuit ma version du kernel, tout en bas de l'extrait de code juste après mon "Oooops".
Et la carte n'est pas si récente que ça, enfin 2005 ça fait presque 10ans quand même... tiens je vais rajouter sur linuxmao la puce de la boîte (j'ai ouvert, attention, c'est assez "chaud").
Et un peu plus d'info pour ici, en espérant que ça inspire quelqu'un:
aplay -l
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: PCH [HDA Intel PCH], périphérique 0: ALC275 Analog [ALC275 Analog]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 3: HDMI 0 [HDMI 0]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
carte 1: PX5D [PANDORA PX5D], périphérique 0: USB Audio [USB Audio]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
D'ailleurs la carte "marche" sous linux car le gars pablo sur linuxmusicians.org m'avait conseillé de tester une commande
mplayer -ao jack test.wav
qui envoie bien le son dans le casque de la boîte, mais je sais pas si c'est suffisant, y'a des erreurs:
mplayer -ao jack test.wav
MPlayer svn r34540 (Ubuntu), built with gcc-4.7 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing test.wav.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 22050 Hz, 1 ch, s16le, 352.8 kbit/100.00% (ratio: 44100->44100)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [jack] 44100Hz 1ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 2.4 (02.3) of 3.0 (03.0) 0.3%
Exiting... (End of file)
J'ai aussi essayé RythmBox via le sélecteur de sorties du son de ubuntu, c'est OK, idem avec la boîte à rythmes interne, je peux l'avoir dans les hp du pc via l'usb... enfin, j'ai cru, c'est pas reproductible, je suis largué entre les interactions des contrôles, maintenant quand je choisis les sorties ça répond plus ou ça rebascule sur hp/micro interne, je sais plus si jack doit être lancé avant ou après, en mode dbus ou pas, le bordel dans ma tête quoi.
Box éteinte elle n'est plus dans aplay -l, mais elle est toujours dans les contrôles de volume ???
Hors ligne
#9 Le 04/03/2014, à 11:18
- Bybeu
Re : Problème de sampling rate usb-audio
Mon problème c'est ça:
Jack: JackAlsaDriver::Attach fBufferSize 128 fSampleRate 44100
fBufferSize suit bien les réglages dans jack
mais
fSampleRate reste collé à 44100, quoique je dise à jack et malgré mon fichier ~/.asoundrc
Hors ligne
#10 Le 04/03/2014, à 12:20
- Bybeu
Re : Problème de sampling rate usb-audio
Apparemment, c'est mort pour cette carte avec linux: http://linuxmusicians.com/viewtopic.php?f=44&t=12209
Ça recommence à puer le double boot.
Bye-bye et merci pour les échanges.
Hors ligne
Pages : 1