DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st June 2009
erim erim is offline
New User
 
Join Date: Jun 2009
Posts: 3
Default FreeBSD 7.2 amd64 snd_hda no sound

I tried to listen audio cd with cdcontrol program but I get no sound at all. My cd-drive is connected to sound card with a audio cable. Playing mp3 file from command line doesn't work either I tried mpg123 program no error messages. Any ideas why sound is not working?

Code:
$ uname -a
FreeBSD freebsd 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
Code:
$ kldstat
Id Refs Address            Size     Name
 1    6 0xffffffff80100000 bd23e0   kernel
 2    1 0xffffffff80cd3000 230e8    snd_hda.ko
 3    2 0xffffffff80cf7000 67470    sound.ko
 4    1 0xffffffff80e22000 9eb1     geom_eli.ko
 5    1 0xffffffff80e2c000 1aa2b    crypto.ko
 6    1 0xffffffff80e47000 a472     zlib.ko
Code:
$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: <HDA Realtek ALC883 PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: <HDA Realtek ALC883 PCM #1 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex)
pcm2: <HDA Realtek ALC883 PCM #2 Digital> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels)
Code:
$ sysctl -a | grep hw.snd
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_formats: 1
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_buffersize: 16384
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.verbose: 1
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2007061600/amd64
hw.snd.default_auto: 0
Code:
$ mixer
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer mix      is currently set to   0:0
Mixer rec      is currently set to   0:0
Recording source: mic
Attached Files
File Type: txt dmesg_verbose.txt (61.4 KB, 65 views)

Last edited by erim; 1st June 2009 at 09:11 PM.
Reply With Quote
  #2   (View Single Post)  
Old 2nd June 2009
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Quote:
Originally Posted by erim
Code:
hw.snd.default_unit: 0
Switch this to 1 or 2 and test again.
Reply With Quote
  #3   (View Single Post)  
Old 2nd June 2009
erim erim is offline
New User
 
Join Date: Jun 2009
Posts: 3
Default

Quote:
Originally Posted by richardpl View Post
Switch this to 1 or 2 and test again.
Sorry I've been giving wrong information. I can hear music when I play mp3 file from command line. Sound works when hw.snd.default_unit is set to 0
I get no sound when using cdcontrol.
Reply With Quote
  #4   (View Single Post)  
Old 2nd June 2009
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Have you tried increasing the volume on the ones that are low? Perhaps the cd audio is coming in on the 'mix' channel.

Most of us don't other with those audio cables any more. CDs audio is usually played by the computer. You PC will be able to do much better DAC than the chipset inside the CD drive.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #5   (View Single Post)  
Old 2nd June 2009
erim erim is offline
New User
 
Join Date: Jun 2009
Posts: 3
Default

Quote:
Originally Posted by robbak View Post
Have you tried increasing the volume on the ones that are low? Perhaps the cd audio is coming in on the 'mix' channel.
Yes I have tried to increase the volume.

Code:
$ mixer
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer mix      is currently set to 100:100
Mixer rec      is currently set to   0:0
Recording source: mic
You were right cd audio is coming from mix channel but It's so quiet. I can barely hear the music playing.

Code:
$ cdcontrol volume
Left volume = 255, right volume = 255
Any ideas?

Last edited by erim; 2nd June 2009 at 03:56 PM.
Reply With Quote
  #6   (View Single Post)  
Old 3rd June 2009
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

You can ask that on @multimedia, snd_hda developers....
Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound on FreeBSD corey_james Guides 19 13th August 2010 11:05 PM
Recording sound with external sound card backrow OpenBSD General 5 21st August 2009 08:17 PM
Have no sound freeBSD 7.0 yavko FreeBSD Installation and Upgrading 3 31st July 2008 10:20 AM
Wine on FreeBSD 7.0 amd64 BlueJayofEvil FreeBSD Ports and Packages 13 29th July 2008 12:22 AM
problem with Virtual Sound Channels in FreeBSD 7 casper007 FreeBSD Installation and Upgrading 3 16th July 2008 04:22 PM


All times are GMT. The time now is 04:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick