You are not logged in.
I have been having some sound issues (computer sound gets leak into my mic) the cause seems to be the driver fault.
So I have downloaded the Realtek sound drivers but I fail to compile them.
the error get when I compile is
make -C /lib/modules/3.16.1-1-ARCH/build SUBDIRS=/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa CPP="gcc -E" CC="gcc" modules
make[1]: Entering directory '/usr/lib/modules/3.16.1-1-ARCH/build'
CC [M] /home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/hwdep.o
CC [M] /home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/memalloc.o
CC [M] /home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.o
/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.c: In function ‘snd_pcm_file_fd’:
/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.c:1647:2: error: implicit declaration of function ‘fget_light’ [-Werror=implicit-fun
file = fget_light(fd, fput_needed);
^
/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.c:1647:7: warning: assignment makes pointer from integer without a cast
file = fget_light(fd, fput_needed);
^
/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.c: In function ‘snd_pcm_lib_mmap_iomem’:
/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.c:3453:26: warning: unused variable ‘runtime’ [-Wunused-variable]
struct snd_pcm_runtime *runtime = substream->runtime;;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.o' failed
make[3]: *** [/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/pcm_native.o] Error 1
scripts/Makefile.build:404: recipe for target '/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore' failed
make[2]: *** [/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore] Error 2
Makefile:1333: recipe for target '_module_/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa' failed
make[1]: *** [_module_/home/matan/Documents/test/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa] Error 2
make[1]: Leaving directory '/usr/lib/modules/3.16.1-1-ARCH/build'
Makefile:167: recipe for target 'compile' failed
make: *** [compile] Error 2After some digging and trying to see what is the problem with the fget_light function I have discovered that the problem there is no declaration for it in file.h
I also did a little comparsion with my laptop which have ubutnu installed on it and it has that fget_light function declaration in it's file.h.
So does anyone know if there is a declaration for the fget_light function somewehre else in arch ? or if I can replace it with something else to make the driver complie ?
Offline
I have been having some sound issues (computer sound gets leak into my mic) the cause seems to be the driver fault.
So I have downloaded the Realtek sound drivers but I fail to compile them.
No problems with ALC892 on my side. Check jacks function with hdajackretask from alsa-tools. Post:
aplay -lL; lspci -nn | grep -i audio; lsmod | grep ^snd; amixer;
lsusb #if a usb sound card is involved;
# or use the alsa-info scriptEdit: Ergo I would leave the Realtek drivers alone for now and try to get alsa running properly on the sound card first.
Last edited by emeres (2014-08-25 10:19:33)
Offline
In hdajackretask all jacks seems to be in thier defualt function
aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0lspci -nn | grep -i audio
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Barts HDMI Audio [Radeon HD 6800 Series] [1002:aa88]lsmod | grep ^snd
snd_hda_codec_realtek 67127 1
snd_hda_codec_generic 63126 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 45117 1
snd_hda_intel 26327 8
snd_hda_controller 26727 1 snd_hda_intel
snd_hda_codec 108552 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 17244 1 snd_hda_codec
snd_pcm 88487 5 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer 26614 2 snd_pcm
snd 69340 22 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intelamixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 30089 [46%] [on]
Front Right: Capture 30089 [46%] [on]Offline
Checking the debian hardware list with vid:pid, in your case 8086:1c20, reports snd-hda-intel as working and it is also in the source code. Please post also:
systool -v -m snd_hda_intelSeems like snoop should be enabled, I would change parameter that first.
Side note: Next time provide also a link to the drivers you are downloading, so that there an unambiguous way to reproduce it.
Offline
I was trying to download the RealTek drivers Linux driver (3.0) from :
http://www.realtek.com.tw/Downloads/dow … Down=false
systool -v -m snd_hda_intel
Module = "snd_hda_intel"
Attributes:
coresize = "26327"
initsize = "0"
initstate = "live"
refcnt = "5"
taint = ""
uevent = <store method only>
Parameters:
align_buffer_size = "-1"
bdl_pos_adj = "1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
beep_mode = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
enable_msi = "-1"
enable = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
id = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
index = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
jackpoll_ms = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
model = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
patch = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
position_fix = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
power_save = "0"
power_save_controller= "Y"
probe_mask = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
probe_only = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
single_cmd = "N"
snoop = "Y"
Sections:
.bss = "0xffffffffa03d9a80"
.data = "0xffffffffa03d9000"
.data.unlikely = "0xffffffffa03d97d0"
.exit.text = "0xffffffffa03d6930"
.gnu.linkonce.this_module= "0xffffffffa03d9800"
.init.text = "0xffffffffa03dc000"
.note.gnu.build-id = "0xffffffffa03d7000"
.rodata = "0xffffffffa03d7040"
.rodata.str1.1 = "0xffffffffa03d7f02"
.rodata.str1.8 = "0xffffffffa03d82e0"
.smp_locks = "0xffffffffa03d8618"
.strtab = "0xffffffffa03df508"
.symtab = "0xffffffffa03dd000"
.text = "0xffffffffa03d4000"
__mcount_loc = "0xffffffffa03d8848"
__param = "0xffffffffa03d8628"
__verbose = "0xffffffffa03d9640"also how do I enable snoop ?
Offline
Look at the output of systool, it is already enabled, try the other way by disabling it.
options snd-hda-intel snoop=0 model=autoYou may also want to try another model for that codec or maybe a very similar one, although autoprobing should take care of that.
computer sound gets leak into my mic
What exactly do you mean by that?
Offline
Look at the output of systool, it is already enabled, try the other way by disabling it.
options snd-hda-intel snoop=0 model=autoYou may also want to try another model for that codec or maybe a very similar one, although autoprobing should take care of that.
XDarkAngelX wrote:computer sound gets leak into my mic
What exactly do you mean by that?
What I mean is that when I hear music and talk to someone on skype they can hear my music
When I looked on my mircophone output when I hear music I could see that it goes up and down just like the music I was playing.
I thought in the start that it might be a problem with my fornt jack so I tried connecting the microphone to the rear jack but still got same issue also oddly enought when I checked the output of the front jack which in this point is unplugged,
I saw that the music still get routed to it somehow.
Offline
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 30089 [46%] [on]
Front Right: Capture 30089 [46%] [on]I would disable capture for starters. I also assume you use pulseaudio to get skype running, which you must mention with sound problems, that complicates the situation further. If there are no options in alsamixer, try amixer:
amixer sset Capture offTo rule out pulseaudio, see if you get the feedback without pulseaudio running. Do you use speakers? Is the volume set high/loud? It could be feedback from the speakers.
Offline
I use headset but the mic isn't picking up the sound from the headphones cuase if I unplug both of them and play music I will still get the same issue ....
also it is not pulseaudio since I was having this issue when I used only alsa.
I disabled caputre in alsamixer but than I have get no sound at all to the microphone.
Last edited by XDarkAngelX (2014-08-25 12:07:06)
Offline
I disabled caputre in alsamixer but than I have get no sound at all to the microphone.
But the music does not get picked up now? Laptop or desktop?
Offline
desktop and yes now the music does not get picked up , nothing get picked up
Offline
Maybe the gain or boost is set to high, but it does not show up in amixer. I would try it with capture at lower levels nevertheless. Should it continue to happen, take another look at hdajackretask. Since this is a desktop a multi-purpose jack is less likely*. You could however use another jack as microphone input and see if that helps. Other than that and the aspects mentioned in previous posts, you would have to take a look at the datasheet and hda-verb. There might and should be further settings available.
Edit: *That could hard-feed the sound to the microphone back.
Last edited by emeres (2014-08-25 12:22:22)
Offline
btw I didn't try to disable the snoop thingy I just didn't understand what I should do to disable it
Offline
Use modprobe options, read the manual.
$ cat /etc/modprobe.d/50-alsa-base.conf
options snd-hda-intel snoop=0 model=autoOffline
Do I need to create a new file ? my modprobe.d folder is empty
Offline
Did you read the manual?
man modprobeYou need to become more self-sufficient, otherwise you will drift towards help-vampirism.
Offline
Well tried it still same issue I guess take a look at hda-verb and the datasheet maybe something there will enlighten me about why it happens
thanks for the help anyway.
Offline
You could however use another jack as microphone input and see if that helps.
Search also for vid:pid combination or other ALCs with that issue. Should you find something, report it here.
Datasheet and documentation for hda-verb.
Last edited by emeres (2014-08-25 13:22:40)
Offline
Try:
$ cat /etc/modprobe.d/50-alsa-base.conf
options snd-hda-intel index=0 model=genericAny progress?
Offline
Am I the only one confused as to why the op would try to compile that driver? It is included in the alsa packages from our repos.
Offline
I have been having some sound issues (computer sound gets leak into my mic) the cause seems to be the driver fault.
First sentence of the OP.
Offline
No offense, but that doesn't answer my question. The drivers he/she is trying to compile are just upstream alsa frozen at some version, makes no sense to try to use them ans now upstream's proper release.
Offline
I just pointed out, why OP thinks [s]he needs the rt driver. When you look through the thread, you will recognise, that I try to solve the issue using what alsa comes with. If I recall correctly there are some differences in the drivers and their structure, but I only skimmed through the code.
Offline
Today I tried to intall ubuntu to see if the problem I am having is specific to Arch or it is just linux not liking my hardware.
When I ran ubuntu the issue seem to have disappered .... so it seems it is either I am doing something wrong or just a odd thing with Arch ... although that seems unlikely to me.
Sorry for the delayed replay , I just most of the time not at home so I don't have mcuh time to fix the problem.
Offline