Skip to content

Commit

Permalink
[PATCH] Audio: add configure of ALSA audio
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyZhang1 committed Nov 21, 2016
1 parent c0ebb18 commit 494adcc
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 1,072 deletions.

1 comment on commit 494adcc

@BuddyZhang1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage:
This patch support record and play audio with ALSA.
On hardware, OP PC2 offer MIC and output sound. The ALSA lib has exist on original system,
we can use this patch to configure correct input/output channel.
On OP PC2, system has only one sound card for input:

root@Orangepi:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sun50iw2codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  And system has two sound card for output:
root@Orangepi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sun50iw2codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

When you want to use [audiocodec] or [sndhdmi] as output sound, you should choice output sound
card first.

Please sign in to comment.