View previous topic :: View next topic |
Author |
Message |
JohnerH Apprentice
Joined: 01 Mar 2004 Posts: 197 Location: Manchester,United Kingdom
|
Posted: Thu Jan 31, 2008 9:39 pm Post subject: SPDIF & OSS Emulation don't mix, help? [SOLVED] |
|
|
Hello,
Basically for the past couple of months I've been trying to get all the sound out of my box to go through the SPDIF/Toslink output of my card.
I've managed to get basic sound out (ie.: Amarok, mplayer, vlc, etc) but when it comes to flash applications or things that need oss it goes on the blink.
My setup:
Code: |
Portishead ~ # lspci |grep audio
00:06.0 Multimedia audio controller: nVidia Corporation MCP2S AC'97 Audio Controller (rev a1)
Portishead ~ # aplay -L
default:CARD=CK8
NVidia CK8, NVidia CK8
Default Audio Device
front:CARD=CK8,DEV=0
NVidia CK8, NVidia CK8
Front speakers
surround40:CARD=CK8,DEV=0
NVidia CK8, NVidia CK8
4.0 Surround output to Front and Rear speakers
surround41:CARD=CK8,DEV=0
NVidia CK8, NVidia CK8
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CK8,DEV=0
NVidia CK8, NVidia CK8
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CK8,DEV=0
NVidia CK8, NVidia CK8
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
null
Discard all samples (playback) or generate zero samples (capture)
Portishead ~ # cat /proc/asound/devices
0: [ 0] : control
16: [ 0- 0]: digital audio playback
18: [ 0- 2]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
33: : timer
Portishead ~ $ more .asoundrc
pcm.!default {
type hw
card 0
device 2
}
|
This setup as it is works for must sound...sound goes out through the SPDIF port in to my external DAC, etc...
When I try to enable,
Code: |
Advanced Linux Sound Architecture --->
<*> Advanced Linux Sound Architecture
<*> Sequencer support
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
|
pufff, the sound goes dead, not a peep comes out...
Any ideas? I'd really like to get flash work on firefox as a starter...
Thank you in advance for the help... _________________ ------------------------------------------------------
I think I had a thought once but it Died of Lonelyness...
Last edited by JohnerH on Fri Feb 01, 2008 3:21 pm; edited 1 time in total |
|
Back to top |
|
|
hampelratte Apprentice
Joined: 29 Jul 2005 Posts: 155
|
Posted: Fri Feb 01, 2008 12:23 pm Post subject: |
|
|
I think, you have to adjust your .asoundrc. Here is mine. The article is written in german, but maybe you can have a look at the commands and the .asoundrc to get a clue. My alsa setup with my .asoundrc supports the following: oss emulation, softwaremixing, microphone, dolby digital pass through and all sound goes out over the spdif jack.
I think, you could use this .asoundrc. The only thing to do is, to find out which alsa device is your digital out and then replace it in the .asoundrc.
Code: |
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 0/1
Subdevice #0: subdevice #0
|
card 0, device 1 is the digital device -> that's why my asoundrc. pcm.dmixer section points to hw:0,1
BR
Henrik |
|
Back to top |
|
|
JohnerH Apprentice
Joined: 01 Mar 2004 Posts: 197 Location: Manchester,United Kingdom
|
Posted: Fri Feb 01, 2008 3:18 pm Post subject: |
|
|
This semi-work, the sound comes out, but the quality os shocking...really really bad, so I don't know what to change...any ideas?
Well I had to change the config to match my own settings, my digital address, is 0,2 so, this became my file...
Code: |
pcm.!default {
type plug
slave.pcm "mic"
}
# this is needed for the mic
pcm.card0 {
type hw
card 0
}
# this enables the mic
pcm.mic {
type asym
playback.pcm "dmixer"
capture.pcm "card0"
}
# dmix output over spdif
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0660
slave {
pcm "hw:0,2" # [b]changed this to reflect my spdif out...[/b]
channels 6
period_time 0
period_size 512
buffer_time 0
buffer_size 4096
}
bindings {
0 0 # map from 0 to 0
2 2 # map from 1 to 1 [b]I Had to change this from 1 1 to 2 2, is this right?[/b]
}
|
_________________ ------------------------------------------------------
I think I had a thought once but it Died of Lonelyness... |
|
Back to top |
|
|
JohnerH Apprentice
Joined: 01 Mar 2004 Posts: 197 Location: Manchester,United Kingdom
|
Posted: Fri Feb 01, 2008 3:20 pm Post subject: |
|
|
Got it!
Changed....
Code: |
bindings {
0 0 # map from 0 to 0
2 2 # map from 1 to 1
}
|
to...
Code: |
bindings {
0 0 # map from 0 to 0
1 1 # map from 1 to 1
}
|
Which was what the article quoted at he beginning...
Thank you for your help! _________________ ------------------------------------------------------
I think I had a thought once but it Died of Lonelyness... |
|
Back to top |
|
|
hampelratte Apprentice
Joined: 29 Jul 2005 Posts: 155
|
Posted: Fri Feb 01, 2008 3:28 pm Post subject: |
|
|
I have spent hours to get alsa working with SPDIF/dmix/mic. That's why I wrote the article. Good to hear, that it is useful for other users, too. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|