SGTL5000 Line In test on Nano

How to test Line-in interface on sgtl5000?

Our custom carrier(Nano as the module) has sgtl5000 with headphone out and line-in interfaces.
Headphone out is working.(aplay -v <snd.wav> works. It is using the sound card as expected)
I need some directions on testing Line-in.

I tried the following:

  • Connected an audio jack from my PC’s line-out to line-in of carrier board
  • From Nano, executed “arecord snd.wav”
  • Played a sound file (wav file) from PC.
  • However, nothing is captured.

I am not sure whether this is the right approach.
Any inputs will be much appreciated.

Note: This custom board is a headless system.



Please can you take a look at this thread and see if this helps?


Thanks Jon for inputs. I was able to solve it yesterday itself.

Here is what I did.

Modified the routing table as follows(board has HP out and Line in and Line-In):

nvidia,audio-routing =
            "x Headphone Jack", "x HP_OUT",
            "x LINE_IN", "x Line In";

The mixer needed to be configured for line-in.

$ amixer cset name="x Capture Mux" "LINE_IN"

Recorded the sound as follows

$ arecord -V stereo -c 2 -f S16_LE -r 48000 -t wav 01.wav

With these changes, I could record over line-in.


Great news. Thanks for letting us know!


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.