New Build Audio Issues

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

tramp
Established Member
Posts: 2439
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 11 times
Been thanked: 557 times

Re: New Build Audio Issues

Post by tramp »

JoppaJawbone wrote:I will get this to work!
Again, you need to find the right option set for your chip.
Those HDA chips could run (coupled in) in several different modes, which mean the data stream could be send to different pins) , and if the board didn't return the right option to the driver, you must explicit set it to make it work correct.
Maybe this would help you:
http://forums.linuxmint.com/viewtopic.php?f=49&t=110209
On the road again.
Pablo
Established Member
Posts: 1274
Joined: Thu Apr 17, 2008 9:57 pm
Been thanked: 3 times

Re: New Build Audio Issues

Post by Pablo »

Code: Select all

lspci -nnk | grep audio
But the onboard audio interface doesn't show up because grep is case-sensitive by default and there is probably Audio, not audio, in the description of the onboard card. I suggest you just should do a:

Code: Select all

lspci -nnk
and look for the lines corresponding to the onboard audio card.

Anyway, I dread to think about compiling drivers, I expect Linux to just work. Linux users shouldn't compile drivers, imho. That's why I would try tramp's tip first.
Eino
Established Member
Posts: 107
Joined: Mon Dec 23, 2013 2:22 pm
Location: Music City USA
Contact:

Re: New Build Audio Issues

Post by Eino »

The motherboard specs said Realtek high definition audio.
By the looks of things it may be wrong.
First here is my results when plugging in lspci -nnk | grep audio
CODE: SELECT ALL
03:00.0 Multimedia audio controller [0401]: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller [1412:1712] (rev 02)
The quote is from the first page, of the thread.
"Music is everybody's possession. It's only publishers who think that people own it. "
John Lennon

https://soundcloud.com/eino1953
tramp
Established Member
Posts: 2439
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 11 times
Been thanked: 557 times

Re: New Build Audio Issues

Post by tramp »

Eino wrote:The motherboard specs said Realtek high definition audio.
By the looks of things it may be wrong.
First here is my results when plugging in lspci -nnk | grep audio
CODE: SELECT ALL
03:00.0 Multimedia audio controller [0401]: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller [1412:1712] (rev 02)
The quote is from the first page, of the thread.
Sorry, but to me it looks as this is the M Audio Audiophile 24/96, the onboard one is still a HDA-Intel like the specs say.
0 [MID ]: HDA-Intel - HDA Intel MID
HDA Intel MID at 0xf0710000 irq 44
1 [Loopback ]: Loopback - Loopback
Loopback 1
2 [M2496 ]: ICE1712 - M Audio Audiophile 24/96
M Audio Audiophile 24/96 at 0xe040, irq 18
That's why
Pablo wrote:

Code: Select all

lspci -nnk | grep audio
But the onboard audio interface doesn't show up because grep is case-sensitive by default and there is probably Audio, not audio, in the description of the onboard card. I suggest you just should do a:

Code: Select all

lspci -nnk
and look for the lines corresponding to the onboard audio card.
On the road again.
Eino
Established Member
Posts: 107
Joined: Mon Dec 23, 2013 2:22 pm
Location: Music City USA
Contact:

Re: New Build Audio Issues

Post by Eino »

Eino wrote:I need more information to help you. Please post the output of " lspci -nnk | grep audio ".
I should of just stuck to see the results, without giving him the generic Realtek instructions.
Sorry !! :oops:
"Music is everybody's possession. It's only publishers who think that people own it. "
John Lennon

https://soundcloud.com/eino1953
JoppaJawbone
Established Member
Posts: 13
Joined: Wed Dec 11, 2013 5:57 pm

Re: New Build Audio Issues

Post by JoppaJawbone »

So I'm still plugging away at this. Reading a lot and learning a lot.

So I did a few of the HDA Driver option sets that tramp mentioned on the first page of this thread. No change.
Then I followed up with the link tramp provided to the linux mint forum, and again no result but I have a question.
When I

Code: Select all

sudo alsa force-reload
I get a message stating

Code: Select all

Unloading ALSA sound driver modules: snd-ice1712 snd-ice17xx-ak4xxx snd-ak4xxx-adda snd-cs8427 snd-ac97-codec snd-i2c snd-mpu401-uart snd-hda-codec-hdmi snd-hda-intel
Then Konsole just hangs there, never coming out of that message. When I then try to exit the tab in Konsole I get a message saying "Program sudo is currently running an active session are you sure you wish to close it?" I close it because it just sticks like that, is that normal?

