Author Topic: Sound Card Problem: Must Be 44.1khz ...  (Read 4335 times)

caritas

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sound Card Problem: Must Be 44.1khz ...
« on: November 30, 2006, 08:49:30 am »
I have a akita and installed hentges ROM on it.

For play SFC games, I compiled libsdl with fb support on (qpe support off) and snes9x.
With the QVGA support in Linux kernel  2.6.17, the video side is very good. But the sound side doesn't work.
(In Linux 2.6.16 of OZ 3.5.4.1, the sound works good, but the video is too small).

But the music can be played properly under Linux 2.6.17. So sound card driver can work, at least under some
specific condition. I try a sound wave file with 8 bit, 11025 Hz, and the it can not be played by mplayer.
So I think the sound card can work only under certain condition.

Then, I modified the snes9x, make it use 44100 Hz instead of 22050 Hz, and now I can play SFC games on
my zaurus perfectly (except the cursor, which is always there).

Why the sound card can not work in 22050 Hz?

Best Regards
Ying Huang

zaurick

  • Newbie
  • *
  • Posts: 17
    • View Profile
Sound Card Problem: Must Be 44.1khz ...
« Reply #1 on: November 30, 2006, 04:28:19 pm »
Quote
I have a akita and installed hentges ROM on it.

For play SFC games, I compiled libsdl with fb support on (qpe support off) and snes9x.
With the QVGA support in Linux kernel  2.6.17, the video side is very good. But the sound side doesn't work.
(In Linux 2.6.16 of OZ 3.5.4.1, the sound works good, but the video is too small).

But the music can be played properly under Linux 2.6.17. So sound card driver can work, at least under some
specific condition. I try a sound wave file with 8 bit, 11025 Hz, and the it can not be played by mplayer.
So I think the sound card can work only under certain condition.

Then, I modified the snes9x, make it use 44100 Hz instead of 22050 Hz, and now I can play SFC games on
my zaurus perfectly (except the cursor, which is always there).

Why the sound card can not work in 22050 Hz?

Best Regards
Ying Huang
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147588\"][{POST_SNAPBACK}][/a][/div]

I don't know for the sound but i have a lot of problem with oz3.5.4.2 sound too on a spitz.
cat some sound raw to /dev/dsp don't work , volume can not be controled by opie and gpe, ...

but if it can help you :
for hide cursor, stop blinkin and disable blankin screen in console you can type
echo "\033c\033[9;0]\033[?33l\033[?25l" >/dev/console
and to return to the console default config type
echo "\033c"> /dev/console
if /dev/console doesn't word try /dev/tty or /dev/tty0.

it work fine for me.

Best Regards
zaurick

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Sound Card Problem: Must Be 44.1khz ...
« Reply #2 on: November 30, 2006, 04:54:10 pm »
Quote
Quote
I have a akita and installed hentges ROM on it.

For play SFC games, I compiled libsdl with fb support on (qpe support off) and snes9x.
With the QVGA support in Linux kernel  2.6.17, the video side is very good. But the sound side doesn't work.
(In Linux 2.6.16 of OZ 3.5.4.1, the sound works good, but the video is too small).

But the music can be played properly under Linux 2.6.17. So sound card driver can work, at least under some
specific condition. I try a sound wave file with 8 bit, 11025 Hz, and the it can not be played by mplayer.
So I think the sound card can work only under certain condition.

Then, I modified the snes9x, make it use 44100 Hz instead of 22050 Hz, and now I can play SFC games on
my zaurus perfectly (except the cursor, which is always there).

Why the sound card can not work in 22050 Hz?

Best Regards
Ying Huang
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147588\"][{POST_SNAPBACK}][/a][/div]

I don't know for the sound but i have a lot of problem with oz3.5.4.2 sound too on a spitz.
cat some sound raw to /dev/dsp don't work , volume can not be controled by opie and gpe, ...

but if it can help you :
for hide cursor, stop blinkin and disable blankin screen in console you can type
echo "\033c\033[9;0]\033[?33l\033[?25l" >/dev/console
and to return to the console default config type
echo "\033c"> /dev/console
if /dev/console doesn't word try /dev/tty or /dev/tty0.

it work fine for me.

Best Regards
zaurick
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147635\"][{POST_SNAPBACK}][/a][/div]

Both sound issues should be fixed by an updated kernel (well, at least the opie one is).
A new kernel should be available soon.
Webmaster of hentges.net & Embedded Linux Developer.

zaurick

  • Newbie
  • *
  • Posts: 17
    • View Profile
Sound Card Problem: Must Be 44.1khz ...
« Reply #3 on: December 10, 2006, 01:53:00 pm »
Quote
Both sound issues should be fixed by an updated kernel (well, at least the opie one is).
A new kernel should be available soon.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147636\"][{POST_SNAPBACK}][/a][/div]

Thanks CoreDump, i have updated my 3.5.4.2 and now i can cat sound to /dev/dsp   .
Maybe caritas problem is resolved too.
The last thing that don't work is the volume control in opie.

Thanks to all OZ devloppers for their work !
I use OZ every day on my C3000 and it's the best rom for me.

Zaurick.

STrRedWolf

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://stalag99.net
Sound Card Problem: Must Be 44.1khz ...
« Reply #4 on: December 10, 2006, 08:03:24 pm »
Which kernel version is this, Coredump?