Problemi audio (risolvibili) ma microfono non funziona più aiuto!!

Premesso che ho letto quasi tutto su google passando per pavucontrol avevo (fino a ieri) tamponato regolando i canali del mic e abilitando l’uscita spk.

questa mattina audio ok (sempre attraverso la modifica a mano con pavucontrol) ma il mic non viene rilevato dalle applicazioni.

da alsamixer ho notato che il livello del mic non è visualizzato e la scritta rossa (ma non è in stato off)

Forniscici qualche informazione in più sull’hardware e configurazione software…

# lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02) 00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 02) 00:1c.3 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 4 (rev 02) 00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02) 00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02) 00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02) 00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02) 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 02) 00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02) 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02) 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller

# lsmod 
Module                  Size  Used by
fuse                   80309  3 
ccm                    17496  1 
tun                    26513  4 
ip6t_rpfilter          12490  1 
ip6t_REJECT            12782  2 
xt_conntrack           12664  15 
ebtable_nat            12695  0 
ebtable_broute         12635  0 
bridge                 94695  1 ebtable_broute
stp                    12756  1 bridge
llc                    13645  2 stp,bridge
ebtable_filter         12715  0 
ebtables               21315  3 ebtable_broute,ebtable_nat,ebtable_filter
ip6table_nat           12871  1 
nf_conntrack_ipv6      14186  9 
nf_defrag_ipv6         26115  1 nf_conntrack_ipv6
nf_nat_ipv6            13053  1 ip6table_nat
ip6table_mangle        12620  1 
ip6table_security      12630  1 
ip6table_raw           12603  1 
ip6table_filter        12711  1 
ip6_tables             17634  5 ip6table_filter,ip6table_mangle,ip6table_security,ip6table_nat,ip6table_raw
iptable_nat            12867  1 
nf_conntrack_ipv4      14192  8 
nf_defrag_ipv4         12601  1 nf_conntrack_ipv4
nf_nat_ipv4            13039  1 iptable_nat
nf_nat                 20113  4 nf_nat_ipv4,nf_nat_ipv6,ip6table_nat,iptable_nat
nf_conntrack           82581  8 nf_nat,nf_nat_ipv4,nf_nat_ipv6,xt_conntrack,ip6table_nat,iptable_nat,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_mangle         12615  1 
iptable_security       12625  1 
iptable_raw            12598  1 
bnep                   18895  2 
snd_hda_codec_analog    14537  1 
snd_hda_codec_generic    57111  1 snd_hda_codec_analog
snd_hda_intel          42689  8 
snd_hda_codec         111410  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_analog
coretemp               13227  0 
ppdev                  17363  0 
iTCO_wdt               13256  0 
iTCO_vendor_support    13243  1 iTCO_wdt
kvm                   389727  0 
microcode              19262  0 
joydev                 17060  0 
serio_raw              13189  0 
snd_hwdep              13232  1 snd_hda_codec
arc4                   12536  2 
i2c_i801               17783  0 
iwl3945                98585  0 
iwlegacy              110164  1 iwl3945
parport_pc             27416  0 
lpc_ich                16864  0 
parport                39185  2 ppdev,parport_pc
mac80211              536278  2 iwl3945,iwlegacy
snd_seq                54679  0 
cfg80211              434893  3 iwl3945,iwlegacy,mac80211
btusb                  27554  0 
bluetooth             355063  23 bnep,btusb
snd_seq_device         13824  1 snd_seq
nsc_ircc               22475  0 
6lowpan_iphc           18167  1 bluetooth
thinkpad_acpi          71570  4 
snd_pcm                83092  2 snd_hda_codec,snd_hda_intel
rfkill                 20934  5 cfg80211,thinkpad_acpi,bluetooth
irda                  104355  1 nsc_ircc
snd_timer              23750  2 snd_pcm,snd_seq
snd                    59277  34 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device,snd_hda_codec_analog
tpm_tis                18039  0 
soundcore              14123  1 snd
crc_ccitt              12549  1 irda
tpm                    29852  1 tpm_tis
acpi_cpufreq           18801  1 
nfsd                  246795  13 
auth_rpcgss            48490  1 nfsd
nfs_acl                12653  1 nfsd
lockd                  78065  1 nfsd
binfmt_misc            13111  1 
sunrpc                237582  21 nfsd,auth_rpcgss,lockd,nfs_acl
ata_generic            12790  0 
i915                  709914  2 
pata_acpi              12886  0 
yenta_socket           36105  0 
e1000e                227032  0 
i2c_algo_bit           13065  1 i915
drm_kms_helper         45081  1 i915
ptp                    18269  1 e1000e
drm                   231021  3 i915,drm_kms_helper
pps_core               18587  1 ptp
i2c_core               37317  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
video                  18720  1 i915
usb_storage            47202  0 

