sobukus | Anyone got experience getting USB audio working on a N800 with OS2008? | 14:22 |
---|---|---|
KotCzarny | yeah, works for some time then craps badly | 14:23 |
sobukus | I'd like to continue using it as jukebox, got the USB hub and keyboard connected, also snd-usb-audio module loaded. | 14:23 |
sobukus | craps? | 14:23 |
KotCzarny | afair hardcrashes the kernel | 14:23 |
KotCzarny | but it was LONG time ago | 14:23 |
sobukus | My issue is that I cannot convince a player to use the device, although /proc/asound/cards suggests there is hw:1,0, that is not accepted. | 14:24 |
KotCzarny | use the player that uses alsa, not oss/esd | 14:24 |
sobukus | KotCzarny: I'm using my own build of mpg123/ | 14:24 |
* sobukus is actually mpg123 upstream maintainer | 14:24 | |
KotCzarny | check what device it actually opens with strace | 14:25 |
sobukus | I get snd_pcm_open_noupdate(): Unknown PCM hw:1,0 … after telling mpg123 explicitly to use that (-o alsa -a hw:1,0) | 14:26 |
KotCzarny | try 1.0 ? | 14:27 |
KotCzarny | (wild guess) | 14:27 |
sobukus | The /usr/share/alsa/alsa.conf has some trickery to route ALSA to ESD, I presume … that's why the default device plays through the speakers. | 14:27 |
sobukus | nah | 14:27 |
sobukus | What is also strange, I cannot get a listing of ALSA devices using snd_device_name_hint() because that errors out on the card 0 that only has a control, but no pcm. | 14:28 |
sobukus | I wonder how "normal" the ALSA setup on OS2008 is. | 14:29 |
KotCzarny | i would assume they've hacked alsa hard | 14:29 |
KotCzarny | try static compile of mpg123 with libasound | 14:29 |
KotCzarny | vanilla one, not the sdk one | 14:29 |
sobukus | Hm. So far I just built things on the device itself. You mean I should try to cross-compile a normal libasound … | 14:30 |
sobukus | Or, hm, I could just try to build a vanilla one (old source tarball) … | 14:30 |
KotCzarny | since you are in fiddling mode, yeah | 14:30 |
KotCzarny | or check what patches the sdk one has | 14:31 |
sobukus | To be sure: 1.0.14sa-2maemo2 is a version hacked by Nokia? | 14:31 |
KotCzarny | but i think i was using usbaudio with n800 and some player | 14:31 |
KotCzarny | disclaimer: i havent touched n800 sdk for many years | 14:32 |
sobukus | I'll try to download some alsa-lib and alsa-utils sources to test things. | 14:32 |
sobukus | Of course I know that it's a bit silly hanging onto the old beast for that. | 14:34 |
KotCzarny | n800 is nice | 14:34 |
KotCzarny | i've turned mine into audio box with my audio player | 14:35 |
sobukus | I had a HP Jornada 720 here for a short period … can take large SD cards via CF for music and has built-in keyboard for easy control … but the onboard sound is crappy. | 14:35 |
KotCzarny | yup, same with n800 | 14:35 |
KotCzarny | unfortunatelly | 14:35 |
sobukus | N800 might be able to use proper DAC via usb … as the audio playback is not that suberb with the onboard ESD-stype thingie. | 14:35 |
sobukus | The noise might be OK, but I struggle to have gapless playback … it has the odd interruption from time to time. | 14:36 |
sobukus | Oh, the bloat … libncurses5-dev needs 5M of storage (needed for alsa-utils). But it's really nice that the repos for apt are still present! | 14:52 |
Maxdamantus | You should be able to uninstall libncurses5-dev after using it to build whatever you need. | 14:58 |
sobukus | yeah | 15:00 |
sobukus | I still got whopping 45.5M free on / ;-) | 15:01 |
KotCzarny | moving /usr/include to sdcard works ok | 15:01 |
KotCzarny | as long you have ext2/3/4 there | 15:01 |
KotCzarny | pop a symlink and it's ok | 15:01 |
KotCzarny | same for /usr/lib/gccsomething | 15:02 |
sobukus | Yes, I got a 32G sd card with ex | 15:02 |
sobukus | t | 15:02 |
sobukus | (and another one full with music) | 15:02 |
sobukus | I wonder, though, would the n800 take larger ones? | 15:02 |
KotCzarny | yup | 15:02 |
KotCzarny | i think there is a thread for that on tmo [tm] | 15:03 |
sobukus | I'll try my 200G one;-) | 15:04 |
sobukus | alsa-utils 1.0.14 built … aplay -l complains about Invalid CTL hw:0 and Invalid CTL hw:1 | 15:06 |
KotCzarny | update your asound.conf to include ctl nodes too | 15:06 |
Maxdamantus | In general, SD sizes are not compatibility issues, unless you're using a device with a funny operating system that might have been designed without considering large sizes. | 15:07 |
sobukus | KotCzarny: the /usr/share/alsa/alsa.conf has ctl.!default … but it is this dsp_ctl thing that redirects to /dev/dsptask | 15:07 |
sobukus | and ctl.!master{ type hw; card 0 } | 15:08 |
sobukus | I'd figure that the bare hw: devices should be visible without an alsa config, no? | 15:08 |
KotCzarny | try playing only with card 1 (the usb one) | 15:09 |
KotCzarny | playing / fiddling | 15:09 |
sobukus | Do you mean in the alsa.conf / asoundrc? Because that is what confuses me … I cannot make things use hw:1,0 | 15:10 |
* sobukus trying a vanilla build of alsa-lib | 15:10 | |
KotCzarny | /etc/asound... | 15:10 |
KotCzarny | /etc/asound.conf to be exact | 15:11 |
sobukus | KotCzarny: by default, there is no /etc/asound.conf here | 15:12 |
KotCzarny | make one? | 15:12 |
sobukus | I'm using bare ALSA on my linux desktops … I don't need any asound.conf if I don't want to cofigure some plugins (like 5.1 → 2.0 mixing). | 15:12 |
sobukus | What would I write into an asound.conf for "just give me the bare devices"? | 15:13 |
KotCzarny | i usually dont touch system's config files, only the one in /etc or ~ | 15:13 |
KotCzarny | try that one: https://pastebin.com/raw/981gYD5a | 15:14 |
KotCzarny | it's copied from example when default card is the wrong one | 15:14 |
sobukus | Yeah, I tried something similar before. I'm testing your example in /etc/asound.conf to be sure | 15:15 |
sobukus | Heh. System freeze. Reboot. | 15:18 |
KotCzarny | ;) | 15:18 |
KotCzarny | told'ya | 15:18 |
sobukus | too bad | 15:18 |
KotCzarny | i think it's power related | 15:18 |
sobukus | Uh? The USB device is externally powered. | 15:18 |
KotCzarny | because it was working sometimes, and crapping sometimes | 15:18 |
sobukus | I have the n800 hooked up to a powered hub. | 15:19 |
KotCzarny | since when n800 takes power from hub? | 15:19 |
sobukus | The USB audio takes power from hub. | 15:19 |
KotCzarny | ahm, k | 15:19 |
sobukus | And the n800, actually, since I got it hooked with a USB power cable I had from a Nokia phone. | 15:19 |
KotCzarny | without serial cable it's hard to debug hard crashes | 15:20 |
KotCzarny | that's why i'm only guessing | 15:20 |
KotCzarny | maybe you can try connecting usbaudio directly? | 15:21 |
sobukus | I wonder if the device will come back … since it'll try to use /etc/asound.conf … | 15:21 |
sobukus | Didn't the n800 not supply power at all? | 15:21 |
KotCzarny | i think in my experiments i was using simple usbotg cable | 15:22 |
sobukus | Hm. I guess I should be using a RasPi for stuff like that … or, Lord behold, an actual dedicated music player with Rockbox. | 15:23 |
KotCzarny | hmm, if i find my microusbotg cable i might check | 15:23 |
KotCzarny | nah, never a raspi | 15:23 |
sobukus | hehe | 15:23 |
KotCzarny | overpiced and crippled | 15:23 |
KotCzarny | oranges + good dac/amp are good idea tho | 15:24 |
KotCzarny | for casual listening even onboard audio is ok paired with pam based microamp | 15:24 |
KotCzarny | https://imgur.com/a/jFygV | 15:25 |
sobukus | I got a monster amp with two bridged TPA3110D2;-) | 15:25 |
KotCzarny | i've bought tpa3116 recently | 15:25 |
KotCzarny | will use it soon | 15:25 |
sobukus | But indeed also a little speaker built with flexible air duct as casing that has a PAM inside, usually powered by solar cells;-) | 15:26 |
KotCzarny | pity there are still no 325X solutions yet | 15:26 |
sobukus | 3116 is nice, has plenty of power for normal HiFi listening | 15:26 |
KotCzarny | those seem better (according to spec sheets) | 15:26 |
sobukus | Also I learned that these amps do not care about noisy psus (burst mode) … you only need to take care of the preamp (little linear psu). | 15:27 |
KotCzarny | btw. i've added boot menu to my n800, so i can choose what and where it shall boot | 15:29 |
sobukus | my desktop amp with the two 3110 uses one noisy psu just with a normal linear regulator (not low drop) for the preamp (lm1036). Noise level is OK-ish with that. | 15:29 |
sobukus | My n800 seems to be in a boot loop now. | 15:29 |
sobukus | How do I get rid of the /etc/asound.conf now? | 15:29 |
KotCzarny | hmm | 15:30 |
sobukus | I don't blame you … I was careless. | 15:30 |
KotCzarny | i need to refresh my diablo memory | 15:30 |
sobukus | I guess there's a rescue shell in the initrd? | 15:31 |
KotCzarny | n900 can boot from usb | 15:31 |
KotCzarny | i wonder if n800 has similar capability | 15:31 |
sobukus | Hey, it came back! After pulling the battery, I got a desktop now again. | 15:32 |
KotCzarny | make a backup | 15:32 |
KotCzarny | and/or add sdcard booting option | 15:32 |
KotCzarny | :) | 15:32 |
sobukus | and how'd I restore if it is bricked? | 15:32 |
sobukus | yeah, booting options | 15:33 |
KotCzarny | cloning os to sdcard helps | 15:33 |
KotCzarny | and generally i've left working os on internal flash and only fiddle with sdcard | 15:33 |
KotCzarny | flasher-3.0 --set-root-device mmc | 15:34 |
KotCzarny | interestingly you can also set boot device via flasher | 15:34 |
sobukus | sudo hm, never used that | 15:35 |
sobukus | I actually only got the n800 used and it always was a jukebox without further fiddling | 15:35 |
sobukus | it tries to power the audio device, btw, without the hub. | 15:35 |
sobukus | I just don't have the virtual keyboard anymore then, as it thinks there is a USB hid. | 15:35 |
KotCzarny | ssh? | 15:36 |
sobukus | Uh … I could … from the phone that does the WLAN hotspot … | 15:36 |
sobukus | Just tried the playback again … it is consistent: crash, immediate | 15:37 |
KotCzarny | also, try different usbaudio card | 15:38 |
sobukus | hm, the device crashes again when it would want to play a sound | 15:39 |
sobukus | I need to be careful to delete the asound.conf without causing a beep. | 15:39 |
KotCzarny | maybe change !default into some card name | 15:39 |
KotCzarny | just booted my n800, i have the config i've pasted with !default changed into usb | 15:46 |
sobukus | and? | 15:47 |
KotCzarny | dont have my miniusbotg cable here | 15:47 |
KotCzarny | i will try to remember to check it later this week tho | 15:48 |
sobukus | Oh, no bother … but I'll hang around here for the case you do;-) | 15:50 |
KotCzarny | another thing is i've modified ~/.asoundrc | 15:52 |
KotCzarny | /root/.asoundrc to be even more exact | 16:02 |
sobukus | hm | 16:02 |
sobukus | I'm waiting for it to get out of the boot loop this second time | 16:03 |
KotCzarny | so my experiments were tied to running commands as root | 16:03 |
sobukus | me, got rid of /etc/asound.conf, but triggered a reboot now as root with asoundrc | 16:22 |
sobukus | and now the display faded with an eerie hardware effect | 16:23 |
KotCzarny | got another usbaudio dongle? | 16:23 |
sobukus | not right now | 16:23 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!