![]() |
How do I change the default sound card? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +--- Thread: How do I change the default sound card? (/showthread.php?tid=2300) |
How do I change the default sound card? - zirconx - 10-01-2016 I would like to change the default audio to the headphone jack. I am running dietPi (no gui/de). I know I can change the alsa default card with an environment variable or asound.conf, but I think that only affects alsa utilities. I'm also using sox, so I just want to change the default (first) card at the OS level. Actually I could settle for getting sox to pick up a different card by default but I have not been successful in that. So I think I need to create a file in /etc/modprobe.d, with lines like Quote:options sunxi_sndcodec index=0 I also tried reversing them: Quote:options sunxi_codec index=0 but it's not working. The hdmi output is always listed as the first card. Code: root@DietPi:~# cat /proc/asound/cards I'm just guessing at the driver names based on lsmod. Any ideas? Thanks. here's the output of lsmod. Code: root@DietPi:~# lsmod RE: How do I change the default sound card? - janeku - 10-01-2016 There is a topic regarding earphones output. Browse a little bit with keyword: audiojack RE: How do I change the default sound card? - pfeerick - 10-02-2016 (10-01-2016, 07:18 AM)zirconx Wrote:Quote:options sunxi_sndcodec index=0 Ok, so the ALSA asound.conf change I've mentioned somewhere (do you think I can find it again? ![]() ![]() |