Bug 174055

Summary: Default Linux ALSA configuration update request
Product: Ports & Packages Reporter: Tomasz "CeDeROM" CEDRO <tomek>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Tomasz "CeDeROM" CEDRO 2012-12-02 13:50:00 UTC
I have installed and started Skype (2.1 and 2.2 devel) with success on 9.1-RC3
using Linux binaries provided in port tree. However there is an issue
with default ALSA configuration and sound/calls does not work properly
off out the box. I suggest to set /dev/dsp0 and /dev/mixer0 as default
devices in the alsa configuration, so the sound works on the default/first
audio device. Right now it does not work at all. Maybe the /dev/dsp should
point at the /dev/dsp0 instead..? How does the relation work?

cederom@hexagon:/home/cederom % ls -al /dev/dsp
crw-rw-rw-  1 root  wheel    0, 181 Dec  2 14:41 /dev/dsp
cederom@hexagon:/home/cederom % ls -al /dev/dsp*
crw-rw-rw-  1 root  wheel    0, 179 Dec  2 14:41 /dev/dsp0.0
crw-rw-rw-  1 root  wheel    0, 211 Dec  2 14:34 /dev/dsp0.1
crw-rw-rw-  1 root  wheel    0, 181 Dec  2 14:41 /dev/dsp0.2
crw-rw-rw-  1 root  wheel    0, 213 Dec  2 14:34 /dev/dsp1.1
crw-rw-rw-  1 root  wheel    0, 215 Dec  2 14:34 /dev/dsp2.1
crw-rw-rw-  1 root  wheel    0, 217 Dec  2 14:34 /dev/dsp3.1
crw-rw-rw-  1 root  wheel    0, 219 Dec  2 14:34 /dev/dsp4.1

Fix: 

# pcm-oss plugin configuration

pcm.oss {
        type oss
        device /dev/dsp0
        hint {
                description "Open Sound System"
        }
}

ctl.oss {
        type oss
        device /dev/mixer0
        hint {
                description "Open Sound System"
        }
}
Comment 1 Tomasz "CeDeROM" CEDRO 2012-12-02 21:51:13 UTC
As suggested by Boris Samorodov linking the native FreeBSD Alsa-Lib
configuration to the Linux emulation works perfectly! :-)

mv /compat/linux/etc/asound.conf /compat/linux/etc/asound.conf.orig
ln -s /usr/local/etc/asound.conf /compat/linux/etc/asound.conf

The change has been submitted according to Boris :-) Case solved! :-)

Thanks :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2012-12-07 16:51:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

bsam can probably commit his patch if he has not already
Comment 3 Boris Samorodov freebsd_committer freebsd_triage 2013-01-21 13:50:51 UTC
Responsible Changed
From-To: bsam->freebsd-ports-bugs

The patch was reverted due to problems it created. And I do not track 
the case any more.
Comment 4 Philippe Audeoud freebsd_committer freebsd_triage 2013-11-12 14:04:46 UTC
State Changed
From-To: open->closed

bsam didn't track the case anymore.