Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > The Community > Everything BSD > Audio problem in FreeBSD 6.2

Forgot Password?
 Everything BSD   For all discussions regarding Free/NetBSD and OpenBSD.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-28-2007   #1 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Bangalore, India
Posts: 13
Send a message via Yahoo to saivinob
Audio problem in FreeBSD 6.2

Hi,
I'm not able to enable sound on my FreeBSD 6.2. The error message when I click on the speaker icon is:
HTML Code:
The volume control did not find any elements and/or devices to control. This means either that you don'thave the right GStreamer plugins installed, or that you don't have a sound card configured.
My motherboard is Asus K8V-VM with southbridge VT8233A. I tried,
Code:
kldload snd_via8233
When it didnot work I tried,
Code:
kldload snd_driver
cat /dev/sndstat yields just,
HTML Code:
#cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
The motherboard uses Realtek ALC660 codec I believe...

Any idea how I can solve this problem? I have no problem with audio in any of the linuces on my box.
saivinob is offline  


Reply With Quote
Old 09-28-2007   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
I may be missing something, but I can't seem to find any amount of useful information on the ALC660 (even on realtek's support site). Is there any more info you can provide about the device/chipset?

I've never run into a situation where the snd_driver metadriver was not able to provide a usable driver. It is possible your device is not supported.
anomie is offline   Reply With Quote
Old 09-28-2007   #3 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Quote:
Originally Posted by saivinob
My motherboard is Asus K8V-VM with southbridge VT8233A. I tried,
Code:
kldload snd_via8233
When it didnot work I tried
Whoops, somehow I missed that entire blurb. (I noticed it when I read your same post elsewhere.)

From the manpage for snd_via8233(4), it does look like the VIA VT8233A is supported. When you kldload that driver, does anything appear in /dev/sndstat? Also confirm with kldstat that it loaded the module properly.
anomie is offline   Reply With Quote
Old 09-29-2007   #4 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Bangalore, India
Posts: 13
Send a message via Yahoo to saivinob
Quote:
Originally Posted by anomie View Post
Whoops, somehow I missed that entire blurb. (I noticed it when I read your same post elsewhere.)
I know you frequent other forums.
I have posted the same problem in linuxquestions.org and bsdforums.org. But no reply in either forums. My past exp. says this forum is more friendlier and chances of one getting replies(irrespective of whether problem is solved or not!) is more here.

Quote:
Originally Posted by anomie View Post
When you kldload that driver, does anything appear in /dev/sndstat? Also confirm with kldstat that it loaded the module properly.
Nothing appears when I try cat /dev/sndstat
When I tried kldstat first time I got,
Code:
Id Refs Address    Size     Name
 1   10 0xc0400000 6f6544   kernel
 2    1 0xc0af7000 59f20    acpi.ko
 3    1 0xc4364000 16000    linux.ko
 4    1 0xc43b9000 17000    ng_btsocket.ko
 5    1 0xc43d0000 a000     netgraph.ko
 6    1 0xc43de000 2000     ng_bluetooth.ko
Then I did
Code:
kldload sound
kldload snd_via8233
Afterwhich the kldstat gave me this,
Code:
Id Refs Address    Size     Name
 1   12 0xc0400000 6f6544   kernel
 2    1 0xc0af7000 59f20    acpi.ko
 3    1 0xc4365000 16000    linux.ko
 4    1 0xc43b9000 17000    ng_btsocket.ko
 5    1 0xc43d0000 a000     netgraph.ko
 6    1 0xc43de000 2000     ng_bluetooth.ko
 7    2 0xc4d6d000 1c000    sound.ko
 8    1 0xc4d92000 5000     snd_via8233.ko
But strangely after I rebooted the output of kldstat reverted back to first one i.e. no entry for sound and snd_via8233.

Then I tried editing the /boot/loader.conf (it was empty! is that correct or something wrong?). I added the line,
Code:
snd_via8233_load="YES"
Now the kldstat showed,
Code:
Id Refs Address    Size     Name
 1   12 0xc0400000 6f6544   kernel
 2    1 0xc0af7000 6170     snd_via8233.ko
 3    2 0xc0afe000 22b88    sound.ko
 4    1 0xc0b21000 59f20    acpi.ko
 5    1 0xc4368000 16000    linux.ko
 6    1 0xc43c6000 17000    ng_btsocket.ko
 7    1 0xc43bb000 a000     netgraph.ko
 8    1 0xc43e1000 2000     ng_bluetooth.ko
