Skip to contentSkip to conversation

Building my driver

DISCUSSION Adrian McMenamin 1 participant 1 message Feb 7, 2006

lore
Share & tools
lore
#0 lore raw

I have got alsa-lib and the alsa-utils built and installed on my Dreamcast and want to test my driver code (at
http://newgolddream.dyndns.info/repos) (I know it won't work but I want to see that it is calling the right code and so on).

I have no .asoundrc or alsa.conf so I use this:

aplay -D hw:0,0 /etc/fstab

Just to test - but I get this output

aplay: pcm.c: 2119: snd_pcm_open: Assertion `pcmp && name' failed. Aborted

I am just not sure why this assertion is likely to fail

Quoted 1 line

From the files:

http://newgolddream.dyndns.info/lxr/source/alsa_lib/src/pcm/pcm.c#2115

2108  * \brief Opens a PCM
2109  * \param pcmp Returned PCM handle
2110  * \param name ASCII identifier of the PCM handle
2111  * \param stream Wanted stream
2112  * \param mode Open mode (see #SND_PCM_NONBLOCK, #SND_PCM_ASYNC)
2113  * \return 0 on success otherwise a negative error code
2114  */
2115 int snd_pcm_open(snd_pcm_t **pcmp, const char *name, 
2116                  snd_pcm_stream_t stream, int mode)
2117 {
2118         int err;
2119         assert(pcmp && name);
2120         err = snd_config_update();
2121         if (err < 0)

2122 return err;
2123 return snd_pcm_open_noupdate(pcmp, snd_config, name, stream, mode);
2124 }

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642