PDA

View Full Version : [ArchLinux] - WebCam trust. No audio


CielitoLindux
25-03-2013, 17:04
Salve a tutti.
Ho acquistato una webcam trust ma non c'è verso di farla funzionare con skype. Il video funziona ma l'audio no.
Alcune info:
[ 1337.749960] usb 5-7: new high-speed USB device number 3 using ehci-pci
[ 1337.947535] media: Linux media interface: v0.10
[ 1337.957362] Linux video capture interface: v2.00
[ 1337.978879] uvcvideo: Found UVC 1.00 device Trust Webcam (0c45:62c0)
[ 1337.987139] input: Trust Webcam as /devices/pci0000:00/0000:00:1d.7/usb5/5-7/5-7:1.0/input/input6
[ 1337.987862] usbcore: registered new interface driver uvcvideo
[ 1337.987869] USB Video Class driver (1.1.1)
[giacomo@Pc-Arch ~]$ uname -r
3.8.4-1-ARCH
[giacomo@Pc-Arch ~]$ lsusb
Bus 004 Device 002: ID 0c45:7403 Microdia Foot Switch
Bus 005 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[giacomo@Pc-Arch ~]$

Qualcuno saprebbe illuminarmi?

sacarde
26-03-2013, 20:58
senza skype il microfono e le casse funzionano?

CielitoLindux
27-03-2013, 18:44
In effetti non funziona neanche con cheese. Però con windows tutto l'hardware è riconosciuto e funzionante.

sacarde
27-03-2013, 19:12
che scheda audio hai?



p.s.
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture

CielitoLindux
28-03-2013, 20:15
che scheda audio hai?

Pc-Arch ~]$ lspci|grep audio
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
[giacomo@Pc-Arch ~]$

sacarde
28-03-2013, 20:40
- vedi che modulo/driver usa? snd-hda-intel ?
altrimenti caricalo


- da "alsamixer" dovresti vedere il chip




p.s.
per testare l'audio:

aplay /usr/share/sounds/alsa/*

CielitoLindux
30-03-2013, 11:01
[giacomo@Pc-Arch ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ICH6 [Intel ICH6], device 0: Intel ICH [Intel ICH6]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ICH6 [Intel ICH6], device 4: Intel ICH - IEC958 [Intel ICH6 - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
[giacomo@Pc-Arch ~]$ lsmod|gre '^snd'| column -t
bash: gre: command not found
[giacomo@Pc-Arch ~]$ lsmod|grep '^snd'| column -t
snd_intel8x0 23789 1
snd_ac97_codec 90104 1 snd_intel8x0
snd_pcm 64017 2 snd_ac97_codec,snd_intel8x0
snd_page_alloc 6038 2 snd_intel8x0,snd_pcm
snd_timer 14902 1 snd_pcm
snd 45097 6 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
[giacomo@Pc-Arch ~]$

Non ne esco...

sacarde
30-03-2013, 12:50
quindi non va l'audio in generale ?

qui
https://wiki.archlinux.org/index.php/ALSA

ci sono suggerimenti ai problemi della tua scheda:

- No Sound with Onboard Intel Sound Card
- No Headphone Sound with Onboard Intel Sound Card

CielitoLindux
30-03-2013, 16:01
Cosa intendi per audio? Le casse funzionano. Solo il microfono della web non funziona.

CielitoLindux
30-03-2013, 16:09
Ad esempio è normale che io non abbia un sound.conf? :mbe:

CielitoLindux
30-03-2013, 16:11
Questo test arecord -d 5 test-mic.wav
aplay test-mic.wav
Non produce suono.

sacarde
30-03-2013, 19:54
a me tempo fa e' capitato


http://www.archlinux.it/forum/viewtopic.php?f=4&t=12696




p.s.
con systemd non so come riavviare alsa

CielitoLindux
30-03-2013, 20:38
Ho creato il file e inserito quello che ti avevano consigliato sul forum di arch ma a me non ha funzionato. Forse dovrei modificarlo ma non saprei come. Le mie conoscenze sono ancora molto limitate.
PS: avevo scritto anche io sul forum di arch ma nessuna risposta. :/

sacarde
31-03-2013, 08:17
hai fatto anche: modprobe snd-aloop
?


e poi:
cat /proc/asound/cards

rilevi il numero della scheda


e poi:
alsamixer -c <numneroscheda>

e controlli volumi mic

CielitoLindux
31-03-2013, 09:41
hai fatto anche: modprobe snd-aloop
?


e poi:
cat /proc/asound/cards

rilevi il numero della scheda


e poi:
alsamixer -c <numneroscheda>

e controlli volumi mic
Avevo riavviato pensando che caricasse il modulo al riavvio. Cmq ora ho dato il mod probe.
Mi da due schede. La 0 e la 1. La 0 ha il mic a 81 la 1 mi da This sound device does not have any controls.

sacarde
31-03-2013, 12:38
si si la loopback non ha valori

ma nella mia "0" ho: front-mic e rear-mic



p.s.
non mi funziona piu neanche a me !

CielitoLindux
31-03-2013, 14:47
Io ho solo Mic e Mic Boss. Il primo è a 81 e il secondo non si può modificare. E' su MM.

sacarde
31-03-2013, 19:49
con questo sono riuscito a registrare dal microfono


http://linuxpersonalnotes.blogspot.it/2011/09/cattura-audio-con-arecord.html

CielitoLindux
01-04-2013, 16:21
Il mio output è un po' diverso [giacomo@Pc-Arch ~]$ amixer contents
numid=4,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=3,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1
: values=32050,32050
numid=2,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=1,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1
: values=65536,65536
[giacomo@Pc-Arch ~]$

Ho provato anche questo amixer sset Capture cap Ma niente uguale.

sacarde
01-04-2013, 16:46
mi sarei aspettato:

un "Capture source" o "Capture control"

io per esempio ho un: "Input Source"



p.s.
sono uguali :

amixer -c 0 contents
e
amixer -c 1 contents

CielitoLindux
03-04-2013, 18:19
mi sarei aspettato:

un "Capture source" o "Capture control"

io per esempio ho un: "Input Source"



p.s.
sono uguali :

amixer -c 0 contents
e
amixer -c 1 contents
Il secondo non esiste
[giacomo@Pc-Arch ~]$ amixer -c 0 contents
numid=11,iface=MIXER,name='Master Mono Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=12,iface=MIXER,name='Master Mono Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=0
| dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=1,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=2,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=27,27
| dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=48,iface=MIXER,name='Headphone Jack Sense'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=9,iface=MIXER,name='Headphone Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=10,iface=MIXER,name='Headphone Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=26,iface=MIXER,name='PCM Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=27,iface=MIXER,name='PCM Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=23,23
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=46,iface=MIXER,name='Surround Jack Mode'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Shared'
; Item #1 'Independent'
: values=0
numid=7,iface=MIXER,name='Surround Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=8,iface=MIXER,name='Surround Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=3,iface=MIXER,name='Center Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=4,iface=MIXER,name='Center Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=31
| dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=5,iface=MIXER,name='LFE Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=6,iface=MIXER,name='LFE Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=31
| dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=49,iface=MIXER,name='Line Jack Sense'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=20,iface=MIXER,name='Line Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=21,iface=MIXER,name='Line Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=29,29
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=22,iface=MIXER,name='CD Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=23,iface=MIXER,name='CD Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=24,24
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=19,iface=MIXER,name='Mic Boost (+20dB)'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=32,iface=MIXER,name='Mic Select'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Mic1'
; Item #1 'Mic2'
: values=0
numid=17,iface=MIXER,name='Mic Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=18,iface=MIXER,name='Mic Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=28,28
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=15,iface=MIXER,name='Phone Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=16,iface=MIXER,name='Phone Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=31
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=24,iface=MIXER,name='Aux Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=25,iface=MIXER,name='Aux Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=0,0
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=31,iface=MIXER,name='Mono Output Select'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Mix'
; Item #1 'Mic'
: values=0
numid=28,iface=MIXER,name='Capture Source'
; type=ENUMERATED,access=rw------,values=2,items=8
; Item #0 'Mic'
; Item #1 'CD'
; Item #2 'Video'
; Item #3 'Aux'
; Item #4 'Line'
; Item #5 'Mix'
; Item #6 'Mix Mono'
; Item #7 'Phone'
: values=4,4
numid=29,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=30,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=15,step=0
: values=15,15
| dBscale-min=0.00dB,step=1.50dB,mute=0
numid=33,iface=MIXER,name='IEC958 Playback Con Mask'
; type=IEC958,access=r-------,values=1
: values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x0f]
numid=34,iface=MIXER,name='IEC958 Playback Pro Mask'
; type=IEC958,access=r-------,values=1
: values=[AES0=0xcf AES1=0x00 AES2=0x00 AES3=0x00]
numid=37,iface=MIXER,name='IEC958 Playback AC97-SPSA'
; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0
: values=3
numid=35,iface=MIXER,name='IEC958 Playback Default'
; type=IEC958,access=rw------,values=1
: values=[AES0=0x00 AES1=0x82 AES2=0x00 AES3=0x00]
numid=38,iface=MIXER,name='IEC958 Playback Source'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'AC-Link'
; Item #1 'A/D Converter'
: values=0
numid=36,iface=MIXER,name='IEC958 Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=13,iface=MIXER,name='Beep Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=14,iface=MIXER,name='Beep Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=15,step=0
: values=0
| dBscale-min=-45.00dB,step=3.00dB,mute=0
numid=47,iface=MIXER,name='Channel Mode'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 '2ch'
; Item #1 '4ch'
; Item #2 '6ch'
: values=0
numid=44,iface=MIXER,name='Downmix'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'Off'
; Item #1 '6 -> 4'
; Item #2 '6 -> 2'
: values=1
numid=40,iface=MIXER,name='Exchange Center/LFE'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=41,iface=MIXER,name='Exchange Front/Surround'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=42,iface=MIXER,name='Exchange Mic/Line In'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=50,iface=MIXER,name='External Amplifier'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=43,iface=MIXER,name='Spread Front to Surround and Center/LFE'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=39,iface=MIXER,name='Stereo Mic'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=45,iface=MIXER,name='V_REFOUT'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'High-Z'
; Item #1 '3.7 V'
; Item #2 '2.25 V'
; Item #3 '0 V'
: values=0
[giacomo@Pc-Arch ~]$ amixer -c 1 contents
Invalid card number.
Usage: amixer <options> [command]

Available options:
-h,--help this help
-c,--card N select the card
-D,--device N select the device, default 'default'
-d,--debug debug mode
-n,--nocheck do not perform range checking
-v,--version print version of this program
-q,--quiet be quiet
-i,--inactive show also inactive controls
-a,--abstract L select abstraction level (none or basic)
-s,--stdin Read and execute commands from stdin sequentially
-R,--raw-volume Use the raw value (default)
-M,--mapped-volume Use the mapped volume

Available commands:
scontrols show all mixer simple controls
scontents show contents of all mixer simple controls (default command)
sset sID P set contents for one mixer simple control
sget sID get contents for one mixer simple control
controls show all controls for given card
contents show contents of all controls for given card
cset cID P set control contents for one control
cget cID get control contents for one control
[giacomo@Pc-Arch ~]$

sacarde
03-04-2013, 19:16
provato con?:


amixer cset numid=28,iface=MIXER,name='Capture Source' 4



e poi:

arecord -f cd -t wav miofileaudio.wav

CielitoLindux
04-04-2013, 12:48
[giacomo@Pc-Arch ~]$ amixer cset numid=28,iface=MIXER,name='Capture Source' 4
amixer: Cannot find the given element from control default

sacarde
04-04-2013, 15:53
bo....

ci hai provato altre distro?

CielitoLindux
04-04-2013, 16:01
Con questa web cam non ancora. Ci proverò debian. Ma già avevo provato con altre 2 webcam e con Fedora olter che con Arch ma stessi risultati. Niente audio. Eppure con Windows tutto funziona regolarmente.

sacarde
05-04-2013, 07:46
mi dici marca e modello della webcam?

CielitoLindux
06-04-2013, 08:51
E' questa (http://www.trust.com/products/product.aspx?artnr=17028) senza cuffie però. Non ci sono driver sul sito.

CielitoLindux
06-04-2013, 09:00
Rettifico. E' questa (http://www.trust.com/products/product.aspx?artnr=17003). In prtica la stessa ma con microfono incorporato.

sacarde
06-04-2013, 09:55
.

CielitoLindux
08-05-2013, 14:07
Riesumo questo post per una domanda. Piochè penso che il problema sia la scheda audio integrata avrei trovato questa (http://www.ebay.it/itm/SCHEDA-AUDIO-5-1-3D-USB-ESTERNA-3D-SOUND-NOTEBOOK-HIFI-/130860695107?pt=Schede_audio_per_PC_e_Server&hash=item1e77e7be43). Qualcuno sa se sono supportate nativamente da Linux? O se cmq in qualche modo si possono far funzionare indipendentemente dalla scheda audio interna nn funzionante?
Grazie.

CielitoLindux
30-05-2013, 15:36
Per la cronaca: l'aggeggio funziona.