Also my alsamixer is not found so I wonder if in reloading the realtek driver somehow messed with my instal of alsa?
Eno - no problem! I appreciate the help, and it seems like it was worth a shot.

Pablo, here is what I get when I run lspci -nnk

Code: Select all

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
        Subsystem: ASRock Incorporation Device [1849:0c0c]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd-hda-intel
at least there is the portion relating to the audio driver. Interesting to note it lists my processor as Intel Corporation Xeon E3, when I have a Pentium G3220. I wonder if there is differences in the chipset that would be causing issues.
tramp
Established Member
Posts: 2439
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 11 times
Been thanked: 557 times

Re: New Build Audio Issues

Post by tramp »

JoppaJawbone wrote:Then Konsole just hangs there, never coming out of that message. When I then try to exit the tab in Konsole I get a message saying "Program sudo is currently running an active session are you sure you wish to close it?" I close it because it just sticks like that, is that normal?
No, that indicate that the command not be successful. The same "hang" when you boot your system.
So, you cant count with a result, in terms that the option change anything, or that you get audio to work anyway.

I guess your best beet will be to remove the hand-installed-realtec-driver, because it seems to mess your system up.
Go to the source folder of it (were you have downloaded -> unpack it) and run

Code: Select all

sudo make uninstall 
reboot after that. Than try again the command

Code: Select all

 sudo alsa force-reload
If it work correct, you can start with the option sets for your chip.
On the road again.
JoppaJawbone
Established Member
Posts: 13
Joined: Wed Dec 11, 2013 5:57 pm

Re: New Build Audio Issues

Post by JoppaJawbone »

Thank you guys for your help,I've been plugging away at this and again I want to make sure that I am doing things right.

I should say first off I reinstalled KX studio because removing the previous realtek driver was not working out, It said it was deleted but still ran slow. Now the computer is running like a young buck!

Ok so again I just want to make sure this is all kosher, I first bootup on the fresh install and Cadence cannot start the jack server. It just wont go at all. I started Jack Rack, cause I thought last time that helped kick things off. And indeed it did, when I went back to Cadence I was able to start Jack right up. Now I wanted to make sure this isn't Cadence beeing fooled by Jack Rack, and I'm hoping Jack Rack merely jump starts Jack which then allows Cadence to jump on board.

I've gone through all of the

Code: Select all

options snd-hda-intel model=####
and I wanted to confirm that was the correct way to enter the code, I enter it right below the whole string of "Options" lines. I read somewhere that adding "#" to the front of the command there helped get it recongnized, not sure if that's applicable in this situation.

Now just as a future note to anyone who searched the thread out and had the same beginnners curve I did, we are editing the alsa-base.conf file to direct alsa to the built in soundcard. To access and edit this file you can use the code:

Code: Select all

sudo nano /etc/modprobe.d/alsa-base.conf
It took me a little bit to figure out how to get it all to work but the trick is that "^" stands for CTRL so ^X is CTRL + X.

Lastely since the reboot I have regained the alsamixer! very good news. I've attached two screen shots of my alsa mixer to confirm my settings are all kosher there as well.
Image
Image
So in the first one I am selecting HDA Intel Mid as my default sound card.
Then in the second picture is my question, I don't get any sound levels, and I'm not sure if I should adjust any settings here or under Kmix
Image

Sorry for rehashing the obvious, but now with the fresh instal I want to make sure all the basic settings are correct and the problem isn't as simple as unmuting or choosing the right output. I appreciate the time you guys have put in to help so I want to make sure it's not something stupid on my end.
Pablo
Established Member
Posts: 1274
Joined: Thu Apr 17, 2008 9:57 pm
Been thanked: 3 times

Re: New Build Audio Issues

Post by Pablo »

I read somewhere that adding "#" to the front of the command there helped get it recongnized, not sure if that's applicable in this situation.
The number sign # is for comments. It is also used for disabling code lines in many programming languages and also in configuration files like alsa-base.conf. In this case programmers refer to "commenting out a line" because it disables the line of code without deleting it. A good idea (?) is writing all the possible lines, like this:


#options snd-hda-intel model=asus-mode1
#options snd-hda-intel model=asus-mode2
#options snd-hda-intel model=asus-mode3
#options snd-hda-intel model=asus-mode4

and so on, for all models corresponding to your audio card's chip, like tramp suggested. All of them commented out. And then you go enable them one by one, by deleting the number sign, saving the file and force-reloading alsa. If it doesn't work, comment out the line again and try the next one.

