Gwyneth Morrison wrote:
> On May 19, 2004 01:01 pm, Clemens Ladisch wrote:
>
> > It's probably some other sample format than I guessed. Could you send
> > me the first thousand bytes or so of this file?
>
> Ok its in small.wav (attached)
Apparently, the data is stored in the upper 24 bits of a 32-bit value,
so S32 would be the correct sample format. Please apply the patch
below and use "-f S32" in all aplay/arecord calls.
Interpreted in S32 format, the recorded data in your file would be:
...
0 0 0 0 0 0 0 0 0 0 0 0
-4424 -8 20 50 36 -125 -1 7 0 0 -5418 -5418
-4351 -52 -36 -54 72 111 -73 51 0 0 -5280 -5280
-4395 96 28 26 -24 -73 31 -45 0 0 -5309 -5309
-4934 -4 4 2 64 99 -29 27 0 0 -5815 -5815
-5358 -24 28 -58 -24 -17 11 -29 0 0 -6668 -6668
-5441 24 -28 66 92 -9 -69 -65 0 0 -6618 -6618
-5884 52 8 -42 -36 31 -29 39 0 0 -7144 -7144
-6203 92 36 -18 120 51 51 23 0 0 -7128 ...
Looks as if recording works OK.
What happens when you start recording and then playing at the same
time?
(Maximum signal value would be +/-8388607, so the DC offset in the
first channel is around 0.07%. Or was there a signal? :-)
> > There are settings for 44.1 and 88.2 kHz; please send me the lsusb
> > output for those, too.
>
> Attached.
Thanks.
> > > Whats your call on the channels, it is supposed to be 10 channel.
> >
> > It always sends 12 channels, which doesn't mean that all of them
> > contain useful data. I guess this device uses an ICE1712 chip which
> > doesn't support any other number of channels.
>
> Ah yes. For some reason aplay doesn't like the 12 channels but one step at a
> time.
It's 10 channels in the playing direction. The ICE1712 has 8 analog
and 2 digital channels in both directions, and has two additional
channels when recording (mixed together from the other channels for
monitoring, or something like that).
HTH
Clemens
--
Index: alsa-kernel/usb/usbquirks.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbquirks.h,v
retrieving revision 1.33
diff -u -r1.33 usbquirks.h
--- alsa-kernel/usb/usbquirks.h 12 May 2004 06:29:22 -0000 1.33
+++ alsa-kernel/usb/usbquirks.h 21 May 2004 08:01:54 -0000
@@ -609,7 +609,7 @@
.ifnum = 1,
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
.data = & (const struct audioformat) {
- .format = SNDRV_PCM_FORMAT_S24,
+ .format = SNDRV_PCM_FORMAT_S32,
.channels = 12,
.iface = 1,
.altsetting = 1,
@@ -626,7 +626,7 @@
.ifnum = 2,
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
.data = & (const struct audioformat) {
- .format = SNDRV_PCM_FORMAT_S24,
+ .format = SNDRV_PCM_FORMAT_S32,
.channels = 10,
.iface = 2,
.altsetting = 1,
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user