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 <[email protected]> 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to