LynxOne soundcard - no sound

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

LynxOne soundcard - no sound

Postby Lazy » Sat Aug 16, 2008 7:06 pm

I'm on PC-BSD 1.5.1 and can't get my LynxOne to work.
Did
Code: Select all
osstest
and no hardware was found.

Strange thing is that when I plug in headphones in the back of the computer (with a mini-jack) there I do have sound.
Is there a mini-soundcard extra for this in every pc or so?

Help appreciated :!:
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sat Aug 16, 2008 11:56 pm

Please paste output of 'ossinfo -v3', and contents of /usr/lib/oss/etc/installed_drivers.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby Lazy » Sun Aug 17, 2008 8:14 am

cesium wrote:Please paste output of 'ossinfo -v3', and contents of /usr/lib/oss/etc/installed_drivers.

Unfortunately this is the result:
Code: Select all
%ossinfo -v3
OSS has not detected any supported sound hardware in your system.
%

and in /usr/lib/oss/etc there is no further /installed_drivers
The only contents of etc is a file called "user defs", which has text inside ("autosave_mixer yes").

Other content of /usr/lib/oss/etc is:
build, etc, include sys, logs, modules, objects
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sun Aug 17, 2008 12:03 pm

Did you install OSS from ports? audio/oss port doesn't include the Lynx driver since the Lynx driver is still closed source (Lynx studios won't let 4front open source it). You need to use the package from OSS website:
http://www.4front-tech.com/release/oss- ... 3-i386.tbz
http://www.4front-tech.com/release/oss- ... -amd64.tbz

(Unfortunately, 4front didn't compile a newer version for FreeBSD 6. You may wish to nag 4front to do this via the support form or via the mailing list).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby Lazy » Sun Aug 17, 2008 12:32 pm

cesium wrote:Did you install OSS from ports? audio/oss port doesn't include the Lynx driver since the Lynx driver is still closed source (Lynx studios won't let 4front open source it). You need to use the package from OSS website:
http://www.4front-tech.com/release/oss- ... 3-i386.tbz
http://www.4front-tech.com/release/oss- ... -amd64.tbz

(Unfortunately, 4front didn't compile a newer version for FreeBSD 6. You may wish to nag 4front to do this via the support form or via the mailing list).

I already had done this
Code: Select all
pkg_add -rv http://www.4front-tech.com/release/oss-freebsd7-v4.0-1016-i386.tbz
and now I realize that PC-BSD is base indeed on FreeBSD 6, not 7!!! duh :oops:
I'll try again with your link (btw LynxOne is in the list of supported soundcards)

EDIT: YES!!!!!! :D thank you thank you thank you :D
2nd EDIT: I shouted Glory too soon... osstest gives sound, but playing a music file doesn't...
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sun Aug 17, 2008 5:58 pm

Does /dev/dsp exist? Run "ossdevlinks -v -r" as root. Also paste "ossinfo -v3".
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby Lazy » Sun Aug 17, 2008 6:58 pm

cesium wrote:Does /dev/dsp exist? Run "ossdevlinks -v -r" as root. Also paste "ossinfo -v3".

Code: Select all
/dev/dsp: Permission denied.


ossinfo -v3 gave this:
Code: Select all
Version info: OSS 4.0 (b1013/200802020510) (0x00040003)
Platform: FreeBSD/i386 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #7: Thu Apr 17 11:21:34 EDT 2008     root@pcbsd:/usr/obj/usr/src/sys/PCBSD (pcbsd)

Number of audio devices:        4
Number of audio engines:        4
Number of mixer devices:        1


Device objects
0: lynxone0 LynxONE
1: vmix0 OSS transparent virtual support


Mixer devices
0: LynxONE Control Panel (Mixer 0 of device object 0)
    Device file /dev/oss/lynxone0/mix0, Legacy device /dev/mixer0
    Priority: -1
    Caps:
    Device handle: OSS-PCI-mx01
    Device priority: -1


Audio devices
LynxONE analog output             /dev/oss/lynxone0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 0/LynxONE analog output
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Device handle: OSS-PCI-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 96000
    HW Type: Not indicated.
    Minimum latency: Not indicated

LynxONE analog input              /dev/oss/lynxone0/pcmin0  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: INPUT
      In engine   1: 1/LynxONE analog input
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Device handle: OSS-PCI-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 96000
    HW Type: Not indicated.
    Minimum latency: Not indicated

LynxONE digital output            /dev/oss/lynxone0/pcm1  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 2/LynxONE digital output
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Device handle: OSS-PCI-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 96000
    HW Type: Not indicated.
    Minimum latency: Not indicated

LynxONE digital input             /dev/oss/lynxone0/pcmin1  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: INPUT
      In engine   1: 3/LynxONE digital input
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_S32_LE       - 32 bit signed little endian
    Device handle: OSS-PCI-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 96000
    HW Type: Not indicated.
    Minimum latency: Not indicated
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby Lazy » Sun Aug 17, 2008 7:00 pm

...and the ossdevlinks -v -r:
Code: Select all
pcbsd# ossdevlinks -v -r
4 audio devices
/dev/dsp0 is the next free legacy device
/dev/dsp0: No such file or directory
Created new legacy device /dev/dsp0 -> /dev/oss/lynxone0/pcm0
/dev/dsp1: No such file or directory
Created new legacy device /dev/dsp1 -> /dev/oss/lynxone0/pcmin0
/dev/dsp2: No such file or directory
Created new legacy device /dev/dsp2 -> /dev/oss/lynxone0/pcm1
/dev/dsp3: No such file or directory
Created new legacy device /dev/dsp3 -> /dev/oss/lynxone0/pcmin1
0 legacy dsp device files
/dev/oss/lynxone0/pcm0 is the default mmap output device
1 mixer devices
/dev/mixer1 is the next free legacy device
/dev/mixer0: No such file or directory
Created new legacy device /dev/mixer0 -> /dev/oss/lynxone0/mix0
1 legacy mixer device files
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sun Aug 17, 2008 7:04 pm

Lazy wrote:
Code: Select all
/dev/dsp: Permission denied.
??? That's after ls, right? This is very odd. Erase /dev/dsp and do 'ln -sf /dev/oss/lynxone0/pcm0 /dev/dsp'.
EDIT: Are you using the digital output per chance? In that case use pcm1 instead of pcm0.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby Lazy » Sun Aug 17, 2008 7:19 pm

cesium wrote:
Lazy wrote:
Code: Select all
/dev/dsp: Permission denied.
??? That's after ls, right? This is very odd. Erase /dev/dsp and do 'ln -sf /dev/oss/lynxone0/pcm0 /dev/dsp'.
EDIT: Are you using the digital output per chance? In that case use pcm1 instead of pcm0.

That was without ls
I'm not experienced with UNIX at all :-)
With ls in front I get this:
Code: Select all
pcbsd# ls /dev/dsp
ls: /dev/dsp: No such file or directory

and your other suggestion:
Code: Select all
ln -sf /dev/oss/lynxone0/pcm0 /dev/dsp

gave nothing (blank)

ehm... digital output? pcm1 pcm0? lost me there...
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sun Aug 17, 2008 7:24 pm

Lazy wrote:and your other suggestion:
Code: Select all
ln -sf /dev/oss/lynxone0/pcm0 /dev/dsp

gave nothing (blank).
It isn't supposed to reply to console. Check now if programs like ossplay work.

ehm... digital output? pcm1 pcm0? lost me there...
Run "osstest 0" and "osstest 2". Which one of these outputs?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby Lazy » Sun Aug 17, 2008 8:26 pm

Code: Select all
Usage: ossplay [options...] filename...
  Options:  -v             Verbose output
            -q             No informative printouts
            -d<devname>    Change output device.
            -s<rate>       Change playback rate of unrecognized files.
            -b<bits>       Change number of bits for unrecognized files.
            -c<channels>   Change number of channels for unrecognized files.

and osstest 0 gave pianomusic
osstest 2 nothing

getting closer? :-)
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sun Aug 17, 2008 8:28 pm

You need to provide the name of an existing media file, e.g.
"ossplay something.wav". (instead of something.wav use a wav file that exists).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby Lazy » Sun Aug 17, 2008 8:56 pm

a friend is also helping out via Kopete messenger and I did many things in the vain of
Code: Select all
pcbsd# ossplay -v -d/dev/mixer0 -s48000 /home/Ludo/tada.wav
Playing .WAV file /home/Ludo/tada.wav, 16 bits/stereo/44100 Hz
/dev/mixer0: Device not configured
Failed to select bits/sample

I'll try your latest suggestion now too
Lazy
Member
 
Posts: 19
Joined: Sat Aug 12, 2006 11:26 am
Location: Belgium

Postby cesium » Sun Aug 17, 2008 8:57 pm

Of course it doesn't work - "-d" switch should not with the mixer - it's the wrong device.. Just don't use "-d" at all. [edit: try with and without -s48000]
Last edited by cesium on Sun Aug 17, 2008 8:58 pm, edited 3 times in total.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Next

Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest

cron