Linux Audio the way to go!? - Page 141 - diyAudio
Go Back   Home > Forums > Source & Line > PC Based

PC Based Computer music servers, crossovers, and equalization

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 21st October 2009, 06:10 PM   #1401
diyAudio Member
 
Join Date: Mar 2008
Quote:
Originally Posted by clar2391 View Post
That worked perfectly. Thanks so much.

I have another question. Before I used the ALSA upgrade script listed by Soundcheck, the volume control in MPC or Minion had no effect on the volume...I could set it at 0 or 100 (or anywhere in between) and I always go full volume output. Since the ALSA upgrade, the MPC and Minion volume control really controls the volume. Is there a way to disable this volume control so that I'm sure to get bit-perfect, full volume output?

I've messed with the mixed settings in mpd.conf, but I'm not sure what settings to change.
Which version of MPD are you using? As of 0.14 (if I recall correctly) you can disable any mixers in your mpd.conf.

Here is my relevant section:
# Volume control mixer ################################################## ######
#
# These are the global volume control settings. By default, this setting will
# be detected to the available audio output device, with preference going to
# hardware mixing. Hardware and software mixers for individual audio_output
# sections cannot yet be mixed.
#
# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
# setting is used other sound applications will be affected by the volume
# being controlled by MPD.
#
#mixer_type "hardware"
#
# An example for controlling all mixers through software. This will control
# all controls, even if the mixer is not supported by the device and will not
# affect any other sound producing applications.
#
#mixer_type "software"
#
# This example will not allow MPD to touch the mixer at all and will disable
# all volume controls.
#
mixer_type "disabled"
#
################################################## #############################

Notice than the only uncommented line is "mixer type "disabled" " When using gmpc my volume control is greyed out and non-functional.

Let us know if this helps.
  Reply With Quote
Old 21st October 2009, 06:21 PM   #1402
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
I see, the option "disabled" is not mentioned in the man page.
  Reply With Quote
Old 21st October 2009, 06:29 PM   #1403
diyAudio Member
 
Join Date: Mar 2008
Quote:
Originally Posted by phofman View Post
I see, the option "disabled" is not mentioned in the man page.
The mpd.conf man page? No, not specifically.

Maybe I'll ask if I can update that part of the man page myself. I don't write code, but I can help with documentation.
  Reply With Quote
Old 21st October 2009, 07:17 PM   #1404
Theo404 is offline Theo404  United Kingdom
diyAudio Member
 
Theo404's Avatar
 
Join Date: Mar 2008
The section on mixers and volume control will need to be rewritten soon as they seem to have made some changes to the way its implemented, from the git repository :

Quote:
* mixers:
37 - removed support for legacy mixer configuration
38 - reimplemented software volume as mixer+filter plugin
39 - per-device software/hardware mixer setting
  Reply With Quote
Old 21st October 2009, 07:21 PM   #1405
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Quote:
Originally Posted by nyc_paramedic View Post
The mpd.conf man page? No, not specifically.

Maybe I'll ask if I can update that part of the man page myself. I don't write code, but I can help with documentation.
Fantastic, thanks a lot.
  Reply With Quote
Old 22nd October 2009, 11:21 AM   #1406
adelias is offline adelias  Greece
diyAudio Member
 
Join Date: Feb 2005
Location: No Pasaran
Anyone here know what the status is on a USB audio 2.0 driver for linux?
I am interested in the board that is currently being discussed in the Pc -> Dac, How ? thread and thought that I would ask here.
  Reply With Quote
Old 24th October 2009, 05:27 AM   #1407
diyAudio Member
 
Join Date: Mar 2008
Default Display Sample Rate

Thanks to the people on this forum, I have MPD working!

I seem to remember reading that there was a command that would show the bit rate and sample rate of the current audio stream. I'd like to run this command to be sure that the sample rate of the audio stream matches the song (file) being played.

Thanks again for all of your help!
  Reply With Quote
Old 24th October 2009, 02:24 PM   #1408
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Quote:
Originally Posted by clar2391 View Post
I seem to remember reading that there was a command that would show the bit rate and sample rate of the current audio stream. I'd like to run this command to be sure that the sample rate of the audio stream matches the song (file) being played.
Check /proc/asound/card0/pcm0p/sub0/hw_params while playing if your playback stream is hw:0.0.
  Reply With Quote
Old 25th October 2009, 06:35 PM   #1409
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Hi folks.

I finally managed to get my RME card working for use in a headless setup.

As a matter of fact it can be controlled with amixer as discussed before.

"amixer cset numid=5 $input,$output,32768" will set the chosen route to 0db.

The main issue was actually to find out the right channel id's of input and output channels on my card. What I found in the net was not matching my setup.

There are a huge number of routing possibilities and the in-/outputs listed in below script header were not matching the ones I finally identified.

Therefore I wrote a simple script to check them all out.

Perhaps somebody else can make use of the script - that's why I attach it.

What's still missing: How do I get 6 channels routed to my device, without using Jack - just Alsa - to get my full active system running.

Have fun. Enjoy.
\Klaus

Code:
HDSPscan

------------------------------------------------------------------

#!/bin/bash
#
# written by soundcheck 10/25/2009 
#
# This script scans the matrix mixer of RME HDSP  9632 for input/output connections
# Your current setting will be removed. Use the script at your own risk.
#
# RME HDSP  9632 ( as per definition)
# inputs: 0-7 (analog), 16-23 (adat), 24-25 (spdif)  26-43 (playback channels)
# output: 0-7 (analog), 16-23 (adat)  24-25 (spdif), 26-27 (line out)

track="/dev/shm/play.wav"  # will be generated by the script!!!!!!!!!
alsainterface="plughw:0,0"

inputs_left=( 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 )
inputs_right=( 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 )
let cnt_i=${#inputs_left[@]}-1

outputs_left=( 0 2 4 6 8 10 12 14 16 18 20 22 24 26 )
outputs_right=( 1 3 5 7 9 11 13 15 17 19 21 23 25 27 )
let cnt_o=${#outputs_left[@]}-1



function generate_track () {
which sox  > /dev/null 2>&1 || { echo "Please install sox first!"; exit 1 ; } ;
sox -r 44100 -b 16 -c 2 -n $track synth 2 sine 300-3300 gain -18  # gain in db
}



function init_matrix () {
    echo -n "Initializing HDSP matrix-mixer..."
    for output in $(seq 0 27); do
        for input in $(seq 0 43); do
            echo -n "."
            amixer -D hw:DSP cset numid=5 $input,$output,0 > /dev/null 2>&1
        done
    done
echo
}


function scaninputs () {
for i in  $(seq 0 $cnt_i) ; do         
          in_l=${inputs_left[$i]}
          in_r=${inputs_right[$i]} 
          for y in  $(seq 0 $cnt_o) ; do
                    out_l=${outputs_left[$y]}
                    out_r=${outputs_right[$y]}
                    echo  "Connecting input:$in_l/$in_r to output: $out_l/$out_r"
                    amixer -D hw:DSP cset numid=5 $in_l,$out_l,32768 > /dev/null 2>&1
                    amixer -D hw:DSP cset numid=5 $in_r,$out_r,32768 > /dev/null 2>&1
          done
          aplay  -D$alsainterface -fcd "$track" > /dev/null 2>&1 &
          echo "Playback started..."
          echo -n "Any sound ? (y/(N)):"
          read z
          
          if [ "$z" == "y" ] ; then echo "Identified inputs: $in_l/$in_r" ;  break ; fi  
          
          for y in  $(seq 0 $cnt_o) ; do   
                    out_l=${outputs_left[$y]}
                    out_r=${outputs_right[$y]}
                    echo  "Connecting input:$in_l/$in_r to output: $out_l/$out_r"
                    amixer -D hw:DSP cset numid=5 $in_l,$out_l,0 > /dev/null 2>&1
                    amixer -D hw:DSP cset numid=5 $in_r,$out_r,0 > /dev/null 2>&1
          done        
done
if [ "$z" != "y" ] ; then echo "No working connection identified..." ; exit 1 ; fi
}


function scanoutputs () {
for k in  $(seq 0 $cnt_o) ; do
     out_l=${outputs_left[$k]}
     out_r=${outputs_right[$k]}
     echo  "Connecting input:$in_l/$in_r to output: $out_l/$out_r"
     amixer -D hw:DSP cset numid=5 $in_l,$out_l,32768 > /dev/null 2>&1
     amixer -D hw:DSP cset numid=5 $in_r,$out_r,32768 > /dev/null 2>&1
     aplay  -D$alsainterface -fcd "$track" > /dev/null 2>&1 &
     echo "Playback started..."
     echo -n "Any sound ? (y/(N)):" 
     read z
     if [ "$z" == "y" ] ; then echo "Identified outputs: $out_l/$out_r" ;  break ; fi  
     amixer -D hw:DSP cset numid=5 $in_l,$out_l,0 > /dev/null 2>&1
     amixer -D hw:DSP cset numid=5 $in_r,$out_r,0 > /dev/null 2>&1 
done
}


echo "Generating test-track..."
generate_track
init_matrix 
echo "Scan inputs..."
scaninputs
init_matrix 
echo "Scan outputs..."
scanoutputs
echo
echo "Result: inputs: $in_l/$in_r outputs: $out_l/$out_r"

exit 0
  Reply With Quote
Old 19th November 2009, 07:27 AM   #1410
diyAudio Member
 
Join Date: Oct 2009
Location: Sydney, Australia
After having all sorts of trouble getting a VIA S3 motherboard PC to work with Linux, I'm thinking of buying the following small form factor PC to run my RME Digi9632 card and BruteFIR under Linux for digital room correction (see other thread: Digital Room Correction Project).

Can anyone give an opinion as to whether this would be OK using Linux (Fedora or Ubuntu) - it would be much appreciated. Relevant details of PC are:

Make/Model: IBM/ThinkCentre M51 8106-D1M

Processor/Speed: Pentium 4/3.0GHz Intel® Pentium® 4 Processor 630 with HT Technology

Motherboard/Chipset: IBM/Intel 915GV

Memory slots: 400MHz DDR2 (Double Data Rate) dual channel memory support, PC2-4200 (400MHz) memory supported, 2 x 240 pin DDR2 SDRAM DIMM sockets, supports a maximum memory up to 4.0GB, ECC or parity memory is not supported

Installed memory: 1024mb

Storage: 80gb SATA Hard Disk Drive

Optical devices: CD-Rom

Video: Intergrated Intel Graphics Media Accelerator 900

Network: Integrated 10/100/1000 (Gigabit) Ethernet with Wake on LAN

On board I/O: Six USB ( two in front, four in back) [Ver 2.0], One Ethernet RJ-45, One serial 9-pin 16550 compatible, One parallel 25-pin (EPP, ECP), IEEE 1284, Keyboard, monitor, and mouse ports, Audio line in, headphone out, and microphone in jacks

Other: Slot 1: Full height, half length PCI

Expansion bays: One fixed Ultrabay Enhanced optical drive (accessible)
One 3.5-inch HDD (hidden)

Physical: 85mm high x 280mm wide x 260mm deep, weight fully loaded - approximately 9kgs
  Reply With Quote

Reply


Hide this!Advertise here!
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



New To Site? Need Help?

All times are GMT. The time now is 05:07 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2