Jump to content

No support Capture selection, for Allwinner A20 Audio Codec


Go to solution Solved by Danny,

Recommended Posts

Posted

Hello,

 

Please help with this issue:

 

No Сapture selection in alsamixer or amixer.

 

root@cubieboard2:~# arecord -l

**** List of CAPTURE Hardware Devices ****

card 1: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]

  Subdevices:1/1

  Subdevice #0: subdevice #0

 

root@cubieboard2:~# amixer -c 1 sget 'Line Boost'

  Capabilities: volume volume-joined

  Playback channels: Mono

  Capture channels: Mono

  Limits: 0 - 7

  Mono: 7 [100%] [9.00dB]

 

root@cubieboard2:~# amixer -c 1 sset 'Line Boost' cap

amixer: Invalid command!

 

root@cubieboard2:~# arecord -f S16_LE -r 22050 -D hw:1,0 /home/456.wav  - The sound is recorded from the internal microphone('Mic1 Boost') and there is no possibility to change the sound source.

 

How to choose a sound source: Line In('Line Boost')?

 

 

Armbian 21.02.2 Buster with Linux 5.10.16-sunxi

Posted

Hello,

 

Continuation of the topic the problem with capturing audio on CubieBoard2.

 

At the moment, the issue has been resolved.

In file sun4i-codec.c there was no description of the ADCIS register, which is responsible for selecting the sound source.

Modifications have been made to file sun4i-codec.c to select the Capture Source and Captute Level.

New sun4i-codec.c

Patch sun4i-codec.c

 

If it is possible to make these changes to the kernel for builds Armbian Buster & Armbian Focal.

This change is needed for the A20 processors.

 

With thanks

 

Oleg

Posted
47 minutes ago, olegoldtom said:

Are you writing about the need for current and new files?

No. I was writing about if you are willing to add your patches to our build repository so they get integrated into Armbian. The branches that should be worked on are sunxi-current (Linux 5.10.y) and sunxi-edge (at the moment 5.11.y).

 

Armbian heavily relies on community contributions because (human) resources are very limited :(

 

Posted (edited)

Hello, Werner

 

11 часов назад, Werner сказал:

I was writing about if you are willing to add your patches to our build repository so they get integrated into Armbian.

 

I will try to figure out how to do this, but I have very little experience.

 

I will be very grateful if you can help add these changes to the Armbian build.

 

The changes have been tested and are working.

 

Oleg

Edited by olegoldtom
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines