From: Patrick Shirkey <pshirkey@boosthardware.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: usb quattro not recording
Date: Thu, 05 Dec 2002 11:42:04 +0900 [thread overview]
Message-ID: <3DEEBCFC.4060707@boosthardware.com> (raw)
In-Reply-To: 3DED1A7F.40807@boosthardware.com
Patrick Shirkey wrote:
> Patrick Shirkey wrote:
>
>> Much to my surprise the quattro has stopped being able to record with
>> cvs from Nov 27 2002 and also a fresh checkout today.
>>
>
> It's definitely broken as going back to the 18 November works.
>
After doing more testing it seems that the quattro requires that *both*
pcms are initialised with the qinit util. Can someone tell me how to
modify this so that hw:0,0 and hw:0,1 are both accessed please?
---------
/* program to prime an alsa device without sending data
Save as qinit.c and compile with:
gcc -o qinit qinit.c -lasound -ldl -lm
*/
#include <alsa/asoundlib.h>
int main()
{
snd_pcm_t *pcm;
int err;
snd_pcm_hw_params_t *hw;
printf("Initialising quattro\n");
err = snd_pcm_open(&pcm, "hw:0,0", SND_PCM_STREAM_PLAYBACK, 0);
snd_pcm_hw_params_alloca(&hw);
err = snd_pcm_hw_params_any(pcm, hw);
err = snd_pcm_hw_params_set_access(pcm, hw,
SND_PCM_ACCESS_RW_INTERLEAVED);
err = snd_pcm_hw_params_set_format(pcm, hw, SND_PCM_FORMAT_S16_LE);
err = snd_pcm_hw_params_set_rate(pcm, hw, 48000, 0);
err = snd_pcm_hw_params_set_channels(pcm, hw, 2);
err = snd_pcm_hw_params_set_period_size(pcm, hw, 512, 0);
err = snd_pcm_hw_params_set_buffer_size(pcm, hw, 1024);
err = snd_pcm_hw_params(pcm, hw);
return err;
}
-----------
--
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================
Being on stage with the band in front of crowds shouting, "Get off! No!
We want normal music!", I think that was more like acting than anything
I've ever done.
Goldie, 8 Nov, 2002
The Scotsman
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
next prev parent reply other threads:[~2002-12-05 2:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20021201105428.2afa833d.jean-marc.harang@laposte.net>
2002-12-02 8:33 ` [Alsa-user] chipset CX5530 Clemens Ladisch
2002-12-02 8:56 ` Takashi Iwai
2002-12-02 9:11 ` Alamy Liu
2002-12-02 10:50 ` Takashi Iwai
2002-12-02 16:17 ` Patrick Shirkey
2002-12-02 17:24 ` usb quattro not recording Patrick Shirkey
2002-12-03 20:56 ` Patrick Shirkey
2002-12-05 2:42 ` Patrick Shirkey [this message]
2002-12-02 18:35 ` Part 2 (Re: [Alsa-user] chipset CX5530) 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=3DEEBCFC.4060707@boosthardware.com \
--to=pshirkey@boosthardware.com \
--cc=alsa-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox