LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-28-2018, 07:50 PM   #1
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Rep: Reputation: 23
Enable software audio control for device?


I have set up an i2s amplifier for an Odroid C0 SBC. But there are no mixer controls in amixer or alsamixer. The device is listed by aplay and works fine but quietly.

I have tried with the Odroid support forums but they don't seem to understand.

How might I add software controls or use software to boost the gain to the device whichever is easiest?
 
Old 01-29-2018, 08:11 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
I'm assuming, because this is Linux Questions, that you put some flavor of Linux on that device.

Please tell us more about the install, such as: What distro/version? It it headless? Is there a GUI interface? What version of ALSA and alsamixer? And so on.
 
Old 01-30-2018, 09:13 PM   #3
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
I got this all working. See this thread: https://www.raspberrypi.org/forums/v...47994#p1147994

This was taken from the thread above:
Code:
pcm.!default  {
 type plug     
 slave.pcm "speakerphat"
}

ctl.!default {
 type hw card 0
}

pcm.speakerphat {
  type softvol
  slave.pcm "plughw:0"
  control.name "Master"
  control.card 0
}
Note that usually control.card, hw card, and the plughw number should be the same index number. Also the name speakerphat can be anything you want. You might also want to specify the full card address with a comma and then the sub-device behind the plughw index number.
 
Old 01-30-2018, 09:32 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
Glad you got it working. Thanks for the update.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller fu9ar Slackware 5 09-23-2018 04:58 AM
LXer: How To Enable Beats Audio Subwoofer Audio On a HP Laptop In Ubuntu/Linux LXer Syndicated Linux News 0 12-05-2015 08:33 AM
can no longer change audio settings, missing gstreamer plugin or no audio device dsollen Linux - General 3 11-16-2009 08:40 AM
LXer: Device Profile: Trinity Audio Group portable digital audio workstation LXer Syndicated Linux News 0 07-07-2006 01:03 AM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration