From: "Günther Montag" <Safari.Doktor@addcom.de>
To: alsa-devel@lists.sourceforge.net, hfterm-hackers@lists.sourceforge.net
Subject: Re: [Hfterm-hackers] Re: env LD_PRELOAD=/usr/lib/libaoss.so ....
Date: Tue, 21 Oct 2003 13:56:27 +0200 [thread overview]
Message-ID: <200310211356.27457.Safari.Doktor@addcom.de> (raw)
In-Reply-To: <s5hr81df7n5.wl@alsa2.suse.de>
Hallo Takashi!
> >
> > > ~/.asoundrc. simply add
> > >
> > > pcm.dsp0 pcm.default
> >
> > Thanks! It helped one step more!
> > Now:
> > ***
> > hfkernel[1488]: hfkernel 0.4.2 starting...
> > hfkernel[1488]: Your soundcard is full duplex capable.
> > Good; the reference time will be
> > derived from the sample clock, which should be accurate within +-20ppm.
> > So I hope your soundcard uses 'real' crystals instead of cheap ceramic
> > resonators. Adjust the clock with the soundcard correction factor.
> > ALSA lib pcm_plug.c:727:(snd_pcm_plug_hw_refine_schange) Unable to find
> > an usable access for 'dsp0'
> > hfkernel[1488]: error: probe_oss: mmap: ibuf: PROT_READ: Invalid argument
>
> hmm, how about the following?
>
> pcm.dsp0 {
> type hw
> card 0
> }
>
Oh, one step on!
Now no error any more from the ALSA lib,
but still it says.
hfkernel[1488]: error: probe_oss: mmap: ibuf: PROT_READ: Invalid argument
this comes from last line of following snip:
***
/*
* set fragment sizes
*/
apar = 0xffff0007U;
if (ioctl(fd_audio, SNDCTL_DSP_SETFRAGMENT, &apar) == -1)
errstr(SEV_FATAL, "ioctl: SNDCTL_DSP_SETFRAGMENT");
if (ioctl(fd_audio, SNDCTL_DSP_GETOSPACE, &oinfo) == -1)
errstr(SEV_FATAL, "ioctl: SNDCTL_DSP_GETOSPACE");
osize = oinfo.fragstotal * oinfo.fragsize;
if (ioctl(fd_audio, SNDCTL_DSP_GETISPACE, &iinfo) == -1)
errstr(SEV_FATAL, "ioctl: SNDCTL_DSP_GETISPACE");
isize = iinfo.fragstotal * iinfo.fragsize;
if (EXCESS_FRAGS * iinfo.fragsize > pagesize)
errprintf(SEV_FATAL, "OSS: input: fragment size %d times excess frags > page
size %d\n",
iinfo.fragsize, pagesize);
/*
* mmap buffers
*
* BSD people attention: you may need to uncomment the PROT_READ
* feedback welcome: sailer@ife.ee.ethz.ch
*/
if ((ibuf.v = mmap(NULL, isize, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_PRIVATE, -1, 0)) == MAP_FAILED)
errstr(SEV_FATAL, "mmap: MAP_ANONYMOUS");
ibuf_ext = ibuf.v + isize;
if (munmap(ibuf.v, isize))
errstr(SEV_FATAL, "munmap: MAP_ANONYMOUS");
if ((ibuf.v = mmap(ibuf.v, isize, PROT_READ, MAP_FILE
| MAP_SHARED | MAP_FIXED,
fd_audio, 0)) == MAP_FAILED)
***
so i suppose something wrong with "isize"
only with ESS1938, it works with other cards.
Not-linear physical buffer in the card?
Do You know some hint, some trick out of ALSA API, how to "wrap" mmap?
günther
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
prev parent reply other threads:[~2003-10-21 11:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 12:13 env LD_PRELOAD=/usr/lib/libaoss.so Günther Montag
2003-10-16 13:10 ` Takashi Iwai
2003-10-16 15:56 ` Dr. med. Günther Montag
2003-10-16 16:51 ` Takashi Iwai
2003-10-21 11:56 ` Günther Montag [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200310211356.27457.Safari.Doktor@addcom.de \
--to=safari.doktor@addcom.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=hfterm-hackers@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.