1

I have an audio driver present in linux kernel that i have. Using alsa utilities like aplay, set and get i want to write a c application to test driver's functionalities like playback, set volume and get volume. I have a confusion that how to use aplay and other alsa commands in a c code. I am doing it for the very first time. Can anybody help me with the way to do achieve this.

Thanks in advance.

user1497818
  • 375
  • 1
  • 7
  • 16
  • Why would you do that in C and not as a target in your makefile? – Ignacio Vazquez-Abrams Feb 28 '14 at 06:29
  • Thanks Ignacio. Actually that is a requirement given to me. I am expected to provide with a very simple c code which should be able to playback, set volume and get volume using the driver using alsa. I am not getting how to do it. Can you help me please? – user1497818 Feb 28 '14 at 06:31

1 Answers1

1

Please see the answer to this question:

Set ALSA master volume from C code

And also read the alsa/mixer lib manpage.

Other references: http://www.alsa-project.org/alsa-doc/alsa-lib/mixer_8h.html

Community
  • 1
  • 1