Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Charbonnel <thomas@undata.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: Patrick Shirkey <pshirkey@boosthardware.com>,
	alsa-devel@lists.sourceforge.net
Subject: Re: hdsp vs 16bit vs dmix
Date: Mon, 26 Jan 2004 13:57:27 +0100	[thread overview]
Message-ID: <40150EB7.8070907@undata.org> (raw)
In-Reply-To: <s5hn08yznzf.wl@alsa2.suse.de>

Takashi Iwai wrote :
>>
>>------
>>  aplay -f cd -D default audio.wav
>>ALSA lib pcm_hw.c:324:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS 
>>failed: Device or resource busy
>>ALSA lib pcm_direct.c:712:(snd_pcm_direct_initialize_slave) unable to 
>>install hw params
>>ALSA lib pcm_dmix.c:827:(snd_pcm_dmix_open) unable to initialize slave
>>aplay: main:502: audio open error: Device or resource busy
> 
> 
> hmm, it's wierd.  -ENODEV ?
> 

Old thread, but I missed it then. Indeed the dmix plugin doesn't play 
nicely with the hdsp.
The above give -ENODEV because if you don't specify 'channels 18' (for a 
multiface) in the dmix slave definition, the way the hw param settings 
is done tries to switch the card to double speed mode (there are less 
channels then, I guess it's closer to the 2 channels requested).
You should have the following in your logs :
cannot change speed mode (capture PID = -1, playback PID = 3888)

Now if you do specify 'channels 18' in the dmix slave definition, the 
error is as follows :
aplay: set_params:827: Sample format non available
I have 'format S32_LE' set in the dmix slave definition, but it doesn't 
seem to be taken into account.

Thomas




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

  parent reply	other threads:[~2004-01-26 12:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07 17:29 hdsp vs 16bit vs dmix Patrick Shirkey
2004-01-08 11:19 ` Takashi Iwai
2004-01-08 11:16   ` Jaroslav Kysela
2004-01-08 15:49   ` Patrick Shirkey
2004-01-08 16:05     ` Takashi Iwai
2004-01-12 14:01     ` Justin Cormack
2004-01-13  9:24       ` Patrick Shirkey
2004-01-26 12:57   ` Thomas Charbonnel [this message]
2004-01-26 13:15     ` Jaroslav Kysela
2004-01-26 14:10       ` Thomas Charbonnel

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=40150EB7.8070907@undata.org \
    --to=thomas@undata.org \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=pshirkey@boosthardware.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox