All of lore.kernel.org
 help / color / mirror / Atom feed
* PDAudioCF questions
@ 2003-08-14 12:54 Dave Phillips
  2003-08-14 13:59 ` Erik de Castro Lopo
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Phillips @ 2003-08-14 12:54 UTC (permalink / raw)
  To: ALSA Dev

Greetings:

  I'm testing the Core Sound PDAudioCF card on a laptop, an Omnibook
4150, using a CF-to-PCMCIA adapter. The card appears to initialize
correctly, and 'cat /proc/asound/cards' tells me this:

	0 [PDAudioCF      ]: PDAudio-CF - Core Sound PDAudio-CF
        	             Core Sound PDAudio-CF at 0x100, irq 11

'ls /proc/asound/card0' yields this information:

	dlphilp@localhost:~$ ls /proc/asound/card0/
	id  oss_mixer  pcm0c

where 'pcm0c' is a subdirectory and oss_mixer simply lists mixer
elements. However, I've been unable to invoke a mixer for the card. That
might be why I receive the following error trying to use arecord:

	dlphilp@localhost:~$ arecord -Dhw:PDAudioCF -f cd
	RIFF$ÿÿWAVEfmt o`aD¬o±acodataÿÿRecording WAVE 'stdout' : Signed 16 bit
Little Endian, Rate 44100 Hz, Stereo
	arecord: pcm_read:1110: read error: Input/output error

  The test is done with ALSA 0.9.6 under kernel 2.4.18. If anyone else
is working with this card I'd like to hear about your success/failure,
particularly if you've used it on a laptop (not a PDA). I'll also check
the archives for previous messages about this card. TIA!

Best regards,

== Dave Phillips

	The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm
	The Linux Soundapps Site at http://linux-sound.org


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PDAudioCF questions
  2003-08-14 12:54 PDAudioCF questions Dave Phillips
@ 2003-08-14 13:59 ` Erik de Castro Lopo
  0 siblings, 0 replies; 2+ messages in thread
From: Erik de Castro Lopo @ 2003-08-14 13:59 UTC (permalink / raw)
  To: alsa-devel

On Thu, 14 Aug 2003 07:54:23 -0500
Dave Phillips <dlphilp@bright.net> wrote:

> Greetings:
> 
>   I'm testing the Core Sound PDAudioCF card on a laptop, an Omnibook
> 4150, using a CF-to-PCMCIA adapter. The card appears to initialize
> correctly, and 'cat /proc/asound/cards' tells me this:
> 
> 	0 [PDAudioCF      ]: PDAudio-CF - Core Sound PDAudio-CF
>         	             Core Sound PDAudio-CF at 0x100, irq 11
> 
> 'ls /proc/asound/card0' yields this information:
> 
> 	dlphilp@localhost:~$ ls /proc/asound/card0/
> 	id  oss_mixer  pcm0c
> 
> where 'pcm0c' is a subdirectory and oss_mixer simply lists mixer
> elements. However, I've been unable to invoke a mixer for the card. That
> might be why I receive the following error trying to use arecord:
> 
> 	dlphilp@localhost:~$ arecord -Dhw:PDAudioCF -f cd
> 	RIFF$ÿÿWAVEfmt o`aD¬o±acodataÿÿRecording WAVE 'stdout' : Signed 16 bit
> Little Endian, Rate 44100 Hz, Stereo
> 	arecord: pcm_read:1110: read error: Input/output error

Hi Dave,

Do you have a digital input connected? The thing that makes digital inputs
different from analogue ones is that they need to synch to the serial input
stream. For the PDAudioCF, this means that you need to tell it the input
sample rate. You can find this out by doing:

     amixer -c PDAudioCF cget iface=PCM,name='IEC958 External Rate'

which will give you the sample rate if you have an input connected or 0
if no input is connected. 

Once you know the input sample rate you should do one of these:

    arecord -Dhw:PDAudioCF -r <rate> -f cd file.wav
    arecord -Dhw:PDAudioCF -r <rate> -f cd >/dev/null

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
Everything that I've learned about computers I have boiled 
down into three principles:
  PC/Windows: You think it won't work, and it won't.
  Macintosh: You think it will work, but it won't.
  Unix: You think it won't work, but if you find the right 
        guru, you can make it work.


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-14 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14 12:54 PDAudioCF questions Dave Phillips
2003-08-14 13:59 ` Erik de Castro Lopo

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.