Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

using asoundrc to join volume controls?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
DooBeDooBeDo
Apprentice
Apprentice
User avatar
Posts: 220
Joined: Wed Aug 21, 2002 9:50 pm
Location: UK

using asoundrc to join volume controls?

  • Quote

Post by DooBeDooBeDo » Sun Aug 02, 2009 12:39 pm

I currently use a script to set surround levels on my mythbox as the 'Master' only affects stereo. I was wondering if it's possible to join the volume controls using asound.conf.

Lircd executes the script when the volume is changed, the applications (mythtv/xine) affect Master.

my script is: cat /usr/local/bin/surround_vol

Code: Select all

#!/bin/bash

vol=$(/usr/bin/amixer get Master|/bin/grep Left|/usr/bin/tail -1|/usr/bin/gawk -F ' ' '{ print $4 }')

/usr/bin/amixer set Surround $vol >/dev/null
/usr/bin/amixer set Center $vol >/dev/null
/usr/bin/amixer set LFE $vol >/dev/null
Ideally I'd like to tie the volumes of Surround, Center and LFE to that of Master using asound.conf

my asound.conf currently looks like:

Code: Select all

pcm.ch51dup {
    type route
    slave.pcm surround51
    slave.channels 6
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
    ttable.0.4 0.5
    ttable.1.4 0.5
}
This duplicates stereo to the surround speakers (My speakers automatically mix to the sub if it's not specifically driven).

Does anyone know if this is possible?
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sun Aug 02, 2009 1:00 pm

emerging media-libs/alsa-lib-1.0.19 gives:

Code: Select all

WARN: postinst
Starting from alsa 1.0.11_rc3 the configuration for dmix is changed.
Leaving around old asound.conf or ~/.asoundrc might make all apps
using ALSA output crash.
Note that dmix output is enabled by default on the 'default' device
since ALSA 1.0.9.

LOG: postinst

Please try in-kernel ALSA drivers instead of the alsa-drivers ebuild.
If alsa-drivers works for you where a *recent* kernel does not, we want 
to know about this. Our e-mail address is alsa-bugs@gentoo.org
However, if you notice no sound output or instability, please try to 
upgrade your kernel to a newer version first.
Top
DooBeDooBeDo
Apprentice
Apprentice
User avatar
Posts: 220
Joined: Wed Aug 21, 2002 9:50 pm
Location: UK

  • Quote

Post by DooBeDooBeDo » Sun Aug 02, 2009 6:16 pm

toralf: I'm a little confused about what you are implying by your post.

If it helps I'm on alsa-lib-1.0.14a-r1 and kernel 2.6.23-gentoo-r3.

I'm not going to upgrade anything or even emerge --sync (last time it was synced was when it was built) it's a very low powered VIA mini-ITX system running as a front/backend mythtv box which works completely to my satisfaction with the exception of the volume control, which causes xine to stutter if I adjust the volume. I thought it was about time I came up with a better fix than my script.
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sun Aug 02, 2009 8:22 pm

I mean this :
Leaving around old asound.conf
therefore it is a bad idea to create such a file, isn't it ?
Top
DooBeDooBeDo
Apprentice
Apprentice
User avatar
Posts: 220
Joined: Wed Aug 21, 2002 9:50 pm
Location: UK

  • Quote

Post by DooBeDooBeDo » Sun Aug 02, 2009 8:58 pm

OK I understand now I think. It's just a warning that the syntax/options changed. Not a notice to stop using the file(s) for configuration.

Please correct me if I'm wrong, or point to somewhere where it's stated other than that message.
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Mon Aug 03, 2009 7:56 am

DooBeDooBeDo wrote:Please correct me if I'm wrong, or point to somewhere where it's stated other than that message.
Oh no, you're right.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic