Skip to content

sound card issue #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Oct 22, 2015 · 10 comments
Closed

sound card issue #171

ghost opened this issue Oct 22, 2015 · 10 comments

Comments

@ghost
Copy link

ghost commented Oct 22, 2015

when running svxlink audio randomly jumps left and right channels when in xmit mode.

I have tested 4 diff usb sound cards and 3 pci-e sound cards and it happened on all of them.

No longer Happening on pci cards just on usb sound cards. svxlink 15.11UPDATE

@sm0svx
Copy link
Owner

sm0svx commented Oct 24, 2015

Now that's something I have never heard of before. Since you have tested so many different sound devices, that's probably not what's wrong. Have your tried it on another computer? On another linux distribution?

I'd recommend asking on the svxlink-devel mailing list and maybe you can find someone having the same problem.

@ghost
Copy link
Author

ghost commented Oct 24, 2015

Have tested on debian jessie. Tested on a odroid c1 plus a raspi and
bbblack. We mainly use arm on this project. As we are working on hardware
that mounts on pi2 and c1 . 3 different cards .

Card 1 echoing and simplex interface
Card 2 a full size board with multi input output
Card 3 board size of c1 and pi but limited in an out puts
On Oct 24, 2015 5:25 AM, "Tobias Blomberg" notifications@github.com wrote:

Now that's something I have never heard of before. Since you have tested
so many different sound devices, that's probably not what's wrong. Have
your tried it on another computer? On another linux distribution?

I'd recommend asking on the svxlink-devel mailing list and maybe you can
find someone having the same problem.


Reply to this email directly or view it on GitHub
#171 (comment).

@sm0svx
Copy link
Owner

sm0svx commented Dec 1, 2015

Have you found the cause for this issue?

@ghost
Copy link
Author

ghost commented Dec 3, 2015

Still Having issue with USB sound cards and audio jumping from left to right channel . using armhf boards. not using onboard sound chips.

SVXLINK 15.11

CMedia Sound Chip

Bus 001 Device 003: ID 1b3f:2007 Generalplus Technology Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1b3f Generalplus Technology Inc.
idProduct 0x2007
bcdDevice 1.00
iManufacturer 1 GeneralPlus
iProduct 2 USB Audio Device
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 253
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
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 100
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 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0201 Microphone
bAssocTerminal 0
bNrChannels 1
wChannelConfig 0x0001
Left Front (L)
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 3
wTerminalType 0x0301 Speaker
bAssocTerminal 0
bSourceID 6
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 9
iTerminal 0
AudioControl Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 5 (SELECTOR_UNIT)
bUnitID 9
bNrInPins 1
baSource( 0) 5
iSelector 0
AudioControl Interface Descriptor:
bLength 10
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 6
bSourceID 8
bControlSize 1
bmaControls( 0) 0x01
Mute Control
bmaControls( 1) 0x02
Volume Control
bmaControls( 2) 0x02
Volume Control
iFeature 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 5
bSourceID 4
bControlSize 1
bmaControls( 0) 0x43
Mute Control
Volume Control
Automatic Gain Control
bmaControls( 1) 0x00
iFeature 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 7
bSourceID 4
bControlSize 1
bmaControls( 0) 0x03
Mute Control
Volume Control
bmaControls( 1) 0x00
iFeature 0
AudioControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 4 (MIXER_UNIT)
bUnitID 8
bNrInPins 2
baSourceID( 0) 1
baSourceID( 1) 7
bNrChannels 2
wChannelConfig 0x0003
Left Front (L)
Right Front (R)
iChannelNames 0
bmControls 0x00
iMixer 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 14
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 2
bSubframeSize 2
bBitResolution 16
bSamFreqType 2 Discrete
tSamFreq[ 0] 44100
tSamFreq[ 1] 48000
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
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 0x01
Sampling Frequency
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
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 2
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 14
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 2 Discrete
tSamFreq[ 0] 44100
tSamFreq[ 1] 48000
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0064 1x 100 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x01
Sampling Frequency
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
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 2.01
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 39
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 32
Device Status: 0x0000
(Bus Powered)

aplay -l
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0

arecord -l
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0

@ghost
Copy link
Author

ghost commented Dec 4, 2015

Seems the issue has to do with the sounds cards and how well svxlink interacts with them . I went through testing 11 diff usb sound cars thus far and found svxlink has issues with 7 of them that the audio was distorted or jumped channels or would crash. so I will be listing what usb sound cards I have tested and what chips worked and did not work. once I finish testing.

@pe1chl
Copy link
Contributor

pe1chl commented Jan 1, 2016

I think it will not be an svxlink issue, as svxlink does nothing more than using soundcards via the Alsa interface.
There may be a bug in the driver you are using, and it may be that it is being stressed by svxlink more than by other programs because svxlink opens and closes sound devices every time something has to be transmitted. There is an enhancement request #96 to remove that behaviour, maybe your sound device behaves better once that is implemented.

@ghost
Copy link
Author

ghost commented Jan 1, 2016

It seems to be based on what chip and usb sound card used. And it seems
that on on arm boards it's more finaky.

Most usb 1.o sound cards have issues. 1.1 usb seem to work ok . I am
building a list of cards wich I have had issues with on the pi2 and odroid
c1 and c1+ boards
On Jan 1, 2016 03:32, "Rob Janssen" notifications@github.com wrote:

I think it will not be an svxlink issue, as svxlink does nothing more than
using soundcards via the Alsa interface.
There may be a bug in the driver you are using, and it may be that it is
being stressed by svxlink more than by other programs because svxlink opens
and closes sound devices every time something has to be transmitted. There
is an enhancement request #96
#96 to remove that behaviour,
maybe your sound device behaves better once that is implemented.


Reply to this email directly or view it on GitHub
#171 (comment).

@sm3sgp
Copy link
Collaborator

sm3sgp commented Jan 25, 2017

Any update on the soundcard testing?

@ghost
Copy link
Author

ghost commented Jan 25, 2017 via email

@ghost
Copy link
Author

ghost commented Oct 22, 2017

we are now using boards with sound on them and dont seem to have the issue

@ghost ghost closed this as completed Oct 22, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants