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 09: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 05: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 08: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 03: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 06: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 07: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 07: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 08: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 09:54 PM

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

aus9 07-02-2021 11:24 PM

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-02-2021 11:47 PM

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 12: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 12: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 01: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 02:07 AM

yep I know our USB ids differ.

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


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