You are not logged in.
Hello!
I installed Arch on my laptop few days ago and I wanted to continue my project (sound analyser). My app can't receive microphone input here (on desktop it worked
).
I had few problems with audio drivers here, but I wrote this modprobe.d file:
options snd-hda-intel id=PCH index=0
options snd-hda-intel id=HDA index=1Since then all of my apps work with sound good. Even microphone input works in Audacity.
The problem is that microphone input doesn't work in my own app!
I tryed with portaudio and fmodex, but both have the same behaviour.
Getting devices in portaudio: (c++)
inputParameters.device = Pa_GetDefaultInputDevice();
int count = Pa_GetDeviceCount();
for(int i=0; i<count; i++)
{
printf("%s \n",Pa_GetDeviceInfo(i)->name);
}output:
HDA Intel PCH: CX20757 Analog (hw:0,0)
HDA Intel HDMI: 0 (hw:1,3)
HDA Intel HDMI: 1 (hw:1,7)
HDA Intel HDMI: 2 (hw:1,8)
sysdefault
pulse
default
dmix Default device can't catch anything.
As I said before: Audacity works.
lspci:
[folbo@arch ~]$ lspci | grep -a "audio"
[folbo@arch ~]$ lspci | grep -a "Audio"
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)aplay -l:
[folbo@arch ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20757 Analog [CX20757 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDA [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDA [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDA [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0aplay -L:
[folbo@arch ~]$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=PCH
HDA Intel PCH, CX20757 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, CX20757 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, CX20757 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=HDA,DEV=0
HDA Intel HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDA,DEV=1
HDA Intel HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDA,DEV=2
HDA Intel HDMI, HDMI 2
HDMI Audio OutputOffline