From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: usb quattro Date: Wed, 04 Sep 2002 17:47:50 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3D761979.5050707@boosthardware.com> <3D761DED.2020108@boosthardware.com> <3D76262D.7050801@boosthardware.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3D76262D.7050801@boosthardware.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Patrick Shirkey Cc: Takashi Iwai , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 05 Sep 2002 00:26:37 +0900, Patrick Shirkey wrote: > > Takashi Iwai wrote: > > I changed it to this (very small change). > > > > > well, just write a few codes... > > > > #include > > > > int main() > > { > > snd_pcm_t *pcm; > > int err; > > snd_pcm_hw_params_t hw; <<<<---- oops, snd_pcm_hw_params_t *hw; and... > > > > err = snd_pcm_open(&pcm, "hw:2,1", 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, 0); <<<<---- err = snd_pcm_hw_params_set_buffer_size(pcm, hw, 1024); > > err = snd_pcm_hw_params(pcm, hw); > > return err; > > } Takashi ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390