On 8/9/2013 2:49 PM, Lonnie Abelbeck wrote: >> On Aug 9, 2013, at 1:13 PM, Michael Keuter wrote: >> >>> Am 09.08.2013 um 19:47 schrieb Lonnie Abelbeck <li...@lonnie.abelbeck.com>: >>> >>>> Hi Dan, >>>> >>>> I have never done this, but I'll guess... >>>> >>>> On my Jetway NF99FL-525, I did a "lspci -v" to find the audio driver... >>>> >>>> 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio >>>> Controller (rev 02) >>>> Subsystem: Jetway Information Co., Ltd. Device 1705 >>>> Kernel modules: snd-hda-intel >>>> >>>> $ modprobe snd-hda-intel >>>> >>>> Then load PCM OSS emulation for ALSA >>>> >>>> $ modprobe snd-pcm-oss >>>> >>>> (add snd-hda-intel and snd-pcm-oss to /etc/rc.modules to make it >>>> persistent if it works) >>>> >>>> pbx ~ # lsmod | grep snd >>>> snd_pcm_oss 25129 0 >>>> snd_mixer_oss 8785 1 snd_pcm_oss >>>> snd_hda_codec_via 35196 1 >>>> snd_hda_intel 14748 0 >>>> snd_hda_codec 42110 2 snd_hda_codec_via,snd_hda_intel >>>> snd_pcm 42169 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec >>>> snd_timer 11110 1 snd_pcm >>>> snd 30407 7 >>>> snd_pcm_oss,snd_mixer_oss,snd_hda_codec_via,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer >>>> soundcore 3396 1 snd >>>> snd_page_alloc 4717 2 snd_hda_intel,snd_pcm >>>> >>>> pbx ~ # ls -l /dev/dsp >>>> crw-rw---- 1 root audio 14, 3 Aug 9 12:33 /dev/dsp >>>> >>>> Then check "/etc/asterisk/modules.conf" to see of chan_oss.so is not >>>> noload'ed (ie. is loaded). >>>> >>>> Hope that helps a little. >>>> >>>> Lonnie >>>> >>>> >>>> On Aug 9, 2013, at 11:59 AM, Dan Ryson wrote: >>>> >>>>> All, >>>>> >>>>> We're trying to enable live music-on-hold from an AstLinux sound card >>>>> line-input. I spent the morning researching how to do this, found many >>>>> suggested approaches, but have yet to get this working in a standard >>>>> AstLinux environment. >>>>> >>>>> This is for a radio station client that pays royalty fees for music and >>>>> programming and prefers to use that for MoH in lieu of the default, >>>>> royalty-free music files. >>>>> >>>>> Most approaches I've seen depend on sox or arecord. Sox is present in >>>>> the standard build, supports ossdsp, but requires a /dev/dsp device that >>>>> I don't see. Arecord doesn't appear to be included and apparently >>>>> requires use of the alsamixer utility to select "line in" as the >>>>> appropriate source. Also, while /stat/dev/audio exists, I don't see >>>>> such a device in /dev. >>>>> >>>>> As always, any clues would be greatly appreciated. >>>>> >>>>> Dan >>> Here is a nice tutorial, but we are missing the "alsamixer" command: >>> >>> http://community.spiceworks.com/how_to/show/19088-use-soundcard-line-in-for-asterisk-music-on-hold >>> >>> Michael >> Yes, but note #4 can be skipped as udev adds /dev/snd/ automatically for us. >> >> Hopefully Dan doesn't need 'alsamixer', seems they are only using it to set >> the defaults, possibly there is another way if required. >> >> It seems the file "/proc/asound/card0/oss_mixer" is the magic... >> >> https://github.com/opensrc/alsa/blob/master/Mapping_oss_mixer_controls_to_alsa_mixer.md >> >> Also, look at: >> https://wiki.debian.org/DebianEeePC/HowTo/Sound#ALSA_OSS >> >> Lonnie > Thanks a million, all. I'll give this a try and report results. > > Dan >
I followed the steps recommended by Lonnie and everything worked as expected. I now have a /dev/dsp as well as persistent snd-hda-intel & snd-pcm-oss, which are appropriate for the sound card. I then proceeded using the tutorial suggested by Michael and, as expected, the initial part worked perfectly. However, I suspect I'm stumped by inability to enable the line-in jack. For whatever reason, I'm just hearing silence on hold. In hours of searching, I'm finding that ALSA channels are muted by default so this may explain the "nothing" that I'm hearing. Perhaps an alternative to alsamixer is in order. The oss_mixer file exists but, despite a great deal of searching and reading, is still a bit of a mystery. Perhaps the fog will clear over the weekend. Thank you again for all the help! Dan ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.