osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: Soundmodem and sampling rate: force a rate? -
msg#00058

List: linux.hams

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

J. Lance Cotton wrote:
I am trying to get soundmodem (usermode) working with a Soundblaster
Live card on SuSE 9.3 and the commercial OSS driver.

The problem is that apparently the SB card supports only 8k, 11.025k,
12k, ... sampling rates. At 1200bps AFSK, soundmodem demodulator asks
for (or gets) 9600Hz sampling rate.

Something, as far as I can tell, is opening the soundcard for recording at 9600Hz sample rate, but I've been told that that rate isn't supported by my SB Live card. I thought that in that instance, the "next closest" rate would be returned instead...

I do not know if this is a problem with the Commercial OSS driver, the SB Live card, or soundmodem. I've tried editing the soundcard/audioio.c file to "force" other sample rates. It does open the card at the forced rate, but the decoding still doe not work reliably. (The problem is exemplified in the samples I recorded and put at http://www.cmsworldwide.com/Files/soundsamples/index.html )

**Question: Is there any official way to have soundmodem request a user-custom sampling rate? Like a hidden config?

Thanks. 73 KJ5O



I came across a similar thing. Looking at the soundmodemconfig scope function I saw horizontal lines in the waveform - this is clearly impossible for an AC coupled signal so I suspected that 9600 was not a valid sample rate for my audio codec. Here is what I did to fix it:


in line 233 of soundcard/main.c change

unsigned int samplerate = 5000, mode;
to
unsigned int samplerate = 11025, mode;


then in line 710 of configapp/src/diag.c change

diagstate.samplerate = 5000;
to
diagstate.samplerate = 11025;


Even though the sample rate is set to 5000 there is a selection routine in audioio.c that steps it up to 9600. I tried editing the valid sample rate list there but it still used 9600.

After making the above changes I have not had any trouble at all with soundmodem. Not that there aren't any, but I don't know of another way to force a sample rate.

Hope this helps.

Dave
AD5OO
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html



Thread at a glance:

Previous Message by Date:

Re: 2.6.14-r4 crashing

Hi, I had unending difficulties when trying netrom and kernel 2.6... in the end I gave up and am running 2.4 now for stability. Linux version 2.4.29 (root@ei3rcw) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #5 Fri Apr 15 13:37:45 IST 2005 to be exact. Regards John On 25 Oct 2005, at 17:09, aa6qn@xxxxxxxxxxxxxxx wrote: I changed the freq selection per earlier email to 1000hz and that seemed to help (at least from a tnc timing perspective). The system did have a kernel panic after a couple of netrom non-connections. I really believe you hit the nail on the head that most of my problems present and past where netrom based. When I loaded ax25 excluding the netrom application the platform did very well.( I ran netrom from jnos vice the ax25 utils). Whenever I load the ax25 netrom it seems that when I try a netrom connect and it fails a kernel panic results soon there after. So, for the moment I have removed the ax25 utils and am just running Jnos 2.0d via a slip link ( I can not get the tun device working with uDev). The system is quite solid. I am curious where the "ip route add (network) via (gateway) dev tunl0 static onlink" command loads but does not route anymore whereas "ip tunnel add (name) remote (remote gw) local (local ip) dev tunl0" does work. Did something change with IPROUTE2 ? The ip route add worked for me before and allowed ax25ipd links. I would be more than happy to try any other ideas/patches that may relieve the ax25 kernel challanges. very best wishes, JohnF - To unsubscribe from this list: send the line "unsubscribe linux- hams" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html -- John Ronan <jronan@xxxxxxxx>, +353-51-302938 Telecommunications Software & Systems Group, http://www.tssg.org - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html

Next Message by Date:

Re: Soundmodem and sampling rate: force a rate?

David Rivenburg wrote: Even though the sample rate is set to 5000 there is a selection routine in audioio.c that steps it up to 9600. I tried editing the valid sample rate list there but it still used 9600. After making the above changes I have not had any trouble at all with soundmodem. Not that there aren't any, but I don't know of another way to force a sample rate. Thanks for the hints. This does force a higher, valid sample rate. However, it doesn't seem to improve the operation of soundmodem on a SB Live card. I've since found a different soundcard that works perfectly (with or without this modification), so problem solved one way or another. KJ5O -- J. Lance Cotton, KJ5O joe@xxxxxxxxxxxxxxxxxx http://kj5o.lightningflash.net Three Step Plan: 1. Take over the world. 2. Get a lot of cookies. 3. Eat the cookies. - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html

Previous Message by Thread:

Soundmodem and sampling rate: force a rate?

I am trying to get soundmodem (usermode) working with a Soundblaster Live card on SuSE 9.3 and the commercial OSS driver. The problem is that apparently the SB card supports only 8k, 11.025k, 12k, ... sampling rates. At 1200bps AFSK, soundmodem demodulator asks for (or gets) 9600Hz sampling rate. Something, as far as I can tell, is opening the soundcard for recording at 9600Hz sample rate, but I've been told that that rate isn't supported by my SB Live card. I thought that in that instance, the "next closest" rate would be returned instead... I do not know if this is a problem with the Commercial OSS driver, the SB Live card, or soundmodem. I've tried editing the soundcard/audioio.c file to "force" other sample rates. It does open the card at the forced rate, but the decoding still doe not work reliably. (The problem is exemplified in the samples I recorded and put at http://www.cmsworldwide.com/Files/soundsamples/index.html ) **Question: Is there any official way to have soundmodem request a user-custom sampling rate? Like a hidden config? Thanks. 73 KJ5O -- J. Lance Cotton, KJ5O joe@xxxxxxxxxxxxxxxxxx http://kj5o.lightningflash.net Three Step Plan: 1. Take over the world. 2. Get a lot of cookies. 3. Eat the cookies. - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html

Next Message by Thread:

Re: Soundmodem and sampling rate: force a rate?

David Rivenburg wrote: Even though the sample rate is set to 5000 there is a selection routine in audioio.c that steps it up to 9600. I tried editing the valid sample rate list there but it still used 9600. After making the above changes I have not had any trouble at all with soundmodem. Not that there aren't any, but I don't know of another way to force a sample rate. Thanks for the hints. This does force a higher, valid sample rate. However, it doesn't seem to improve the operation of soundmodem on a SB Live card. I've since found a different soundcard that works perfectly (with or without this modification), so problem solved one way or another. KJ5O -- J. Lance Cotton, KJ5O joe@xxxxxxxxxxxxxxxxxx http://kj5o.lightningflash.net Three Step Plan: 1. Take over the world. 2. Get a lot of cookies. 3. Eat the cookies. - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!