Now, this entry is consistant but this has not solved my problem.

As for ALC660 even I didnot find any support in realtek' s ownsite. Actually, in one of mailinglists one user had the same problem with ALC660. But all he got as response was to forget about onboard sound and to install an external card! Even googling didnot help.

Looking at the msg which also mentioned about GStream plugins, I ran /usr/sysinstall and through ftp option installed whatever 'gstreamer*' thing I could find and rebooted.

Nothing worked. The snag persists. Dont know what to do ?!

Well, I'm not a music guy so soundwise it doesnot really matter. But it's kinda puzzle which I'm not able to solve and it hurts the ego.
saivinob is offline   Reply With Quote
Old 09-30-2007   #5 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Just so we're on the same page: After loading the snd_via8233 module, is there anything in /dev/sndstat or not? If so, there may be some other issues we can look at. If not, I'm not sure what else to try (apart from the mailing lists).
anomie is offline   Reply With Quote
Old 10-01-2007   #6 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Bangalore, India
Posts: 13
Send a message via Yahoo to saivinob
Well, nothing! 'cat /dev/sndstat' gives me just this,
Code:
#cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
Whereas, 'kldstat' is consistent in the sense now it shows entries for sound and snd_via8233.
I didnot have luck with mailing lists archives. I googled a lot.
I've not used mailing lists before so dont know how to use it. Will IRC help?
Will try everything. Lets see.
saivinob is offline   Reply With Quote
Old 10-01-2007   #7 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
If you'd like to use the mailing lists, read this section of the handbook:
C.1 Mailing Lists

Post back if you get the issue resolved (or determine that it can't be resolved).
anomie is offline   Reply With Quote
Old 10-01-2007   #8 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Bangalore, India
Posts: 13
Send a message via Yahoo to saivinob
Quote:
Originally Posted by anomie View Post
If you'd like to use the mailing lists, read this section of the handbook:
C.1 Mailing Lists
Sure anomie, the whole evening I was studying about mailing lists. Finally I posted in 'freebsd-questions', the mailing list for the newbies. Hopefully, they will redirect me if that is not a proper maillist.

But I foundout that the yahoo's mail formatting is horrible for the very same reasons Greg Lehey had written a full article. From his articles I've now landed at 'Mutt' page, the best loved mailer on Unix.

Its kinda chain reaction. Link by link I'm being led to fascinating world of technology.

Quote:
Originally Posted by anomie View Post
Post back if you get the issue resolved (or determine that it can't be resolved).
Ofcourse yes!
saivinob is offline   Reply With Quote
Old 10-02-2007   #9 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Bangalore, India
Posts: 13
Send a message via Yahoo to saivinob
Problem solved

Hi,
I'm back...but this time with some good news. The problem is solved.

It was a silly but major mistake on my part to inform you guys that the chipset was VT8233A. Actually it was VT8237A. I was also, told that VT8237 and VT8237A are NOT the same. Thats why snd_via8233 was not able to load the driver(though it supported VT8237).

The actual module was snd_hda. I got the precompiled module from Index of /~ariff/lowlatency/

I copied the sound.ko and snd_hda.ko to /boot/kernel and then edited /boot/loader.conf so as to load 'snd_hda' at boot time.

Now 'sndstat' shows,
Code:
FreeBSD Audio Driver (newpcm: 64bit 2007100200/i386)
Installed devices:
pcm0: <VIA VT8251/8237A High Definition Audio Controller> at memory 0xfbefc000 irq 17 kld snd_hda [20070930_0048] [MPSAFE] (1p:1v/1r:1v channels duplex default)
Audio is working fine.

Thanks a lot to anomie and to all who tried to solve my problem. Hope this thread will be of help to someone.

Lessons learnt:
* Be very careful. Every character may(will) be important esp. with file/driver/command names.
* Read the manual again and again and again.
* Try mailing lists, IRCs and other channels too. They not only may help in solving problems but also will introduce us to different technologies.
saivinob is offline   Reply With Quote
Old 10-02-2007   #10 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Good work. Thanks for sharing the fix.
anomie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:07 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2