ALSA audio with em8300

View: New views
6 Messages — Rating Filter:   Alert me  

ALSA audio with em8300

by Jonathan Young-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am having problems getting audio to come out of my Hollywood+. I am
using openSuSE 10.3 and vdr (1.4.7)

I have compiled and installed your program (0.16.4) and the video works
without any problem but I can't get any audio. I have tried many things to
get it working such as: dxr3config, manually adding sound_driver=oss or
sound_driver_alsa to the /etc/modprobe.d/em8300 script and checking both
the analog and digital outputs but without any success.

I would be very grateful for any pointers you can give me. Here is what I
have found.

1. Executing: mpg123 -a /dev/em8300_ma-0 /media/DESTINY.wav
produces:
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM /dev/em8300_ma-0
[alsa.c:144] error: cannot open device /dev/em8300_ma-0
[audio.c:505] error: failed to open audio device
[mpg123.c:666] error: Failed to initialize output, goodbye.


2. Should I be using ALSA or OSS? /etc/modprobe.d/em8300 contains:
#configuration for adv717x bt865 em8300, generated by dxr3config 0.3.4
#chip-parameterset: 2
alias char-major-121 em8300
install em8300 /sbin/modprobe adv717x && /sbin/modprobe --ignore-install
em8300
remove em8300 /sbin/modprobe -r --ignore-remove em8300 && /sbin/modprobe
-r adv717x
options adv717x pixelport_16bit=0 pixelport_other_pal=0
options em8300 dicom_fix=1 dicom_control=1 dicom_other_pal=0 audio_driver=oss


3. dxr3config says "No dxr3-EEprom found" but the video output is fine.
Should I be worried about this?

Regards,

Jonathan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel

Re: ALSA audio with em8300

by Nicolas Boullis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tue, Feb 12, 2008 at 12:25:35AM -0000, Jonathan Young wrote:

> I am having problems getting audio to come out of my Hollywood+. I am
> using openSuSE 10.3 and vdr (1.4.7)
>
> I have compiled and installed your program (0.16.4) and the video works
> without any problem but I can't get any audio. I have tried many things to
> get it working such as: dxr3config, manually adding sound_driver=oss or
> sound_driver_alsa to the /etc/modprobe.d/em8300 script and checking both
> the analog and digital outputs but without any success.
>
> I would be very grateful for any pointers you can give me. Here is what I
> have found.

All this is hard to tell. More information is needed.
What version of the kernel are you using?
What are the build options of the kernel? (See /proc/config.gz if
available.)
Are you using udev or a static /dev?

And more em8300-related:

If you load the em8300 module with "sound_driver=alsa", what do you have
in /proc/asound/cards?
And what do you have in /sys/class/em8300/em8300-0/device/?


Cheers,

Nicolas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel

Re: ALSA audio with em8300

by Jonathan Young-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nicolas,

Thanks very much for getting back to me. Here are some answers:

> What version of the kernel are you using?

