Unix Technical Forum

Re: 8kHz sampling rates and i2s based ppc audio devices

This is a discussion on Re: 8kHz sampling rates and i2s based ppc audio devices within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Hi, At 2007-11-22 21:48:40, Jacob Meuser wrote: > It's been reported that 8kHz sampling rates cause an "evil" > ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:34 AM
Marco Trillo
 
Posts: n/a
Default Re: 8kHz sampling rates and i2s based ppc audio devices

Hi,

At 2007-11-22 21:48:40, Jacob Meuser wrote:
> It's been reported that 8kHz sampling rates cause an "evil"
> sound with snapper(4). 8kHz is the audio(4) default, so, just
> about any operation with these devices causes the "evil" sound.


I have experienced that too with snapper(4). I also recall that some
users mentioned audio stability problems after playing a lot of files with
tumbler(4), this may be the cause of such problems (if they were using
the /dev/audio device with its 8 kHz default rate).

> disabling 8kHz in sys/arch/macppc/dev/i2s.c avoids the "evil" sound.
> however, this disables 8kHz sampling rates in all i2s based audio
> devices, and I'd rather not do that if not necessary.


According to the datasheets of these codecs, these are the supported rates:
snapper: 32 kHz, 44.1 kHz, 48 kHz
tumbler: 32 kHz, 44.1 kHz, 48 kHz, 96 kHz
daca: 8 kHz, 11.025 kHz, 12 kHz, 16 kHz, 22.05 kHz, 24 kHz, 32 kHz,
44.1 kHz, 48 kHz

'snapper' and 'tumbler' do not require any special configuration to set the
sampling rate. However, 'daca' might need to be informed of the band of the
rate setting via the I2C register SR_REG (subaddress 0x01). These are
the values:

000 32-48 kHz
001 26-32 kHz
010 20-26 kHz
011 14-20 kHz
100 10-14 kHz
101 8-10 kHz

The current daca(4) driver does not configure this register, and the
default setting
is the 32-48 kHz band.
There is also an autoselect mode, but this appears to be for MPEG streams.

-Marco

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com