Recorded mic input is static

Discussion in 'General Discussion' started by dnetman99, May 25, 2014.

  1. dnetman99

    dnetman99 New Member

    Joined:
    Nov 19, 2013
    Messages:
    11
    Likes Received:
    0
    I am trying to use the UDOO as an audio recording device from the MIC input. I have the out of a device plugged into the mic input. It all works good as I can hear the input on the speaker output clear. However when I record it with both Audacity and arecord the recording is static, almost like its overmodulated but worse. I have went through several how to related to Alsamixer and Pulse. I found no changes. I also saw in the alsa mixer if I lower the mic recording mixer, that I find it back in the red once I record. Wondered if anyone else has tried this or seen this and maybe has some ideas on how to overcome. Again it only happens on the recording the raw seems to sound good when you listen to it live.

    Any help would be great.

    Thanks
     
  2. fetcher

    fetcher Member

    Joined:
    Mar 9, 2014
    Messages:
    166
    Likes Received:
    20
    Are you trying to connect a "line level" output into the microphone jack? If so, that explains the clipping-- microphones put out a very weak signal, less than a tenth of line-level, and if feeding an input meant for this strength of signal with any other device, you'd be seriously overloading it.

    Try building a voltage divider circuit, to knock the level down by about 20 times to start, though you might need to go even lower. Something like this:

    (input signal from device) --> 220kohm resistor --> X --> 10kohm resistor --> GND

    and tap the signal at point "X" to feed to mic-in. If it's still too "hot", either raise the value of the 220k resistor, or lower the 10k,

    It's unfortunate that the UDOO doesn't include any true line-level inputs. The audio chip used (VT1613) has them, which is why LINE and AUX show up in alsamixer, but they weren't brought out to jacks.
     
  3. DonGateley

    DonGateley New Member

    Joined:
    Sep 10, 2013
    Messages:
    13
    Likes Received:
    0
    "It's unfortunate that the UDOO doesn't include any true line-level inputs. The audio chip used (VT1613) has them, which is why LINE and AUX show up in alsamixer, but they weren't brought out to jacks."

    Does this imply that those line inputs would be accessible in software if only they could be brought out to a stereo jack via some mod? Or would it also require kernel mods?

    Thanks
     
  4. fetcher

    fetcher Member

    Joined:
    Mar 9, 2014
    Messages:
    166
    Likes Received:
    20
    I went ahead and did the mod for this, also patching the vt1613 analog sound driver to allow full use of the extra inputs-- see post9521.html

    Without that kernel patch, you can still pass audio through from LINE or AUX pins to the output, but no recording source control is exposed in the mixer, so the ADC remains stuck on the mic input. Its recording level wasn't adjustable either, and defaulted to a setting that was a bit too "hot" for the line-ins. For some reason this chip has an unusually sensitive ADC-- I had to use a 28:1 voltage divider to avoid clipping even at the lowest recording level, even though pass-through of much stronger signals (500mv P-P after a 2;1 divider) sounded OK. That may be a consequence of running the chip's analog section on 3.3V rather than the recommended 5V, or perhaps some input scaling register I haven't found, though I've combed through the full VT1613_R100.pdf datasheet.
     

Share This Page