From: Takashi Iwai Subject: Re: Call to mmap in ALSA lib 1.0.13 fails in src/pcm/pcm_mmap.c line 367 Date: Thu, 21 Dec 2006 19:00:16 +0100 Message-ID: References: <45880176.3070300@teligy.com> <45898126.3060808@teligy.com> <458AB128.20403@teligy.com> <458ABDCD.2060306@teligy.com> <458AC97B.5040402@teligy.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <458AC97B.5040402@teligy.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: David Cullen Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 21 Dec 2006 12:50:51 -0500, David Cullen wrote: > > Takashi Iwai wrote: > > At Thu, 21 Dec 2006 12:01:01 -0500, > > David Cullen wrote: > >> > >> Dear Mr. Iwai, > >> > >> Takashi Iwai wrote: > >> > As mentioned in the previous mail, it should be like > >> > > >> > pcm.!default { > >> > type plug > >> > slave.pcm { > >> > type hw > >> > card 0 > >> > } > >> > } > >> > >> I put only those lines in my asound.conf file and I still got this > >> output: > >> > >> /etc # speaker-test > >> > >> speaker-test 1.0.13 > >> > >> Playback device is default > >> Stream parameters are 48000Hz, S16_BE, 1 channels > >> Using 16 octaves of pink noise > >> ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unable to > >> find an usable access for 'default' > >> Sample format not available for playback: Invalid argument > >> Setting of hwparams failed: Invalid argument > > > > Does aplay work? > > > > Takashi > > This is what happens when I try aplay: > > /usr/share/sounds/alsa # aplay Noise.wav > Playing WAVE 'Noise.wav' : Signed 16 bit Little Endian, Rate 48000 > Hz, Mono > ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unable to > find an usable access for 'default' > aplay: set_params:929: Channels count non available Hm, this looks like you don't use plug layer? Make sure that you have no ~/.asoundrc file. Then try % aplay -Dplughw foo.wav "plughw" is a standard PCM name defined in /usr/share/cards/alsa.conf, so it should work even without /etc/asound.conf. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV