« Return to Thread: [Christmas] Both ALSA and OSS sound devices

Re: [Christmas] Both ALSA and OSS sound devices

by Jan Willies :: Rate this Message:

Reply to Author | View in Thread

Hi Nicolas,

Nicolas Boullis schrieb:

> On Fri, Jan 02, 2009 at 12:11:37PM +0100, Jan Willies wrote:
>> but I can't get ALSA to work. I can't use alsaplayer or
>> alsamixer:
>>
>> [jan@server em8300-nboullis]$ alsamixer
>> alsamixer: function snd_ctl_open failed for default: No such file or
>> directory
>
> Hmmm...
> Did you use the ALSA-style audio device of the em8300 driver before?

Nope, I've always used OSS (because of vdr-plugin-dxr3) although I
remember I tried it some month ago:
http://thread.gmane.org/gmane.linux.alsa.devel/51290/focus=2270

I could hear sound through the analog jack but not via optical back then.

> The EM8300 chip has no hardware volume control so alsamixer is not
> expected to find anything...
> Well, not exacly in fact: if you have /usr/share/alsa/cards/EM8300.conf
> installed (or wherever you preferred distro puts its ALSA configuration
> files), you'll have software-emulated volume control. But unless I'm
> mistaken, it requires that the PCM device is open (or has been opened).

/usr/share/alsa/cards/EM8300.conf is in place.

> What if you try to play some sound with
>   aplay -D default:CARD=EM8300
> ? (I hope the syntax is good, I'm still away from my H+ and DXR3
> boards...)

[jan@server modules]$ LANG=C aplay -D default:CARD=EM8300
ALSA lib confmisc.c:768:(parse_card) cannot find card 'EM8300'
ALSA lib conf.c:3513:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat
returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer
returned error: No such device
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default:CARD=EM8300
aplay: main:590: audio open error: No such device

[jan@server modules]$ aplay -lL
aplay: device_list:217: no soundcards found...

[jan@server modules]$ LANG=C alsaplayer --verbose -o alsa -d plughw:0,0
bla.mp3
AlsaPlayer 0.99.80
(C) 1999-2004 Andy Lo A Foe <andy@...> and others.
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
snd_pcm_open: No such file or directory (plughw:0,0)
Failed to initialize plugin!
Failed to register plugin: /usr/lib/alsaplayer/output/libalsa_out.so
Failed to load output plugin "alsa". Trying defaults.
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
snd_pcm_open: No such file or directory (plughw:0,0)
Failed to initialize plugin!
/usr/lib/alsaplayer/output/libalsa_out.so failed to load

[jan@server modules]$ cat /proc/asound/devices
   0: [ 0]   : control
   1:        : sequencer
  16: [ 0- 0]: digital audio playback
  17: [ 0- 1]: digital audio playback
  33:        : timer

>> Jan  2 12:03:21 server Sigma Designs EM8300 0000:02:05.0: PCI INT A ->
>> GSI 17 (level, low) -> IRQ 17
>> Jan  2 12:03:21 server em8300-0: EM8300 8300 (rev 2) <6>bus: 2, devfn:
>> 40, irq: 17, <6>memory: 0xf4100000.
>> Jan  2 12:03:21 server em8300-0: mapped-memory at 0xd0f80000
>> Jan  2 12:03:21 server em8300-0: using MTRR
>> Jan  2 12:03:21 server i2c-adapter i2c-5: sendbytes: NAK bailout.
>
> Hmmm... Also that's unreated to sound, this is an interesting
> information: it seems that your EEPROM chip did not acknowledge the i2c
> communication... :-/

It's not always that I get these NAK bailout messages.


regards

- jan

------------------------------------------------------------------------------
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel

 « Return to Thread: [Christmas] Both ALSA and OSS sound devices