From: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Sample format coversion bug?
Date: Mon, 29 Oct 2007 20:04:15 +0500 [thread overview]
Message-ID: <4725F66F.10805@ums.usu.ru> (raw)
In-Reply-To: <s5hk5p6nveb.wl%tiwai@suse.de>
Takashi Iwai wrote:
> Does your driver support mmap?
>
It looks like the hardware doesn't accept the default parameters:
patrakov@home:~$ arecord -M -f S16_LE -c 2 -r 32000 -D hw:1 /dev/null
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 32000 Hz,
Stereo
ALSA lib pcm_mmap.c:369:(snd_pcm_mmap) mmap failed: Invalid argument
arecord: set_params:961: Unable to install hw params:
ACCESS: MMAP_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 32000
PERIOD_TIME: 125000
PERIOD_SIZE: 4000
PERIOD_BYTES: 16000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 16000
BUFFER_BYTES: 64000
TICK_TIME: 4000
Even though mmap seems to be supported in the driver source (judging
from .info = SNDRV_PCM_INFO_MMAP | other flags), I could not figure out
the parameters that work. Moreover, the driver seems to accept the same
hardware parameters without the mmap, and I could not find parameters
that the driver accepts for mmap.
Also: I have retested my original problem with the virtual ens1370 card
emulated by qemu. The original testcase does work, so the problem seems
to be specific to saa7134, due to non-working mmap access. Could you
please help me transform my observations into something that the v4l
development list will accept as a good bug report?
One more question: since plug doesn't work at all on devices without
mmap available, does this mean that I should scrap my original idea
about using plug to convert everything into S24?
--
Alexander E. Patrakov
next prev parent reply other threads:[~2007-10-29 15:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 13:18 Sample format coversion bug? Alexander E. Patrakov
2007-10-29 8:08 ` Takashi Iwai
2007-10-29 11:01 ` Alexander E. Patrakov
2007-10-29 9:05 ` Takashi Iwai
2007-10-29 11:21 ` Alexander E. Patrakov
2007-10-29 15:04 ` Alexander E. Patrakov [this message]
2007-10-29 18:47 ` Trent Piepho
2007-10-30 16:24 ` mmap support in saa7134-alsa (was: Sample format coversion bug?) Alexander E. Patrakov
2007-10-31 8:34 ` Takashi Iwai
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=4725F66F.10805@ums.usu.ru \
--to=patrakov@ums.usu.ru \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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.