Questions tagged [tinyalsa]

tinyalsa is a small library to interface with ALSA in the Linux kernel.

tinyalsa is a small library to interface with ALSA in the Linux kernel.

https://github.com/tinyalsa/tinyalsa

22 questions
19
votes
1 answer

ALSA Configuration How To Combine MMAP Emulation and Ladspa Plugin in asound.conf

I have a working PCM output with good sounding audio on a Raspberry Pi compute module ( Linux ) using the rpi dac. The 'aplay -l' command output shows the following: >> aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndrpirpidac…
PhilBot
  • 748
  • 18
  • 85
  • 173
4
votes
1 answer

recording stereo with AudioRecord in android

I'm looking for a definitive answer on getting audioRecord to use both the top mounted and bottom mounted microphones so I don't have 2 identical (mono) channels. I'd like to know what polling I could do before hand to ensure that a gadget will…
jeff Bondy
  • 41
  • 1
  • 2
3
votes
1 answer

Audio Routing in tinyAlsa

We are working on Custom Board having Audio Codec, AM/FM Tuner, BT Headset, BT Classic all controlled by I2S peripheral. We wants to route audio from BT Classic to Audio Codec, BT Classic to BT headset and so on. We were planning to have seperate…
1
vote
1 answer

How to add a PCM Device in /dev/snd

Currently under /dev/snd/, I have the following devices controlC0 pcmC0D0c pcmC0D0p timer How do I add another device (i.e. pcmC0D1p)? The system is running Android, and it currently uses tiny ALSA for audio.
1
vote
2 answers

Android: pcm_open failed cannot open device '/dev/snd/pcmC0D1p'

A custom piece of hardware is running Android with the audio drivers installed. An simple Android app is created to play some audio using media player, the app is tested on a emulator so it works for sure. When running the device on the hardware,…
1
vote
0 answers

USB Audio on Android 5.1 Samsung S4 Mini

I wanted to test USB Audio on my Samsung S4 Mini GT-I9195 running Android 5.1 (Bliss Pop, which is partly based on Cyanogenmod). I´ve found another thread here and I too can successfully aplay a wav to hw:1,0, but I´m not able play sounds from any…
tinux
  • 11
  • 2
1
vote
0 answers

tinyalsa pcm capture using mmap, getting overrun error in pcm_wait()

I am using the tinyalsa library to implement audio capturing using mmap. But at the beginning of the program itself I am getting Xrun error ,i.e. overrun in pcm_wait(). I tried varying the buffer size and period, but i think its not able to read…
j29392
  • 13
  • 3
1
vote
1 answer

How to set 40 bytes of data to mixer control using tinymix?

I have a control called EQ2 Coefficients the output of the tinymix command gives 65 BYTE 40 EQ2 Coefficients 00000fc803fe00e01ec4f136040904cc1c9bf337040b0cbb16f8f7d9040a1f14058c056340000b75 How can I set that mixer…
optimus prime
  • 764
  • 1
  • 13
  • 39
1
vote
1 answer

How can i change the gains of the mic and pcm in android

I successfully completed the integration of my own aec into android. But what i need is i have to set the gains of the mic and pcm of the android because in my aec i am applying agc to the farend and nearend signal and then i procees the output of…
optimus prime
  • 764
  • 1
  • 13
  • 39
0
votes
1 answer

tinycap always captured 0 frames?

I’m using an OPPO FindX5 pro (with 3 MICs) to record system-audio, and I refer to tinycap. However, I cannot record via it. Step1: I checked the sound card OP5209L1:/proc/asound # cat cards 0 [waipiomtpsndcar]: waipio-mtp-snd- -…
0
votes
0 answers

pcm_open and pcm_is_ready call fail as pcm->fd returns negative integer

While trying tinyalsa in Android 9.0 pcm_is_ready call fails as pcm->fd is < 0. This is because pcm->fd = open(fn, O_RDWR|O_NONBLOCK); open call is failing. And i have made selinux as permissive. and given chmod 777 -R to /dev/snd So how to solve…
Archie
  • 1
  • 1
0
votes
1 answer

tinyalsa timing and problems with PCM_MMAP

We're on an ARM64 Snapdragon using a Qualcomm PM8916 codec. The goal is to sample a single channel at 48000 samps/sec, and to use high resolution time stamps. The tinyalsa docs insist that we must use PCM_MMAP. When we do, the pcm_open() does not…
Clarkman
  • 13
  • 5
0
votes
0 answers

QAudioDeviceInfo::availableDevices() doesn't return all available devices, instead return only one on three audio out devices actually exist.Why?

Question: 1. The QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)) return only one audio device(default device) from three audio out devices. Why? Total three audio out devices are available and while checking with ALSA devices verified the…
Akhil
  • 11
  • 2
0
votes
0 answers

Kernel crash at snd_ctl_find_numid+0x38/0x6c

I am getting NULL pointer dereference occasionally at snd_ctl_find_numid+0x38/0x6c in 4.4 kernel while accessing snd_kcontrol. The issue is reproduced ocassionally. Can anybody provide any pointer in fixing the issue. Below is the stack trace : …
rox
  • 21
  • 2
0
votes
2 answers

tinyalsa: pcm_start yields bad file number error

I'm attempting a barebones program to use tinyalsa, but pcm_start always fails, returning -1 and setting errno to 9 (EBADF, i.e. bad file number). The call to pcm_open before this returns a non-null pointer, but it sets errno to 22. There appears to…
JellicleCat
  • 28,480
  • 24
  • 109
  • 162
1
2