/var/lib/alsa/asound.state

state.Intel {
	control.1 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 61
		value.1 61
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 63'
			dbmin -9150
			dbmax 300
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.2 {
		iface MIXER
		name 'PCM Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 63'
			dbmin -9150
			dbmax 300
			dbvalue.0 -9150
			dbvalue.1 -9150
		}
	}
	control.4 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Speaker Playback Volume'
		value 62
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 63'
			dbmin -9150
			dbmax 300
			dbvalue.0 150
		}
	}
	control.6 {
		iface MIXER
		name 'Speaker Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.7 {
		iface MIXER
		name 'Loopback Mixing'
		value Disabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.8 {
		iface MIXER
		name 'Rear Mic Playback Volume'
		value.0 27
		value.1 27
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 600
			dbvalue.1 600
		}
	}
	control.9 {
		iface MIXER
		name 'Rear Mic Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.10 {
		iface MIXER
		name 'Front Mic Playback Volume'
		value.0 31
		value.1 31
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 1200
			dbvalue.1 1200
		}
	}
	control.11 {
		iface MIXER
		name 'Front Mic Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.12 {
		iface MIXER
		name 'Line Playback Volume'
		value.0 19
		value.1 19
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -600
			dbvalue.1 -600
		}
	}
	control.13 {
		iface MIXER
		name 'Line Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.14 {
		iface MIXER
		name 'CD Playback Volume'
		value.0 23
		value.1 23
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.15 {
		iface MIXER
		name 'CD Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.16 {
		iface MIXER
		name 'Aux Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.17 {
		iface MIXER
		name 'Aux Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.18 {
		iface MIXER
		name 'Auto-Mute Mode'
		value 'Line Out+Speaker'
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 'Speaker Only'
			item.2 'Line Out+Speaker'
		}
	}
	control.19 {
		iface MIXER
		name 'Capture Source'
		value 'Front Mic'
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 'Rear Mic'
			item.1 'Front Mic'
			item.2 Line
			item.3 CD
			item.4 Aux
			item.5 'Stereo Mix'
		}
	}
	control.20 {
		iface MIXER
		name 'Capture Volume'
		value.0 15
		value.1 15
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 15'
			dbmin 0
			dbmax 2250
			dbvalue.0 2250
			dbvalue.1 2250
		}
	}
	control.21 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.22 {
		iface MIXER
		name 'Rear Mic Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.23 {
		iface MIXER
		name 'Front Mic Boost Volume'
		value.0 3
		value.1 3
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3000
			dbvalue.0 3000
			dbvalue.1 3000
		}
	}
	control.24 {
		iface MIXER
		name 'Line Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.25 {
		iface MIXER
		name 'IEC958 Playback Source'
		value PCM
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 PCM
			item.1 ADC
		}
	}
	control.26 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.27 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.28 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.29 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.30 {
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.31 {
		iface MIXER
		name 'Master Playback Volume'
		value 63
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 63'
			dbmin -9450
			dbmax 0
			dbvalue.0 0
		}
	}
	control.32 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.33 {
		iface CARD
		name 'Rear Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.34 {
		iface CARD
		name 'Front Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.35 {
		iface CARD
		name 'Line Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.36 {
		iface CARD
		name 'CD Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.37 {
		iface CARD
		name 'Aux Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.38 {
		iface CARD
		name 'Line Out Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.39 {
		iface CARD
		name 'Front Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.40 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.41 {
		iface CARD
		name 'SPDIF Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.42 {
		iface MIXER
		name 'Beep Playback Volume'
		value 0
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 15'
			dbmin -4500
			dbmax 0
			dbvalue.0 -4500
		}
	}
	control.43 {
		iface MIXER
		name 'Beep Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.44 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.45 {
		iface PCM
		name 'Capture Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.46 {
		iface PCM
		device 1
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.47 {
		iface MIXER
		name 'Digital Capture Volume'
		value.0 60
		value.1 60
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 120'
			tlv '0000000100000008fffff44800000032'
			dbmin -3000
			dbmax 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
}
state.ThinkPadEC {
	control.1 {
		iface MIXER
		name 'Console Playback Volume'
		value 14
		comment {
			access read
			type INTEGER
			count 1
			range '0 - 14'
		}
	}
	control.2 {
		iface MIXER
		name 'Console Playback Switch'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
}

ho fatto una prova seguendo questo tutorial http://linuxconfig.org/how-to-test-microphone-with-audio-linux-sound-architecture-alsa
e funziona : :lol:

ora come mail le applicazioni no si agganciano alla corretta fonte input ?

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1981 Analog [AD1981 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xee240000 irq 46
29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control
                      ThinkPad Console Audio Control at EC reg 0x30, fw 79HT43WW-1.02

Forse (ma è una risposta azzardata) al device microfono è cambiato il nome, se prima era “mic” ed ora “mic01” quindi le applicazioni, configurate per il device “mic”, non lo rilevano più.

Apri pavucontrol e vai nella scheda ingressi, vedi la barra del microfono che si muove se parli o schiocchi le dita di fronte al microfono?

Si il microfono è attivo se lo scelgo dall’elenco Front Microphone (unplugged) (quello selezionato di default Ingresso Analogico non rileva la voce)
Poi nella premessa ho detto che ieri sera (sempre con fedora 20 ) lo utilizzavo !!! sempre cambiando e impostando dall’elenco Front Microphone (unplugged).

Scusa ma non ho visto questa sottigliezza :lol: dove hai letto che ora è nominato mic01 ?

Era un esempio…

Mi sa che devo giocare al superenalotto oggi :slight_smile: se i miei azzardi sono così faccio un 6+1 in pieno!

ah ok :slight_smile:

Mi sa che devo giocare al superenalotto oggi :slight_smile: se i miei azzardi sono così faccio un 6+1 in pieno![/quote]

peccato che non hai indovinato peccato :frowning:

attendo suggerimenti

da alsamixer

F6 lista sound card

─ Sound Card ───────────┐ │ │ │▒▒│ →
│ │▒▒│ │ │ │- (default) │ │ │ │▒▒│ →
│ │▒▒│ │ │ │0 HDA Intel │ │ │ │▒▒│ →
│ │▒▒│ │ │ │29 ThinkPad Console Audio Control│ │ │ │▒▒│ →
│ │▒▒│ │ │ │ enter device name…

ora il sistema sceglie PulseAudio di base

ma la scheda corretta è la 0 . HDA Intel l’unica che funziona!!!

perché se modifico comunque in PulseAudio l’interfaccia di input non viene presa come impostazione :wall:

Vediamo magari anche il buon vecchio

$ alsa-info --upload

(posta solo il link risultante)

[quote=tempus]Vediamo magari anche il buon vecchio

$ alsa-info --upload

(posta solo il link risultante)[/quote]

http://www.alsa-project.org/db/?f=f032916864a2cecb6d278b6e255f2a7c02a8f967

Prova con

# echo "options snd-hda-intel model=thinkpad" > /etc/modprobe.d/snd-hda-intel.conf

, riavvia, vedi come si comporta

[quote=tempus]Prova con

# echo "options snd-hda-intel model=thinkpad" > /etc/modprobe.d/snd-hda-intel.conf

, riavvia, vedi come si comporta[/quote]

non ho riscontrato niente di differente :frowning:

Riassumendo secondo me:

Premesso che alsa rileva il microfono e lo gestisce (infatti a riga di comando funziona)
Premesso che anche se attraverso il tool grafico di pulse audio devo modificare ogni volta la sorgente input

ho provato a vedere l’output di

pacmd list-sink-inputs
0 sink input(s) available.

secondo il server PuseAudio non esistono sink di input!!!

da questo https://wiki.archlinux.org/index.php/PulseAudio/Examples_(Italiano)#Impostare_l.27output_analogico_come_default
si vede come sia possibile impostare il default output, a questo punto io dovrei prima creare il sink input e poi assegnarlo di default
dentro /etc/pulse/default.pa.
cosa ne dite?

Aggiornamento:

Ho adottato un workaround per l’applicazione voip che utilizzo per lavoro “Linphone”

da http://lists.gnu.org/archive/html/linphone-users/2010-12/msg00024.html ho trovato il modo di forzare l’utilizzo con ALSA.

la soluzione mi permette di utilizzare il mic

rimane il problema di skype il microfono che nonostante abbia selezionato in pavucontrol (sotto Configuration->Internal Audio) la fonte corretta, continua a non essere rilevato.

Aggiornamento:

ho provato senza risultato a modificare il file /etc/pulse/default.pa impostando l’hw ma non ho ben capito come viene riconosciuto l’hw da pulse audio

load-module module-alsa-sink
load-module module-alsa-source device=hw:0,0
load-module module-alsa-sink device=hw:0,0

provando a far caricare ad esempio come source uno specifico hw,
quello che non ho capito però è come faccio a dirgli quello relativo al mic che funziona.
alsa invece da parte sua vede la sorgente

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1981 Analog [AD1981 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

e da alsamixer

Sound Card :
(default)
0   HDA Intel 
29  ThinkPad Console Audio Control
     enter device name...          

come faccio a dire a pulseaudio che l’interfaccia mic è quella che vede alsa e cioè:

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1981 Analog [AD1981 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

teoricamente hw:0,0

fonte il seguente http://fedoraproject.org/wiki/How_to_debug_PulseAudio_problems