LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Need help with a USB sound card (https://www.linuxquestions.org/questions/debian-26/need-help-with-a-usb-sound-card-4175697158/)

notooth 07-01-2021 10:58 PM

Need help with a USB sound card
 
My computer does not have a built-in sound card, so I use a USB sound card instead. When I plugged in the USB sound card, its audio output had a lot of noise and the sound was not smooth. How can I fix this issue? I am running Debian 10, and here is the info on my computer when the USB sound card plugged in:
Code:

$ lsusb
...
Bus 004 Device 002: ID 8086:0808 Intel Corp.
...

# dmesg
...
[78253.687180] usb 4-2: new full-speed USB device number 2 using uhci_hcd
[78253.915267] usb 4-2: New USB device found, idVendor=8086, idProduct=0808, bcdDevice= 1.00
[78253.915270] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[78253.915272] usb 4-2: Product: USB PnP Sound Device
[78253.915273] usb 4-2: Manufacturer: C-Media Electronics Inc.     
[78253.919797] input: C-Media Electronics Inc.      USB PnP Sound Device as /devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.3/0003:8086:0808.0006/input/input11
[78253.979488] hid-generic 0003:8086:0808.0006: input,hidraw5: USB HID v1.00 Device [C-Media Electronics Inc.      USB PnP Sound Device] on usb-0000:00:1d.2-2/input3
[78254.178027] usbcore: registered new interface driver snd-usb-audio
...


aus9 07-02-2021 06:58 AM

edit....well blow me....Intel do claim a C-Media device
https://linux-hardware.org/index.php?id=usb:8086-0808

2) exactly what kind of cable are you plugging in to the output holes?

for my dongle its a 3.55 mm headphone jack or 3.55 mm mic jack

3) what does your mixer levels look like please.

These devices if C-Media are not exactly super high quality and can not be run as max vol IMHO

4) Lets check your sound modules pls

Code:

lsmod | grep snd
for me...I need to have snd_usb_audio and usbcore plus the codecs...but my maker is actually C-Media and uses Realtek codec

I can upload a picture of my dongle if you need it

notooth 07-02-2021 09:20 AM

This is the type of my USB sound card https://images-na.ssl-images-amazon....%2BSL._AC_.jpg
I plugged a 3.55 mm headphone jack to the audio output hole.
This is the picture of my mixer https://www.mediafire.com/view/ns76o9vv3vs8chn
And the info on my computer:
Code:

$ lsmod | grep snd
snd_usb_audio        266240  4
snd_usbmidi_lib        36864  1 snd_usb_audio
snd_hwdep              16384  1 snd_usb_audio
snd_rawmidi            40960  1 snd_usbmidi_lib
snd_seq_device        16384  1 snd_rawmidi
snd_pcm              114688  2 snd_usb_audio
snd_timer              36864  1 snd_pcm
snd                    94208  14 snd_seq_device,snd_hwdep,snd_usb_audio,snd_usbmidi_lib,snd_timer,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
usbcore              299008  6 ehci_pci,snd_usb_audio,usbhid,snd_usbmidi_lib,ehci_hcd,uhci_hcd


jefro 07-02-2021 04:52 PM

"USB 1.1/Full-Speed: 12 Mbps" I kind of wonder about this low speed.

However a line 6 ux2 is supposed to run on that.

Hope there isn't a hub in this.

notooth 07-02-2021 07:51 PM

Quote:

Originally Posted by jefro (Post 6263328)
However a line 6 ux2 is supposed to run on that.

What is a line 6 ux2?

jefro 07-02-2021 08:46 PM

Line 6 is a company.
UX2 is a product.
It is a USB 2 designed product to be used for music.

notooth 07-02-2021 08:57 PM

I just want to make my USB sound card work on my computer. I am not buying a new device.

jefro 07-02-2021 09:59 PM

Do you recall asking what a ux2 is? I replied.

I said the speed of the port may be an issue.

Do you have a usb3 or usb2 port not connected to a hub?

notooth 07-02-2021 10:54 PM

All the USB ports on my computer are USB 2.0, and they are not connect to a hub.

aus9 07-03-2021 12:24 AM

I am not home at moment but you appear to be missing a codec. Was that full lsmod output?

https://cateee.net/lkddb/web-lkddb/S...EC_CMEDIA.html

notooth 07-03-2021 12:47 AM

Here it is:
Code:

$ lsmod
Module                  Size  Used by
snd_usb_audio        266240  3
snd_usbmidi_lib        36864  1 snd_usb_audio
snd_hwdep              16384  1 snd_usb_audio
snd_rawmidi            40960  1 snd_usbmidi_lib
snd_seq_device        16384  1 snd_rawmidi
snd_pcm              114688  2 snd_usb_audio
snd_timer              36864  1 snd_pcm
snd                    94208  12 snd_seq_device,snd_hwdep,snd_usb_audio,snd_usbmidi_lib,snd_timer,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
nft_chain_route_ipv4    16384  1
xt_CHECKSUM            16384  1
nft_chain_nat_ipv4    16384  4
ipt_MASQUERADE        16384  3
nf_nat_ipv4            16384  2 ipt_MASQUERADE,nft_chain_nat_ipv4
tun                    53248  1
bridge                188416  0
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
devlink                77824  0
rfkill                28672  3
nf_log_ipv6            16384  5
ip6t_REJECT            16384  1
ipmi_ssif              32768  0
nf_reject_ipv6        16384  1 ip6t_REJECT
xt_hl                  16384  22
ip6_tables            32768  52
ip6t_rt                16384  3
intel_powerclamp      16384  0
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
ipt_REJECT            16384  3
nf_reject_ipv4        16384  1 ipt_REJECT
kvm_intel            233472  0
xt_LOG                16384  10
kvm                  757760  1 kvm_intel
irqbypass              16384  1 kvm
crct10dif_pclmul      16384  0
crc32_pclmul          16384  0
nft_limit              16384  13
xt_limit              16384  0
ghash_clmulni_intel    16384  0
xt_addrtype            16384  4
intel_cstate          16384  0
pcc_cpufreq            16384  0
xt_tcpudp              16384  24
intel_uncore          135168  0
joydev                24576  0
pcspkr                16384  0
serio_raw              16384  0
xt_conntrack          16384  17
nft_compat            20480  148
iTCO_wdt              16384  0
sg                    36864  0
iTCO_vendor_support    16384  1 iTCO_wdt
hpilo                  20480  0
hpwdt                  16384  0
i7core_edac            28672  0
ipmi_si                65536  0
acpi_power_meter      20480  0
evdev                  28672  12
nft_counter            16384  186
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp            16384  0
nf_nat                36864  2 nf_nat_ftp,nf_nat_ipv4
nf_conntrack_ftp      20480  1 nf_nat_ftp
nf_conntrack          172032  8 xt_conntrack,nf_nat,nf_nat_ftp,ipt_MASQUERADE,nf_conntrack_netbios_ns,nf_nat_ipv4,nf_conntrack_broadcast,nf_conntrack_ftp
ipmi_devintf          20480  0
nf_defrag_ipv6        20480  1 nf_conntrack
ipmi_msghandler        65536  3 ipmi_devintf,ipmi_si,ipmi_ssif
nf_defrag_ipv4        16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
coretemp              16384  0
nf_tables            143360  481 nft_chain_route_ipv4,nft_compat,nft_chain_nat_ipv4,nft_counter,nft_limit
nfnetlink              16384  2 nft_compat,nf_tables
ip_tables              28672  8
x_tables              45056  14 xt_conntrack,nft_compat,xt_LOG,xt_tcpudp,ipt_MASQUERADE,xt_addrtype,xt_CHECKSUM,ip6t_rt,ip6_tables,ipt_REJECT,ip_tables,xt_limit,xt_hl,ip6t_REJECT
autofs4                49152  2
ext4                  745472  2
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
crc32c_generic        16384  0
fscrypto              32768  1 ext4
ecb                    16384  0
sr_mod                28672  0
cdrom                  65536  1 sr_mod
ata_generic            16384  0
hid_generic            16384  0
usbhid                57344  0
hid                  139264  2 usbhid,hid_generic
radeon              1630208  2
sd_mod                61440  5
crc32c_intel          24576  5
i2c_algo_bit          16384  1 radeon
ttm                  126976  1 radeon
drm_kms_helper        208896  1 radeon
ata_piix              36864  0
uhci_hcd              49152  0
libata                270336  2 ata_piix,ata_generic
ehci_pci              16384  0
ehci_hcd              94208  1 ehci_pci
hpsa                  106496  3
drm                  495616  5 drm_kms_helper,radeon,ttm
aesni_intel          200704  0
psmouse              172032  0
usbcore              299008  6 ehci_pci,snd_usb_audio,usbhid,snd_usbmidi_lib,ehci_hcd,uhci_hcd
scsi_transport_sas    45056  1 hpsa
aes_x86_64            20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
scsi_mod              249856  6 scsi_transport_sas,sd_mod,hpsa,libata,sg,sr_mod
lpc_ich                28672  0
bnx2                  94208  0
mfd_core              16384  1 lpc_ich
usb_common            16384  1 usbcore
thermal                20480  0
button                20480  0


aus9 07-03-2021 01:35 AM

sorry I meant full lsmod | grep snd output.

I am home now. I have disabled onboard sound and have the following info, it appears that codec is not needed by me as I have sound thru headphones

https://imgur.com/a/T8H9x4N

I made an error and uploaded the same image for image 2 and 3 so other image is here
https://imgur.com/DSyM3Pl

Code:

$ lsmod | grep snd
snd_seq_midi          20480  0
snd_seq_midi_event    16384  1 snd_seq_midi
snd_usb_audio        286720  0
snd_usbmidi_lib        36864  1 snd_usb_audio
snd_rawmidi            40960  2 snd_seq_midi,snd_usbmidi_lib
mc                    53248  1 snd_usb_audio
snd_hda_codec_hdmi    69632  1
snd_hda_intel          49152  0
snd_intel_dspcfg      28672  1 snd_hda_intel
snd_intel_sdw_acpi    20480  1 snd_intel_dspcfg
snd_hda_codec        139264  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core          90112  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm              114688  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
snd_seq                81920  2 snd_seq_midi,snd_seq_midi_event
snd_seq_device        16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer              40960  2 snd_seq,snd_pcm
snd                    94208  11 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
usbcore              278528  8 xhci_hcd,snd_usb_audio,usbhid,snd_usbmidi_lib,usbkbd,usbmouse,xhci_pci

$ lsusb | grep C-Media
Bus 001 Device 004: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller

Please note the following. I have diff usb ids to you but its still a C-Media dongle.

2) I would like you to look at my pavucontrol images that should be in imgur link that shows 3 images
my dongle
my config
my output

It appears some people have incorrectly allowed pavucontrol to choose something other than analog out. I have 3 options for analog out YMMV

3) I max out the dongle volume and use my media player volume control to adjust volumes. If your media player has no such option then use pavucontrol

hope that helps

aus9 07-03-2021 01:44 AM

extra...comparing snd module deps ignoring my hdmi codec...you appear to be missing
snd_seq,snd_hda_intel,snd_hda_codec

and I am thinking snd_hda_codec as modinfo snd_hda_intel gives pci outputs probably loaded my hdmi device being detected.

Code:

not OP
# find /lib/modules/`uname -r` -name snd-hda*
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-generic.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-realtek.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-hdmi.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-ca0110.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-ca0132.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-si3054.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-analog.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-conexant.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-idt.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-cmedia.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-cirrus.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-codec-via.ko.gz
/lib/modules/5.12.14_1/kernel/sound/pci/hda/snd-hda-intel.ko.gz
/lib/modules/5.12.14_1/kernel/sound/hda/ext/snd-hda-ext-core.ko.gz
/lib/modules/5.12.14_1/kernel/sound/hda/snd-hda-core.ko.gz


notooth 07-03-2021 02:56 AM

Your USB sound card looks exactly like mine, but my system info looks different from yours:
Code:

# lsusb
...
ID 8086:0808 Intel Corp.
...

# find /lib/modules/`uname -r` -name snd-hda*
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-generic.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-cmedia.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-via.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-realtek.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-ca0132.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-conexant.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-idt.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-analog.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-hdmi.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-ca0110.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-si3054.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec-cirrus.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-codec.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/hda/ext/snd-hda-ext-core.ko
/lib/modules/4.19.0-17-amd64/kernel/sound/hda/snd-hda-core.ko


aus9 07-03-2021 03:07 AM

yep I know our USB ids differ.

Any news on how your pavucontrol is configured....is it different from mine?

notooth 07-03-2021 03:35 AM

Here is my configure: https://www.mediafire.com/view/j12q8yksg6ctx2x

fatmac 07-03-2021 05:33 AM

Being Debian, you may need non-free in your sources list, then download your Intel driver.

notooth 07-03-2021 05:44 AM

Quote:

Originally Posted by fatmac (Post 6263447)
Being Debian, you may need non-free in your sources list, then download your Intel driver.

I installed firmware-intel-sound, and the issue is still there.

aus9 07-03-2021 06:06 AM

Ok lets try loading a codec kernel module and re-testing sound?

You may need to reboot....to have a level playing field.....but lets load all kernel module targets at once and see if it makes a diff?

targets assume you use sudo. I suggest you load one module test sound then load another repeat. Notice that I load using an hypen as we already know the kernel modules have a hypen....but when we list modules they return with the understem _

Code:

sudo modprobe snd-hda-codec
# then snd-hda-codec-cmedia ,  snd-hda-codec-realtek snd-hda-codec-generic

You may need to pull the dongle and back in after each modprobe please

notooth 07-03-2021 01:34 PM

Here is what I did:
Run 'sudo modprobe snd-hda-codec', test the sound
Run 'sudo modprobe snd-hda-codec-cmedia', test the sound
Run 'sudo modprobe snd-hda-codec-realtek', test the sound
Run 'sudo modprobe snd-hda-codec-generic', test the sound
Reboot, test the sound, and the issue is still there.

aus9 07-03-2021 10:21 PM

does the issue change using a diff media file type....such as mp3 ogg wav wma flac opus etc

If it does ....it would suggest it is actually a codec issue.

samples here if needed

2) Does the issue change in a diff usb port?

aus9 07-03-2021 10:39 PM

and as I am running out of ideas....back to look at jefro and your usb controllers.

for me
Code:

NOT OP
lsmod | grep usbcore
usbcore              278528  5 xhci_hcd,usbhid,usbkbd,usbmouse,xhci_pci

I think your earlier posted results will show likely to include ehci and uhci
but if you look at this link...
https://wiki.gentoo.org/wiki/USB/Guide

and run
Code:

lspci -v | grep USB
You may find....you have only one UHCI controller as per the gentoo link? And that is one you would need to use so swap out any usb kb or mouse
AFAIK xhci is for usb 3 uhci for 2 and the other one for usb 1 series

notooth 07-03-2021 10:53 PM

I have tried the sound with different file extensions: mp3, ogg, wav, wma; different media players: Dragon player, VLC player and different USB ports, the issue did not change.

Here is the info on my computer:
Code:

$ lsmod | grep usbcore
usbcore              299008  6 ehci_pci,snd_usb_audio,usbhid,snd_usbmidi_lib,ehci_hcd,uhci_hcd
usb_common            16384  1 usbcore

$ lspci -v | grep USB
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company 82801JI (ICH10 Family) USB UHCI Controller
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company 82801JI (ICH10 Family) USB UHCI Controller
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company 82801JI (ICH10 Family) USB UHCI Controller
00:1d.3 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company 82801JI (ICH10 Family) USB UHCI Controller
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 (prog-if 20 [EHCI])
        Subsystem: Hewlett-Packard Company 82801JI (ICH10 Family) USB2 EHCI Controller
02:00.4 USB controller: Hewlett-Packard Company Integrated Lights-Out Standard Virtual USB Controller (rev 01) (prog-if 00 [UHCI])


aus9 07-04-2021 12:09 AM

This confirms Jefro's thoughts on usb speed.

I will repeat my earlier remarks with ref link
https://www.programmersought.com/article/1457246744/
UHCI is usb 1 series and all but one of yours fits that speed.
EHCI is usb 2 series

You have only one controller that is usb2. That should be colour coded, some are black inside the port or white. It does not matter what the colour, find it and use that port please. I do not remember what usb 1 colour is ....but you can tell by looking eh?

notooth 07-04-2021 09:43 PM

According to my system specifications, all the USB ports are 2.0. I contacted the vendor, and they said that they "provide both standard USB 2.0 support and legacy USB 2.0 support. Standard support is provided by the OS through the appropriate USB device drivers..."
Maybe Debian 10 does not provide an appropriate USB device driver?

jefro 07-04-2021 10:22 PM

Might could try the command top to see loading?

notooth 07-04-2021 10:35 PM

Quote:

Originally Posted by jefro (Post 6263859)
Might could try the command top to see loading?

Yes, I tried the command top and saw it loading.

aus9 07-05-2021 12:27 AM

@jefro and OP

Due to my fixation on codec, the OP has IMHO eliminated by loading the main codecs manually....no change in output
which led me to ask about what usb controllers he has after running out of ideas and reviewing Jefro's comments

The OP reply 25 claims he has no usb 1 controllers by claiming they are all usb 2.

At my reply 24 the link claims...
Quote:

UHCI (Universal Host Controller Interface) is an interface standard for USB 1.0 and 1.1 that is dominated by Intel and is not compatible with OHC
at OP reply 23 OP says he has....snip...
Quote:

ICH10 Family) USB UHCI Controller
And we know ICH is Intel

Either that usb link is wrong....or correct.

Do you think it might be wise for OP to try out another distro? I am thinking....he has ONE controller usb2 but OP has not reported seeing any colour changes inside the usb ports

notooth 07-05-2021 12:51 AM

My system is HP DL380 G7. I see 4 USB ports with no color change.

aus9 07-05-2021 02:18 AM

right well my link may not be your exact model but
Quote:

USB 2.0 Ports 5 total: 2 front, 2 back, 1 internal
https://www.dectrader.com/pdf/quicks.../13595_na.html
claims all usb 2 as prev stated.....but that is actually bad....for me, because it means I can not get you to try a usb 2 port when all of them are.

there may still be some benefit in trying out a live cd/dvd of another linux distro to see if its software related.

I will wait to see if Jefro has time to respond.

In the meantime, maybe upload your full /var/log/dmesg somewhere. Maybe we can spot some "missing firmware" roughly suggested by fatmac

aus9 07-05-2021 02:34 AM

and I can see you may be viewing this post....is this the same hw?
https://www.linuxquestions.org/quest...9/#post6242950

because there you have no UHCI but XHCI usb devices


All times are GMT -5. The time now is 03:55 AM.