Author Topic: Sound Input And Output And Debian Eabi  (Read 15832 times)

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Sound Input And Output And Debian Eabi
« Reply #15 on: September 11, 2008, 04:42:42 am »
Found a 2.5mm -> 3.5mm plug laying around tonight.  Recording worked okay by default, but I made the mistake of trying to "make it better", and broke the recording functionality with alsamixer.  

Took me about an hour or so to get it back, and this page was one of the first to show up in my google search.  For the record, as of now, I couldn't really find anything helpful on google, so I thought I'd post my settings below.

I'm using sox/rec/play  for recording through a cell-phone microphone/headset.  By default debian's precompiled "sox" won't record direct to mp3 I don't think... so I've started to rebuild that.  ./configure shows that it can't find the "lame mp3 writer"... oh well, that's off-topic.


The alsamixer-controls:

Headphone  100  (just headphone volume, doesn't matter)
Headphone Playback ZC (00)
Bass0 <--------> 100 (doesn't matter)
Bass Boost (Adaptive Boost)
Bass Filter (200Hz)
Treble 100
Treble Cut-off (4kHz)
PCM 100
Mic Boost 100
Mono 100
Mono Mixer Left (0ff)
Mono Mixer Left Bypass (Off)
Mono Mixer Right Bypass (Off)
Mono Mixer Right Playback Switch (Off)
Mono Playback ZC (Off)
Playback 6dB Attenuate (Off)
Playback De-emphasis (44,1kHz)
Playback Invert (off)
===================
Capture 100 [[ NEEDS TO BE ENABLED WITH SPACE BAR TO RECORD ]]
===================
Capture 6dB Attenuate (Off)
Capture Polarity (Normal)
Capture ZC (Off)
3D 100
3D Lower Cut-off (200Hz)
3D Mode (Capture, Playback)
3D Upper Cut-off (1,5kHz, 2,2kHz)
ALC Capture Attack Time 60
ALC Capture Decay Time 60
ALC Capture Function (Off)
ALC Capture Hold Time 100
ALC Capture MAX 100
ALC Capture NG (on)
ALC Capture NG Threshold 90
ALC Capture NG Type (2,2kHz)
ALC Capture Target 100
ALC Capture ZC (On)
Bypass Left 100
Bypass Mono 100
Bypass Right 100
Differential Mux (Line1)
===================
Jack Function (Headset)    [[ line/mic don't work for cell-phone headset ]]
===================
Left ADC 100
Left ADC Mux (Stereo)
Left Line Mux (Line 1)
Left Mixer (on)
Left Mixer Left Bypass (off)
Left Mixer Right Bypass (off)
Left Mixer Right Playback Switch (off)
Left PGA Mux (Line 1)
Out3 Mux (ROUT1)
Right ADC 90
Right ADC Mux (Stereo)
Right Line Mux (Line 1)
Right Mixer (on)
Right Mixer Left Bypass (Off)
Right Mixer Left Playback Switch (off)
Right Mixer Right Bypass (off)
Right PGA Mux (Line 1)
Right Speaker Playback invert (off)
Speaker   100
Speaker Function (Off)  [ doesn't need to be ]
Speaker Playback ZC (on)
ZC Timeout (on)


I'm using "rec -r 24k -c 1 filename.aiff"  to record an aiff sampled at 24kHz.  The default of 8kHz is really poor quality haven't tried higher sample rates, 'cause I don't really need them yet.

It's late at night, so I could be wrong, but I think some of those switches will disable the recording; the bypasses can enable monitoring, but not sure if that works whilst recording.  I didn't get the latter to work.

This is pretty much the first time I've managed to record audio since I was using the sharp rom, and this works a lot better.
« Last Edit: September 11, 2008, 04:45:22 am by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Sound Input And Output And Debian Eabi
« Reply #16 on: September 11, 2008, 09:24:59 am »
Quote from: radiochickenwax
By default debian's precompiled "sox" won't record direct to mp3

debian is so dedicated to pure OSS that the mp3 codec isn't included because it requires a license from sisvel. none of the other distros take notice of that :-)

thanks for the useful info.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

maemorandum

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Sound Input And Output And Debian Eabi
« Reply #17 on: February 26, 2009, 01:08:33 pm »
Quote from: radiochickenwax
Found a 2.5mm -> 3.5mm plug laying around tonight.  Recording worked okay by default, but I made the mistake of trying to "make it better", and broke the recording functionality with alsamixer.  

Took me about an hour or so to get it back, and this page was one of the first to show up in my google search.  For the record, as of now, I couldn't really find anything helpful on google, so I thought I'd post my settings below.

I'm using sox/rec/play  for recording through a cell-phone microphone/headset.  By default debian's precompiled "sox" won't record direct to mp3 I don't think... so I've started to rebuild that.  ./configure shows that it can't find the "lame mp3 writer"... oh well, that's off-topic.


The alsamixer-controls:

Headphone  100  (just headphone volume, doesn't matter)
Headphone Playback ZC (00)
Bass0 <--------> 100 (doesn't matter)
Bass Boost (Adaptive Boost)
Bass Filter (200Hz)
Treble 100
Treble Cut-off (4kHz)
PCM 100
Mic Boost 100
Mono 100
Mono Mixer Left (0ff)
Mono Mixer Left Bypass (Off)
Mono Mixer Right Bypass (Off)
Mono Mixer Right Playback Switch (Off)
Mono Playback ZC (Off)
Playback 6dB Attenuate (Off)
Playback De-emphasis (44,1kHz)
Playback Invert (off)
===================
Capture 100 [[ NEEDS TO BE ENABLED WITH SPACE BAR TO RECORD ]]
===================
Capture 6dB Attenuate (Off)
Capture Polarity (Normal)
Capture ZC (Off)
3D 100
3D Lower Cut-off (200Hz)
3D Mode (Capture, Playback)
3D Upper Cut-off (1,5kHz, 2,2kHz)
ALC Capture Attack Time 60
ALC Capture Decay Time 60
ALC Capture Function (Off)
ALC Capture Hold Time 100
ALC Capture MAX 100
ALC Capture NG (on)
ALC Capture NG Threshold 90
ALC Capture NG Type (2,2kHz)
ALC Capture Target 100
ALC Capture ZC (On)
Bypass Left 100
Bypass Mono 100
Bypass Right 100
Differential Mux (Line1)
===================
Jack Function (Headset)    [[ line/mic don't work for cell-phone headset ]]
===================
Left ADC 100
Left ADC Mux (Stereo)
Left Line Mux (Line 1)
Left Mixer (on)
Left Mixer Left Bypass (off)
Left Mixer Right Bypass (off)
Left Mixer Right Playback Switch (off)
Left PGA Mux (Line 1)
Out3 Mux (ROUT1)
Right ADC 90
Right ADC Mux (Stereo)
Right Line Mux (Line 1)
Right Mixer (on)
Right Mixer Left Bypass (Off)
Right Mixer Left Playback Switch (off)
Right Mixer Right Bypass (off)
Right PGA Mux (Line 1)
Right Speaker Playback invert (off)
Speaker   100
Speaker Function (Off)  [ doesn't need to be ]
Speaker Playback ZC (on)
ZC Timeout (on)


I'm using "rec -r 24k -c 1 filename.aiff"  to record an aiff sampled at 24kHz.  The default of 8kHz is really poor quality haven't tried higher sample rates, 'cause I don't really need them yet.

It's late at night, so I could be wrong, but I think some of those switches will disable the recording; the bypasses can enable monitoring, but not sure if that works whilst recording.  I didn't get the latter to work.

This is pretty much the first time I've managed to record audio since I was using the sharp rom, and this works a lot better.

Thank you, radiochickenwax

i tested your settings and had no problems recording voices.
Somehow it seems, that there might be a frequency-shift in the recordings.

Anyway i also tested another amateur-radio software called "gmfsk" over a mircophone/headphone.
It looks like that debian-eabi has performance-problems decoding the alsa-sound.
In the monitoring window all processes appear delayed.

So it seems, that there might be a disharmony between the sound-hardware and the system or the graphic.
A 400Mhz processor should not have any problems decoding a simple 50 baud rtty signal!

-------------------------------------------------------------------------------------------------------
Updated 03-04-2009:

I also tested fldigi, hamfax, acfax, gmfsk:
This slow processor and the lack of ram is the reason for the problems decoding hamradio-sounds.

-------------------------------------------------------------------------------------------------------
« Last Edit: March 04, 2009, 05:39:28 am by maemorandum »
SL-C3200 with opened 2nd CF-Slot, Debian EABI 2.6.23.9-yonggun on 2 GB High-Speed-CF
SL-C1000, Cacko-ROM

ASUS WL-110, hacked with external SMA Antenna Jack
AmbiComWL 1100C-CF, Buffalo Airstation-CF