8 posts • Page 1 of 1
i have a new sequencer program and i would like to switch the audio out for the program from the out on the card to the USB and,.. so i am looking around and trying things and not having any luck at it. is there some way to just bypass the audio out on the card altogether and make the USB the primary audio out? perhaps Gordon Henderson or somebody could be so kind as to tell which config file to mod?? i would appreciate it. thanks
IF you are running Raspbian Jessie with Pixel Desktop then just right click on the Audio Applet and choose USB Device.JoelHinson wrote:i have a new sequencer program and i would like to switch the audio out for the program from the out on the card to the USB and,.. so i am looking around and trying things and not having any luck at it. is there some way to just bypass the audio out on the card altogether and make the USB the primary audio out? perhaps Gordon Henderson or somebody could be so kind as to tell which config file to mod?? i would appreciate it. thanks
if you want a command line utility then install the alsa-utils package from the repository and run alsamixer.
Take what I advise as advice not the utopian holy grail, and it is gratis !!
to just choose the USB setting does not switch the audio jack on the board to off and it is the default setting for the program and there isnt any kind of toggle option in the program. i was reading a couple posts on the net about "alsa-base.conf" / "alsa.conf" and there was instruction to make the USB the primary/default but that didn't work, what the post said to do. so then i was looking for a second opinion on either: "turning off the audio jack on the board in the config file" or "setting the USB to the primary/default"? if you have instruction on how to do that could you please fill me in?
just trying to keep this topic fresh. this wasn't the advice i was looking for. once again i know how to adjust the setting on the alsamixer this is not the issue. the issue is a "seqencer" without any kind of selection feature that defaults to the audio out on the board. is there a way to make the default audio out the USB port? either by disabling the audio out on the board or making the USB the default?? its called "sonic pi" and it looks pretty cool and sounds ok but i'd really like to get the sound to default to the USB. any suggestions?
- Scan10097-2.jpg (62.81 KiB) Viewed 5170 times
Last edited by JoelHinson on Fri Jun 02, 2017 1:17 am, edited 1 time in total.
config.txt is usually located in the FAT16/32 boot partition -- /boot/config.txt.JoelHinson wrote:which directory is this? and what is the scope of what that would effect? because i don't want all of the audio accessories "off", rather just would like the USB to be pointed to as the default.
https://github.com/raspberrypi/linux/bl ... ays/READMEaudio -- Set to "on" to enable the onboard ALSA audio interface (default "off")
Commenting it out or setting it to off (the default) should disable the onboard audio. The snd_bcm2835 module will not be loaded.
I've seen examples of people using an "index" parameter when loading the snd_usb_audio and snd_bcm2835 modules like this:
I'm not sure how that is supposed to work since it seems the only parameter that the snd_bcm2835 module accepts is force_bulk. Perhaps ordering them via the snd module's slots parameter works?
Code: Select all
options snd_usb_audio index=0 options snd_bcm2835 index=1 options snd slots=snd-usb-audio,snd-bcm2835
EDIT: http://alsa.opensrc.org/MultipleCards seems to confirm that.
How to choose a particular order for multiple installed cards
Which card is card number 0, 1 and so is by default determined by module load order. This is particularly useful to choose which card becomes the default one.
In theory therefore it is possible to choose which of several installed cards becomes card 0, the default one, by ensuring its driver module is loaded first. (Note: this assumes that each sound card requires a different driver. If you have two soundcards of the same type, please skip to the next section.)
There are two ways to achieve this, the "old" index= option of the card driver module, and the alternative (and new) slots= option of the snd module.
The older "index=" method
An example configuration for two sound cards is like below:The newer "slots=" method
Code: Select all
# ALSA portion options snd cards_limit=2 alias snd-card-0 snd-interwave alias snd-card-1 snd-ens1371 options snd-interwave index=0 options snd-ens1371 index=1 # OSS/Free portion alias sound-slot-0 snd-interwave alias sound-slot-1 snd-ens1371
Alternatively, you can use the slot option instead of the index options:Then, the first slot (#0) is reserved for snd-interwave driver, and the second (#1) for snd-ens1371. You can omit index option in each driver if slots option is used (although you can still have them at the same time as long as they don't conflict).
Code: Select all
options snd slots=snd-interwave,snd-ens1371
According to ALSA-Configuration.txt, The slots option is especially useful for avoiding the possible hot-plugging and the resultant slot conflict. For example, in the case above again, the first two slots are already reserved. If any other driver (e.g. snd-usb-audio) is loaded before snd-interwave or snd-ens1371, it will be assigned to the third or later slot.
A+,.. that was a good tip. that pointed everything to the USB without having to go in and define everything as a priority within the alsa config. thanks for the advice ktb!!! (see attachment) see the problem is i built a box for the thing and added switches to the GPIOpins and i didnt plan the box for the "audio out" on the board, because i went and got the USB piece so it has "audio in",.. but then most of everything extra is pointed to the audio jack on the board,.. this solves this. i have been looking at all kinds of advice on this and have tried numerous techniques. thank you for your time and for helping me out.
- Scan10103-1.jpg (61.5 KiB) Viewed 5003 times