<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div><div>Great! Thanks for reporting back on the solution.</div><div><div>-- </div><div>Darren Hart<span class="Apple-tab-span" style="white-space:pre">                                        </span>Open Source Technology Center</div><div>darren.hart@intel.com<span class="Apple-tab-span" style="white-space:pre">                           </span>            Intel Corporation</div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Robert <<a href="mailto:robertdegruijl@hotmail.com">robertdegruijl@hotmail.com</a>><br><span style="font-weight:bold">Reply-To: </span> MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold">Date: </span> Tuesday, May 13, 2014 at 19:07<br><span style="font-weight:bold">To: </span> MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold">Subject: </span> Re: [MinnowBoard] Audio playback through jack line output<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style><div class="hmmessage"><div dir="ltr">Problem solved: I installed alsa-lib-1.0.9 which provided the required snd_pcm_* functions. Thanks!<br><br><div><hr id="stopSpelling">From: <a href="mailto:robertdegruijl@hotmail.com">robertdegruijl@hotmail.com</a><br>To: <a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a><br>Date: Mon, 12 May 2014 22:04:09 -0700<br>Subject: Re: [MinnowBoard] Audio playback through jack line output<br><br><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style><div dir="ltr">Hey Darren, thanks for your swift reply.<div><br></div><div>The audio HW on the Minnowboard is working, speaker-test and aplay produce audio.</div><div><br></div><div>opkg -list shows that the alsa-utils package is available and installed., no other alsa stuff is available in my Angstrom image.</div><div><br></div><div>/usr/libs also shows I have libasound.so</div><div><br></div><div><br></div><div>But, now to write a c-program sending PCM data to the audio device, I think I need to use functions like snd_pcm_open (according to for example <a href="http://equalarea.com/paul/alsa-audio.html" target="_blank" style="font-size:12pt;">http://equalarea.com/paul/alsa-audio.html</a>) which is defined in <span style="font-size:12pt;">/usr/include/alsa/asoundlib.h, but this file is not part of the Angstrom image I have.</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Do I need to install another alsa related package? Is there an easier way of simply sending 8-bit unsigned PCM to the audio device? (It used to be so easy with OSS ;-)</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Thanks!</span></div><div><br><div>> Date: Mon, 12 May 2014 10:25:57 -0700<br>> From: <a href="mailto:dvhart@linux.intel.com">dvhart@linux.intel.com</a><br>> To: <a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a><br>> Subject: Re: [MinnowBoard] Audio playback through jack line output<br>> <br>> From:  Robert <<a href="mailto:robertdegruijl@hotmail.com">robertdegruijl@hotmail.com</a>><br>> Reply-To:  MinnowBoard Development and Community Discussion<br>> <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br>> Date:  Monday, May 12, 2014 at 10:08<br>> To:  "." <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br>> Subject:  [MinnowBoard] Audio playback through jack line output<br>> <br>> <br>> >Hi<br>> >I'm trying to do basic audio playback through the Minnowboard jack line<br>> >output, using a c-program sending a PCM data to an audio device. Does<br>> >anyone have documentation or tips on how to do this using the standard<br>> >Linux Angstrom image from minnowboard.org?<br>> ><br>> >The only playback device I see is /dev/snd/pcmC0D0p, but opening and<br>> >sending PCM data to this fails (write returns -1).<br>> ><br>> >I cannot find any linux OSS modules (modprobe snd-pcm-oss) in the<br>> >Angstrom distribution to create a /dev/dsp or /dev/audio device<br>> ><br>> >I don't seem to have a full ALSA support either, I don't have<br>> >/usr/include/alsa/asoundlib.h. I only have  /usr/include/sound/asound.h<br>> >which does not have the basic function calls such as snd_pcm_open().<br>> ><br>> >Is there a standard way of PCM audio playback on the Angstrom OS image<br>> >for Minnowboard, or do I need to install additional audio drivers and/or<br>> >ALSA modules?<br>> ><br>> >Thanks!<br>> >                                        <br>> <br>> Hi Robert,<br>> <br>> I believe your question is fundamentally an Alsa programming / Angstrom<br>> question - more than a minnow question (which is fine), but I did want to<br>> confirm that your device is working physically. Do the speakertest and/or<br>> aplay programs successfully send output to the device?<br>> <br>> Koen could say for sure, but typically the headers for packages in<br>> Angstrom or in -dev named versions of the base packages.<br>> <br>> For example, you can use opkg to list the available packages, are there<br>> some alsa -dev package available to install?<br>> <br>> <br>> --<br>> Darren Hart                    Open Source Technology Center<br>> <a href="mailto:darren.hart@intel.com">darren.hart@intel.com</a>              Intel Corporation<br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> elinux-MinnowBoard mailing list<br>> <a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a><br>> <a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a><br></div></div>                                    </div><br>_______________________________________________
elinux-MinnowBoard mailing list
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a></div>                                           </div></div></div>_______________________________________________
elinux-MinnowBoard mailing list
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a>
</blockquote></span></body></html>