Re: [linux-sunxi] Testing of Line In my A20 board.

2014-07-16 Thread Rajesh Mallah
Dear Puneet,
In case you dont mind sacrificing a usb port, use a usb to audio adapter
like below
 http://www.amazon.com/Logitech-3-5mm-Jack-Audio-Adapter/dp/B0058P0I2C
they are not really expensive you can get it under 200/- INR.
In case u really want to use line-in you have to build a circuit yourself
like below:
http://www.epanorama.net/circuits/micamp.html
read the questions and answers. regds mallah.



On Fri, Jul 11, 2014 at 9:15 PM, Puneet B punit...@gmail.com wrote:

 Hi Rajesh,

 Can you explain how can i test Line In in my Android.

 I have sound recorder apk and also accessing capture node of sunxi-codec.

 Can you tell how can i convert my line in to mic in.

 Regards
 Punith

 --
 You received this message because you are subscribed to the Google Groups
 linux-sunxi group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to linux-sunxi+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-07-11 Thread Puneet B
Hi Rajesh,

Can you explain how can i test Line In in my Android.

I have sound recorder apk and also accessing capture node of sunxi-codec.

Can you tell how can i convert my line in to mic in.

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-18 Thread Code Kipper
Hi Puneet,
can you run 'arecord -iL' and paste back the result. I don't think anything
else needs to be done to the script as capture is enabled. Is there any
sound settings in Android that you can change?, I've not got any Axx
devices to hand with audio in so I'm working a bit blind here. Is there
anything in the kernel logs that suggest that the device is capturing?,
CK


On 18 February 2014 08:11, Puneet B punit...@gmail.com wrote:

 Hi,

 I ported Android 4.2 in my A20 board to test LINE IN.

 But still i am able to record my voice.

 but audio is coming through hdmi output.

 how to make LINE IN to work.

 so that i can records any voice.

 Is there anything need to change in script.

 Here i am attaching script.


 Regards
 Punith



  --
 You received this message because you are subscribed to the Google Groups
 linux-sunxi group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to linux-sunxi+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-14 Thread Puneet B
 Hi ,

Finally i got audio output through hdmi without passing command.

Here my Update.

I remover etc/asound.conf file.

in vi /usr/share/alsa/alsa.conf

defaults.ctl.card 1   //changed 0 to 1
defaults.pcm.card 1 changed 0 to 1
defaults.pcm.device 0


Now hdmi output working fine.

Now i want to test LINEIN connector.

How can i do it?

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-14 Thread Puneet B
But how to get audio in both head phone jack and in HDMI.

means without changing card in alsa.conf.

because in real time, user dont want to  change card number every time.

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-14 Thread Code Kipper
Hi Puneet,

you're going to have to look into the alsa world for answers on this. I did
have a similar issue a few years ago on my HTPC and I think this link
helped solve it http://forum.xbmc.org/showthread.php?tid=70754. I haven't
got the conf to hand to show you. I recall also looking here for help
http://www.alsa-project.org/main/index.php/Documentation

CK


On 14 February 2014 10:22, Puneet B punit...@gmail.com wrote:

 But how to get audio in both head phone jack and in HDMI.

 means without changing card in alsa.conf.

 because in real time, user dont want to  change card number every time.

 Regards
 Punith

  --
 You received this message because you are subscribed to the Google Groups
 linux-sunxi group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to linux-sunxi+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-13 Thread Gerardo Di Iorio
hi punnet,
try to see this docs
http://docs.cubieboard.org/tutorials/common/begining_on_lubuntu
section
Headphone Jack


2014-02-13 12:51 GMT+01:00 Puneet B punit...@gmail.com:

 Hi,

 I have Line in connector in my A20 board.

 Now how can i  test it.

 In my audio jack is working fine.

 Is i need to select any proper driver.

 Kindly suggest me.

 Regards
 Punith

 --
 You received this message because you are subscribed to the Google Groups
 linux-sunxi group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to linux-sunxi+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-13 Thread Code Kipper
Hi Puneet,
I've looked a bit at the sound driver but have yet to test any line inputs.
I can confirm that hdmi audio works; this I verified using soundtest,
mplayer and xbmc. It's been a while since I've looked at hdmi audio but
here is the notes that I made at the time.
test the hdmi speakers
speaker-test -twav -c2 -Dhw:1,0
play a 96KHz audio file
aplay -D hw:1,0 2L38_01_96kHz\(short\).wav
nothing
install mplayer
apt-get install mplayer
mplayer -ao alsa:device=hw=1.0 *.flac
this works on hdmi
aplay -lL
root@mele:~# aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=sunxicodec
sunxi-CODEC, sunxi PCM
Default Audio Device
dmix:CARD=sunxicodec,DEV=0
sunxi-CODEC, sunxi PCM
Direct sample mixing device
dsnoop:CARD=sunxicodec,DEV=0
sunxi-CODEC, sunxi PCM
Direct sample snooping device
hw:CARD=sunxicodec,DEV=0
sunxi-CODEC, sunxi PCM
Direct hardware device without any conversions
plughw:CARD=sunxicodec,DEV=0
sunxi-CODEC, sunxi PCM
Hardware device with all software conversions
sysdefault:CARD=sunxisndhdmi
sunxi-sndhdmi,
Default Audio Device
dmix:CARD=sunxisndhdmi,DEV=0
sunxi-sndhdmi,
Direct sample mixing device
dsnoop:CARD=sunxisndhdmi,DEV=0
sunxi-sndhdmi,
Direct sample snooping device
hw:CARD=sunxisndhdmi,DEV=0
sunxi-sndhdmi,
Direct hardware device without any conversions
plughw:CARD=sunxisndhdmi,DEV=0
sunxi-sndhdmi,
Hardware device with all software conversions
sysdefault:CARD=sunxisndspdif
sunxi-sndspdif,
Default Audio Device
dmix:CARD=sunxisndspdif,DEV=0
sunxi-sndspdif,
Direct sample mixing device
dsnoop:CARD=sunxisndspdif,DEV=0
sunxi-sndspdif,
Direct sample snooping device
hw:CARD=sunxisndspdif,DEV=0
sunxi-sndspdif,
Direct hardware device without any conversions
plughw:CARD=sunxisndspdif,DEV=0
sunxi-sndspdif,
Hardware device with all software conversions
 List of PLAYBACK Hardware Devices 
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sunxisndhdmi [sunxi-sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sunxisndspdif [sunxi-sndspdif], device 0: SUNXI-SPDIF sndspdif-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I suggest that you take a look at the code in the kernel at
sound/soc/sunxi/*
Do you know if your fex is set up to capture audio, capture_used needs to
be set.

As for alsamixer not working, I guess your asound.conf was incorrect. Try
looking here for more info.
http://alsa.opensrc.org/

CodeKipper


On 14 February 2014 07:03, Puneet B punit...@gmail.com wrote:


  Hi Gerardo,

 Actually i want to test LINE IN connector in my board.

 I did not get anything from your link.

 Can you kindly explain how can i test LINE IN connector in my A20 board?

 And also i not getting any audio through hdmi.

 I fallowed same procedure.

 my sound card devices are:

 aplay -l
 card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
 card 1: sunxisndhdmi [sunxi-sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0
 []
   Subdevices: 1/1
   Subdevice #0: subdevice #0

 but once i created asound.conf , alsamixer command is not working.

 alsamixer
 cannot open mixer: Invalid argument

 if i delete asound.conf, alsamixer command is working fine.

 how should i get audio through hdmi?

 Regards
 Punith

 --
 You received this message because you are subscribed to the Google Groups
 linux-sunxi group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to linux-sunxi+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Testing of Line In my A20 board.

2014-02-13 Thread Puneet B
Hi CodeKipper,

speaker-test -twav -c2 -Dhw:1,0

mplayer -ao alsa:device=hw=1.0 *.flac

both are working fine.

i am getting audio through hdmi.

i have set capture_audio in script also.

but how can i get audio through hdmi without passing any command.

Kindly suggest me.

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.