<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>I want to make is a DSP module that improves the sound quality 
of the sound coming from the laptop builtin speakers by applying DSP 
(FIR/IIR filters). <br>I want to route all audio played back (from for 
instance an offline WAV or MP3 file, from a movie, or streamed from the internet) to 
pass through the <br>DSP plugin whenever headphones are NOT connected. When headphones are connected no processing should be applied. <br>I 
want to place the DSP module as close to the hardware as possible to 
make sure all audio is really routed through the DSP plugin so I always 
can enjoy <br>the DSP improvements made to the sound. <br><br>Where should I place this module/DSP code? <br>- As a plugin to PulseAudio? <br>
- As a plugin to ALSA? <br>- As its own virtual sound card?<br>
- In the audio driver for my built-in sound card?<br>- As a kernel module? <br> <br>
I have tried loading the LADSPA-module using the module-ladspa-sink in PulseAudio but I am not sure this is the best solution. <br>I need to remove some limitations in module-ladspa-sink to get it working properly ( multichannel audio, only DSP processing for internal speakers).<br>
 <br>
My requirements:<br>
1) Must be able to detect if headphones are connected<br>
2) Must be able to process stereo and multichannel (5.1/7.1) formats. I 
need the multichannel formats to perform binaural downmixing to 
stereo. <br>So it is important that I can receive multichannel audio and mix it down to stereo and output it to a stereo soundcard.<br><br>/Kim<br>                                       </body>
</html>