View Single Post
Old 07-02-2012, 08:50 PM   #6
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
etc/asound.conf

The device is a Kindle 3.

Again for the interested:

vi /etc/asound.conf

Spoiler:

Code:
pcm.dmix0 {
type dmix
ipc_key 5155511
slave {
    pcm {
        type hw
        card 0
        device 0
        subdevice 0
        rate 44100
    }
    period_time 100000
    buffer_size 200000
}
}

also

[root@kindle /]# cat /proc/asound/pcm

00-00: WM8960 HiFi WM8960-I2S-0 : : playback 1 : capture 1

and

[root@kindle /etc]# arecord --list-devices (or) aplay --list-devices
Spoiler:

**** List of CAPTURE Hardware Devices ****
card 0: mx35luigi [mx35luigi], device 0: WM8960 HiFi WM8960-I2S-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

[root@kindle /etc]# aplay --list-pcms
Spoiler:

Code:
PCM list:
hw {
...elided...
			}
			default {
                                     ...elided...

dmix0 {
	type dmix
	ipc_key 5155511
	slave {
		pcm {
			type hw
			card 0
			device 0
			subdevice 0
			rate 44100
		}
		period_time 100000
		buffer_size 200000
	}
}

Perhaps a buffer size there. perhaps not.

so some interesting info. Standard 44.1k 16bit setup in the main.

Version of Alsa:
http://www.linuxfromscratch.org/blfs.../alsa-lib.html
offers the exact version of ALSA used: ALSA Library-1.0.13

Writing direct to /dev/snd/pcmxx0
It's not possible to write directly to the interface as that operation is deprecated, AFAIK on some systems this can be bypassed through the use of an application.

DirectfB
usr/share/directfb-1.2.0 contains cursor.dat perhaps an indication that the box runs http://directfb.org/downloads/Core/D...2.0-rc1.tar.gz

DirectFB offers some interesting options according to their site. I'll have to look it over in depth, this may or may not indicate audio extensions AFAIK, which isn't far.

I don't know haven't got it to compile yet.
stumbled on the lib support. not available for my system easily. ho hum

SDL:
SDL support is not planned in the near future for kindles. Go figure. People have run it embedded AIUI though.

More info on Alsa
There are various excellent notes - and various reasonable ones - littering the net.

http://www.sabi.co.uk/Notes/linuxSoundALSA.html seems fairly decent for entry-concept level stuff.

and the ubiquitous http://www.alsa-project.org/alsa-doc...lib/index.html

Examples of code
I am no code genius, but I can expand on the work of others.

I am aiming to provide decentish, full duplex support one day, and in the short term enough documentation that people can get the sound working.

Last edited by twobob; 07-10-2012 at 07:20 PM. Reason: added some sense, code tags etc
twobob is offline   Reply With Quote