Of course, you can just write one line without the number sign and edit it each time for the next model, if the current one didn't work.
sudo nano /etc/modprobe.d/alsa-base.conf
You have several text editors installed in your system, from very simple to very nice and easy to use. Try kate instead of nano (just for ease of use, it doesn't make any difference to the issue discussed here)

For the time being you have digital devices (SPDIF) only but you expect audio going to analog gear? If so, let's hope one of the options in the alsa configuration file makes alsa see an analog device. If not, you will have to ask the alsa developers, or maybe here someone has a clue.

Cheers! Pablo
Eino
Established Member
Posts: 107
Joined: Mon Dec 23, 2013 2:22 pm
Location: Music City USA
Contact:

Re: New Build Audio Issues

Post by Eino »

Can you post the results of"aplay -L" as a normal user, this will show what devices and cards you have.
Then I can figure out what's needed for your analog output.

Code: Select all

aplay -L
"Music is everybody's possession. It's only publishers who think that people own it. "
John Lennon

https://soundcloud.com/eino1953
JoppaJawbone
Established Member
Posts: 13
Joined: Wed Dec 11, 2013 5:57 pm

Re: New Build Audio Issues

Post by JoppaJawbone »

Sorry, havn't been on the boards in a little bit. Crazy schedule with all the snow we've been getting.

Here is my results for aplay -L

Code: Select all

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
aloopPlayback
aloopCapture
aloopDuplex
default
cloop
ploop
hdmi:CARD=MID,DEV=0
    HDA Intel MID, HDMI 0
    HDMI Audio Output
hdmi:CARD=MID,DEV=1
    HDA Intel MID, HDMI 1
    HDMI Audio Output
hdmi:CARD=MID,DEV=2
    HDA Intel MID, HDMI 2
    HDMI Audio Output
dmix:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Direct sample mixing device
dmix:CARD=MID,DEV=7
    HDA Intel MID, HDMI 1
    Direct sample mixing device
dmix:CARD=MID,DEV=8
    HDA Intel MID, HDMI 2
    Direct sample mixing device
dsnoop:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Direct sample snooping device
dsnoop:CARD=MID,DEV=7
    HDA Intel MID, HDMI 1
    Direct sample snooping device
dsnoop:CARD=MID,DEV=8
    HDA Intel MID, HDMI 2
    Direct sample snooping device
hw:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Direct hardware device without any conversions
hw:CARD=MID,DEV=7
    HDA Intel MID, HDMI 1
    Direct hardware device without any conversions
hw:CARD=MID,DEV=8
    HDA Intel MID, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Hardware device with all software conversions
plughw:CARD=MID,DEV=7
    HDA Intel MID, HDMI 1
    Hardware device with all software conversions
plughw:CARD=MID,DEV=8
    HDA Intel MID, HDMI 2
    Hardware device with all software conversions
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
dmix:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Direct sample mixing device
dmix:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Direct sample mixing device
dsnoop:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Direct sample snooping device
dsnoop:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Direct sample snooping device
hw:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Direct hardware device without any conversions
hw:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Direct hardware device without any conversions
plughw:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Hardware device with all software conversions
plughw:CARD=Loopback,DEV=1
    Loopback, Loopback PCM
    Hardware device with all software conversions
sysdefault:CARD=M2496
    M Audio Audiophile 24/96, ICE1712 multi
    Default Audio Device
front:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    Front speakers
surround40:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    4.0 Surround output to Front and Rear speakers
surround41:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    Direct sample mixing device
dsnoop:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    Direct sample snooping device
hw:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    Direct hardware device without any conversions
plughw:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    Hardware device with all software conversions
Thanks for the tip Pablo!, I'm ganna try it out.
JoppaJawbone
Established Member
Posts: 13
Joined: Wed Dec 11, 2013 5:57 pm

Re: New Build Audio Issues

Post by JoppaJawbone »

Great News!!!

I have audio and boy does it sound good!
So what I did is I wired up my mixer to the Audiophile 2496 card. I figured let me give this a try, it's going to be my primary in/out interface anyway.

I turned up the DAC volume in AlsaMixer, Cadence launched properly as well as JACK. Went into configure/driver area of Cadence and set output to 'hw:M2496,0 [ICE1712 multi]', then hit ok. I restarted everything and played something on youtube and it came in crystal clear.

Thanks so much everyone for your help. I think for the most part my inexperience with Linux is what set me back getting the Realtek driver going. It certainly did not want to work without a fight. But even for setting up the 2496 card I refrenced your guys posts in this thread to make sure I was doing it right. Much appreaciated! And I hope anyone in the future getting a similar setup running can use it as a reference.

Now on to recording!!!
Post Reply