en:bpi-r2pro:alsa
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r2pro:alsa [2022/02/14 09:32] – frank | en:bpi-r2pro:alsa [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ALSA ====== | ||
+ | ===== output / speaker ===== | ||
+ | |||
+ | < | ||
+ | root@bpi-r2pro: | ||
+ | **** List of PLAYBACK Hardware Devices **** | ||
+ | card 0: HDMI [HDMI], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-0] | ||
+ | Subdevices: 1/1 | ||
+ | Subdevice #0: subdevice #0 | ||
+ | card 1: Analog [Analog], device 0: fe410000.i2s-rk817-hifi rk817-hifi-0 [fe410000.i2s-rk817-hifi rk817-hifi-0] | ||
+ | Subdevices: 1/1 | ||
+ | Subdevice #0: subdevice #0 | ||
+ | root@bpi-r2pro: | ||
+ | null | ||
+ | Discard all samples (playback) or generate zero samples (capture) | ||
+ | lavrate | ||
+ | Rate Converter Plugin Using Libav/ | ||
+ | samplerate | ||
+ | Rate Converter Plugin Using Samplerate Library | ||
+ | speexrate | ||
+ | Rate Converter Plugin Using Speex Resampler | ||
+ | jack | ||
+ | JACK Audio Connection Kit | ||
+ | oss | ||
+ | Open Sound System | ||
+ | pulse | ||
+ | PulseAudio Sound Server | ||
+ | upmix | ||
+ | Plugin for channel upmix (4,6,8) | ||
+ | vdownmix | ||
+ | Plugin for channel downmix (stereo) with a simple spacialization | ||
+ | hw: | ||
+ | HDMI, fe400000.i2s-i2s-hifi i2s-hifi-0 | ||
+ | Direct hardware device without any conversions | ||
+ | plughw: | ||
+ | HDMI, fe400000.i2s-i2s-hifi i2s-hifi-0 | ||
+ | Hardware device with all software conversions | ||
+ | default: | ||
+ | HDMI, fe400000.i2s-i2s-hifi i2s-hifi-0 | ||
+ | Default Audio Device | ||
+ | sysdefault: | ||
+ | HDMI, fe400000.i2s-i2s-hifi i2s-hifi-0 | ||
+ | Default Audio Device | ||
+ | dmix: | ||
+ | HDMI, fe400000.i2s-i2s-hifi i2s-hifi-0 | ||
+ | Direct sample mixing device | ||
+ | usbstream: | ||
+ | HDMI | ||
+ | USB Stream Output | ||
+ | hw: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Direct hardware device without any conversions | ||
+ | plughw: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Hardware device with all software conversions | ||
+ | default: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Default Audio Device | ||
+ | sysdefault: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Default Audio Device | ||
+ | dmix: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Direct sample mixing device | ||
+ | usbstream: | ||
+ | Analog | ||
+ | USB Stream Output | ||
+ | root@bpi-r2pro: | ||
+ | |||
+ | speaker-test -Dhw: | ||
+ | speaker-test -Dhw: | ||
+ | </ | ||
+ | |||
+ | ==== input / microphone ==== | ||
+ | |||
+ | not yet working | ||
+ | |||
+ | < | ||
+ | root@bpi-r2pro: | ||
+ | **** List of CAPTURE Hardware Devices **** | ||
+ | card 1: Analog [Analog], device 0: fe410000.i2s-rk817-hifi rk817-hifi-0 [fe410000.i2s-rk817-hifi rk817-hifi-0] | ||
+ | Subdevices: 1/1 | ||
+ | Subdevice #0: subdevice #0 | ||
+ | root@bpi-r2pro: | ||
+ | null | ||
+ | Discard all samples (playback) or generate zero samples (capture) | ||
+ | lavrate | ||
+ | Rate Converter Plugin Using Libav/ | ||
+ | samplerate | ||
+ | Rate Converter Plugin Using Samplerate Library | ||
+ | speexrate | ||
+ | Rate Converter Plugin Using Speex Resampler | ||
+ | jack | ||
+ | JACK Audio Connection Kit | ||
+ | oss | ||
+ | Open Sound System | ||
+ | pulse | ||
+ | PulseAudio Sound Server | ||
+ | upmix | ||
+ | Plugin for channel upmix (4,6,8) | ||
+ | vdownmix | ||
+ | Plugin for channel downmix (stereo) with a simple spacialization | ||
+ | usbstream: | ||
+ | HDMI | ||
+ | USB Stream Output | ||
+ | hw: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Direct hardware device without any conversions | ||
+ | plughw: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Hardware device with all software conversions | ||
+ | default: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Default Audio Device | ||
+ | sysdefault: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Default Audio Device | ||
+ | dsnoop: | ||
+ | Analog, fe410000.i2s-rk817-hifi rk817-hifi-0 | ||
+ | Direct sample snooping device | ||
+ | usbstream: | ||
+ | Analog | ||
+ | USB Stream Output | ||
+ | root@bpi-r2pro: | ||
+ | |||
+ | root@bpi-r2pro: | ||
+ | Recording WAVE ' | ||
+ | HW Params of device " | ||
+ | -------------------- | ||
+ | ACCESS: | ||
+ | FORMAT: | ||
+ | SUBFORMAT: | ||
+ | SAMPLE_BITS: | ||
+ | FRAME_BITS: [32 64] | ||
+ | CHANNELS: 2 | ||
+ | RATE: [8000 96000] | ||
+ | PERIOD_TIME: | ||
+ | PERIOD_SIZE: | ||
+ | PERIOD_BYTES: | ||
+ | PERIODS: [2 4096] | ||
+ | BUFFER_TIME: | ||
+ | BUFFER_SIZE: | ||
+ | BUFFER_BYTES: | ||
+ | TICK_TIME: ALL | ||
+ | -------------------- | ||
+ | arecord: set_params: | ||
+ | Available formats: | ||
+ | - S16_LE | ||
+ | - S24_LE | ||
+ | - S32_LE | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | this way it records, but not from headset-microphone, | ||
+ | |||
+ | arecord -D hw: | ||
+ | |||
+ | play wav-file: | ||
+ | |||
+ | aplay -D hw: |