2.6.22.16-0.2-default (it's openSuSE 10.3)

> What are the build options of the kernel? (See /proc/config.gz if
> available.)

I have not changed the default build options for the kernel and have
attached a copy of my /proc/config.gz

> Are you using udev or a static /dev?

I am using udev (I think) 'mount' gives me udev on /dev type tmpfs (rw)

> And more em8300-related:
>
> If you load the em8300 module with "sound_driver=alsa", what do you have
> in /proc/asound/cards?

 0 [EM8300         ]: EM8300 - Sigma Designs' EM8300
                      Sigma Designs' EM8300


> And what do you have in /sys/class/em8300/em8300-0/device/?

This is a directory: ls /sys/class/em8300/em8300-0/device/
total 0
0 driver@     0 sound/                0 enable      0 model      0 zoom  
  0 device            0 vendor  0 i2c-adapter/
0 encoder@    0 broken_parity_status  0 local_cpus  0 msi_bus    0 irq    
  0 subsystem_device  0 uevent  0 power/
0 subsystem@  0 config                0 modalias    0 resource0  0
resource  0 subsystem_vendor  0 class

I hope this helps. From my limited knowledge, it looks like it is very
close to working. Once again, thanks for the help!

Jonathan

> Hi,
>
> On Tue, Feb 12, 2008 at 12:25:35AM -0000, Jonathan Young wrote:
>> I am having problems getting audio to come out of my Hollywood+. I am
>> using openSuSE 10.3 and vdr (1.4.7)
>>
>> I have compiled and installed your program (0.16.4) and the video works
>> without any problem but I can't get any audio. I have tried many things
>> to
>> get it working such as: dxr3config, manually adding sound_driver=oss or
>> sound_driver_alsa to the /etc/modprobe.d/em8300 script and checking both
>> the analog and digital outputs but without any success.
>>
>> I would be very grateful for any pointers you can give me. Here is what
>> I
>> have found.
>
> All this is hard to tell. More information is needed.
> What version of the kernel are you using?
> What are the build options of the kernel? (See /proc/config.gz if
> available.)
> Are you using udev or a static /dev?
>
> And more em8300-related:
>
> If you load the em8300 module with "sound_driver=alsa", what do you have
> in /proc/asound/cards?
> And what do you have in /sys/class/em8300/em8300-0/device/?
>
>
> Cheers,
>
> Nicolas
>

============================================
Jonathan Young
webmail
Telic:- directed to a definite end from
telikos meaning final
============================================

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel

config.gz (28K) Download Attachment

Re: ALSA audio with em8300

by Nicolas Boullis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Mon, Feb 25, 2008 at 08:04:29PM -0000, Jonathan Young wrote:
>
> I have not changed the default build options for the kernel and have
> attached a copy of my /proc/config.gz

Looks fine, at first sight.


> > If you load the em8300 module with "sound_driver=alsa", what do you have
> > in /proc/asound/cards?
>
>  0 [EM8300         ]: EM8300 - Sigma Designs' EM8300
>                       Sigma Designs' EM8300

Looks fine; ALSA sould work.
Still with "sound_driver=alsa", does "mpg123 -o alsa -a default:EM8300
yourfile.mp3" work fine?


> This is a directory: ls /sys/class/em8300/em8300-0/device/
> total 0
> 0 driver@     0 sound/                0 enable      0 model      0 zoom  
>   0 device            0 vendor  0 i2c-adapter/
> 0 encoder@    0 broken_parity_status  0 local_cpus  0 msi_bus    0 irq    
>   0 subsystem_device  0 uevent  0 power/
> 0 subsystem@  0 config                0 modalias    0 resource0  0
> resource  0 subsystem_vendor  0 class

Hmmm... As far as I can see, it seems to be missing some files. With
"sound_driver=osslike", what do you have in /sys/class/em8300/ and
/sys/class/em8300/em8300-0/?


Cheers,

Nicolas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel

Re: ALSA audio with em8300

by Jonathan Young-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nicolas,

Sorry for the delay.

I am little confused; shouldn't the modprobe line be audio_driver=alsa
rather than sound_driver=alsa? I have tried both but it doesn't seem to
make much difference. I can't get audio to work with my dxr3 using any of
oss,osslike or alsa.


> Looks fine; ALSA sould work.
> Still with "sound_driver=alsa", does "mpg123 -o alsa -a default:EM8300
> yourfile.mp3" work fine?
>

No. Here is the output:

mpg123 -o alsa -a default:EM8300 /music/Dance/Funky/Cameo\ -\ Word\ Up.mp3
ALSA lib confmisc.c:768:(parse_card) cannot find card 'EM8300'
ALSA lib conf.c:3510:(_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:3510:(_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:3510:(_snd_config_evaluate) function snd_func_refer
returned error: No such device
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default:EM8300
[alsa.c:144] error: cannot open device default:EM8300
[audio.c:505] error: failed to open audio device
[mpg123.c:666] error: Failed to initialize output, goodbye.


> Hmmm... As far as I can see, it seems to be missing some files. With
> "sound_driver=osslike", what do you have in /sys/class/em8300/ and
> /sys/class/em8300/em8300-0/?
>

/root# ls /sys/class/em8300/
total 0
0 em8300-0/

/root# ls /sys/class/em8300/em8300-0/
total 0
0 dev  0 device@  0 subsystem@  0 uevent  0 em8300_ma-0/  0 em8300_mv-0/
0 em8300_sp-0/

Best Regards,

Jonathan

> Hi,
>
> On Mon, Feb 25, 2008 at 08:04:29PM -0000, Jonathan Young wrote:
>>
>> I have not changed the default build options for the kernel and have
>> attached a copy of my /proc/config.gz
>
> Looks fine, at first sight.
>
>
>> > If you load the em8300 module with "sound_driver=alsa", what do you
>> have
>> > in /proc/asound/cards?
>>
>>  0 [EM8300         ]: EM8300 - Sigma Designs' EM8300
>>                       Sigma Designs' EM8300
>
> Looks fine; ALSA sould work.
> Still with "sound_driver=alsa", does "mpg123 -o alsa -a default:EM8300
> yourfile.mp3" work fine?
>
>
>> This is a directory: ls /sys/class/em8300/em8300-0/device/
>> total 0
>> 0 driver@     0 sound/                0 enable      0 model      0 zoom
>>   0 device            0 vendor  0 i2c-adapter/
>> 0 encoder@    0 broken_parity_status  0 local_cpus  0 msi_bus    0 irq
>>   0 subsystem_device  0 uevent  0 power/
>> 0 subsystem@  0 config                0 modalias    0 resource0  0
>> resource  0 subsystem_vendor  0 class
>
> Hmmm... As far as I can see, it seems to be missing some files. With
> "sound_driver=osslike", what do you have in /sys/class/em8300/ and
> /sys/class/em8300/em8300-0/?
>
>
> Cheers,
>
> Nicolas
>

============================================
Jonathan Young
webmail
============================================


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel

Re: ALSA audio with em8300

by Nicolas Boullis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Mon, Mar 03, 2008 at 10:38:11PM -0000, Jonathan Young wrote:
> Nicolas,
>
> Sorry for the delay.
>
> I am little confused; shouldn't the modprobe line be audio_driver=alsa
> rather than sound_driver=alsa?

You're quite right, this is audio_driver instead of sound_driver.


> I have tried both but it doesn't seem to
> make much difference. I can't get audio to work with my dxr3 using any of
> oss,osslike or alsa.
>
>
> > Looks fine; ALSA sould work.
> > Still with "sound_driver=alsa", does "mpg123 -o alsa -a default:EM8300
> > yourfile.mp3" work fine?
> >
>
> No. Here is the output:
>
> mpg123 -o alsa -a default:EM8300 /music/Dance/Funky/Cameo\ -\ Word\ Up.mp3
> ALSA lib confmisc.c:768:(parse_card) cannot find card 'EM8300'
> ALSA lib conf.c:3510:(_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:3510:(_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:3510:(_snd_config_evaluate) function snd_func_refer
> returned error: No such device
> ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default:EM8300
> [alsa.c:144] error: cannot open device default:EM8300
> [audio.c:505] error: failed to open audio device
> [mpg123.c:666] error: Failed to initialize output, goodbye.

Do you have the EM8300.conf alsa configuration file installed?
Note that it is supposed to be installed at the good place if you run
"./configure; make; make install" from the tarball's toplevel directory.
If it still does not work, you might try to replace "default:EM8300"
with "default:0" or simply "default" as it is your only "sound card".

>
>
> > Hmmm... As far as I can see, it seems to be missing some files. With
> > "sound_driver=osslike", what do you have in /sys/class/em8300/ and
> > /sys/class/em8300/em8300-0/?
> >
>
> /root# ls /sys/class/em8300/
> total 0
> 0 em8300-0/
>
> /root# ls /sys/class/em8300/em8300-0/
> total 0
> 0 dev  0 device@  0 subsystem@  0 uevent  0 em8300_ma-0/  0 em8300_mv-0/
> 0 em8300_sp-0/

Looks fine as well. Have you tried "mpg123 -o oss -a /dev/em8300_ma-0
yourfile.mp3"?


Cheers,

Nicolas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dxr3-devel mailing list
Dxr3-devel@...
https://lists.sourceforge.net/lists/listinfo/dxr3-devel