Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:53:47+00:00 2026-06-17T20:53:47+00:00

I need to control the audio output device at run time : 1) Main

  • 0

I need to control the audio output device at run time :

1) Main Speaker only
2) Headphone Only
3) Headphone + Main Speaker both together

My application take run time decision to switch among above combinations. What ALSA API should I use for above purpose.

(I use Linux 3.0, ALSA, C, TI tlv320aic3x , ARM).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:53:48+00:00Added an answer on June 17, 2026 at 8:53 pm

    You may use this:

    int snd_mixer_selem_set_playback_volume(snd_mixer_elem_t *elem,
    snd_mixer_selem_channel_id_t channel, long value)       
    

    which sets value of playback volume control of a mixer simple element.

    here is a source code example:

            /* Set new volume */
             if (snd_mixer_selem_set_playback_volume(elem,
                 SND_MIXER_SCHN_FRONT_LEFT, left_volume) != 0)
                     return (-1);
             if (snd_mixer_selem_set_playback_volume(elem,
                 SND_MIXER_SCHN_FRONT_RIGHT, right_volume) != 0)
                     return (-1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need GUI control for audio file presentation. The language is not very important
I've to create an activeX control that need to run without any prerequisit (like
I am developing an application in which I need to extract the audio from
I need to add pretty basic audio player functionality to a client application I'm
need to play sound on different content, but it's playing sound every time only
I need to control inbound and outbound traffic to/from a linux box from within
I need a control that can list data in 3 columns, I want to
I need a control having these features: It should be possible use it in
We are using Grails with a legacy database and we need to control how
I need .NET UI control that acts as a designer/editor window similar to what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.