[maemo-developers] portaudio (again)

From: Stefan Kost ensonic at hora-obscura.de
Date: Mon Aug 18 17:06:37 EEST 2008
hi,

could you please reply to the list?

Chris Dobbs schrieb:
> Hi Stefan,
> Yes, I have realised OSS is not there now.
> If alsa is available , why do I only see the ctrl device for alsa :
>
> Nokia-N800-44-4:~# ls /dev/snd
> controlC0
>   
Because its an io plugin. It routes audio to the dsp. There is no full
fledged alsa driver.
Have a look at /proc/asound/ for more audio system info. Also consider
usingHAL if you want to lookup the audio-device.

Stefan
> I would have expected to see something along the lines of
> dobbscr at viggo:/usr/dev$ ls /dev/snd
> controlC0  controlC1  controlC2  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D2c
> pcmC0D3c  pcmC0D4p  pcmC1D0c  pcmC1D0p  pcmC2D0c  seq  timer
> do
>
>
> Is there something I have to do to load this alsa io module as I cant find
> any reference to it?
>
> Thansk,
> -Chris
>
> ----- Original Message -----
> From: "Stefan Kost" <ensonic at hora-obscura.de>
> To: "Chris Dobbs" <chris_dobbs at dobbscr.karoo.co.uk>
> Cc: <maemo-developers at maemo.org>
> Sent: Sunday, August 17, 2008 12:21 PM
> Subject: Re: portaudio (again)
>
>
>   
>> Hi,
>>
>> Chris Dobbs schrieb:
>>     
>>> Hi all,
>>> I am trying to get portaudio working on the N800. I can compile and
>>> build everything ok but when I try to run the pa test programs on the
>>> N800 I get things this:
>>>
>>>
>>> Nokia-N800-44-4:~# ./pa_devs-v19
>>> Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &temp )' failed in
>>> 'src/hostapi/oss/pa_unix_oss.c', line: 405
>>> Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &temp )' failed in
>>> 'src/hostapi/oss/pa_unix_oss.c', line: 405
>>> PortAudio version number = 1899
>>> PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
>>> Number of devices = 0
>>> ----------------------------------------------
>>>
>>> I realised early on that PA used /dev/dsp so I did "ln -s
>>> /dev/dsptask/pcm1 /dev/dsp"
>>>       
>> Don't do that. There is no OSS. There is alsa in the form of an alsa io
>>     
> plugin
>   
>> that talks to the DSP.
>>
>>     
>>> I have tried various others but to no avail, can anyone help I know PA
>>> supports OSS and ALSA which are both installed on the N800, although I
>>> think esd is the default driver.
>>>       
>> Esd is there for compatibillity reasons. Default linux audio (low level)
>>     
> api is
>   
>> alsa. For highlevel apis there is esound and gstreamer.
>>
>> Stefan
>>
>>     
>>> -Chris
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers at maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>       
>
>   


More information about the maemo-developers mailing list