diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-25 00:32:36 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-25 00:42:41 -0400 |
commit | 4afd1f9aa6a15f34e48b6af8d0152bb45f672cf1 (patch) | |
tree | c43435f1b78d0315f1ac2d97f58dffc02bf18f3f | |
parent | e7a492ef55df87bd7873a176a76a9a524da3f2ce (diff) | |
download | rockbox-4afd1f9aa6a15f34e48b6af8d0152bb45f672cf1.tar.gz rockbox-4afd1f9aa6a15f34e48b6af8d0152bb45f672cf1.zip |
hosted: Document HW capabilities of audio drivers
One surprise: X3ii is capable of 384KHz playback
Change-Id: I0cc88637c81a21d54979e82b2941fe14de933d4d
-rw-r--r-- | firmware/drivers/audio/erosqlinux_codec.c | 26 | ||||
-rw-r--r-- | firmware/drivers/audio/xduoolinux_codec.c | 42 |
2 files changed, 68 insertions, 0 deletions
diff --git a/firmware/drivers/audio/erosqlinux_codec.c b/firmware/drivers/audio/erosqlinux_codec.c index 268da54280..3b7155faef 100644 --- a/firmware/drivers/audio/erosqlinux_codec.c +++ b/firmware/drivers/audio/erosqlinux_codec.c | |||
@@ -37,6 +37,32 @@ | |||
37 | 37 | ||
38 | #include "logf.h" | 38 | #include "logf.h" |
39 | 39 | ||
40 | /* | ||
41 | PCM device hw:0,0 | ||
42 | |||
43 | ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED | ||
44 | FORMAT: S16_LE S24_LE | ||
45 | SUBFORMAT: STD | ||
46 | SAMPLE_BITS: [16 32] | ||
47 | FRAME_BITS: [16 64] | ||
48 | CHANNELS: [1 2] | ||
49 | RATE: [8000 192000] | ||
50 | PERIOD_TIME: (2666 8192000] | ||
51 | PERIOD_SIZE: [512 65536] | ||
52 | PERIOD_BYTES: [4096 131072] | ||
53 | PERIODS: [4 128] | ||
54 | BUFFER_TIME: (10666 32768000] | ||
55 | BUFFER_SIZE: [2048 262144] | ||
56 | BUFFER_BYTES: [4096 524288] | ||
57 | TICK_TIME: ALL | ||
58 | |||
59 | Mixer controls: | ||
60 | |||
61 | numid=1,iface=MIXER,name='Output Port Switch' | ||
62 | ; type=INTEGER,access=rw------,values=1,min=0,max=5,step=0 | ||
63 | : values=4 | ||
64 | */ | ||
65 | |||
40 | static int fd_hw = -1; | 66 | static int fd_hw = -1; |
41 | 67 | ||
42 | static long int vol_l_hw = 255; | 68 | static long int vol_l_hw = 255; |
diff --git a/firmware/drivers/audio/xduoolinux_codec.c b/firmware/drivers/audio/xduoolinux_codec.c index 5b83f0fa8c..5452a0f5c3 100644 --- a/firmware/drivers/audio/xduoolinux_codec.c +++ b/firmware/drivers/audio/xduoolinux_codec.c | |||
@@ -36,6 +36,48 @@ | |||
36 | 36 | ||
37 | #include "logf.h" | 37 | #include "logf.h" |
38 | 38 | ||
39 | /* | ||
40 | |||
41 | X3ii: | ||
42 | |||
43 | PCM device hw:0,0 | ||
44 | |||
45 | ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED | ||
46 | FORMAT: S16_LE S24_LE | ||
47 | SUBFORMAT: STD | ||
48 | SAMPLE_BITS: [16 32] | ||
49 | FRAME_BITS: [16 64] | ||
50 | CHANNELS: [1 2] | ||
51 | RATE: [8000 384000] | ||
52 | PERIOD_TIME: (1333 16384000] | ||
53 | PERIOD_SIZE: [512 131072] | ||
54 | PERIOD_BYTES: [4096 262144] | ||
55 | PERIODS: [4 256] | ||
56 | BUFFER_TIME: (5333 65536000] | ||
57 | BUFFER_SIZE: [2048 524288] | ||
58 | BUFFER_BYTES: [4096 1048576] | ||
59 | TICK_TIME: ALL | ||
60 | |||
61 | Mixer controls: | ||
62 | |||
63 | numid=1,iface=MIXER,name='Left Playback Volume' | ||
64 | ; type=INTEGER,access=rw------,values=1,min=0,max=255,step=0 | ||
65 | : values=0 | ||
66 | numid=2,iface=MIXER,name='Right Playback Volume' | ||
67 | ; type=INTEGER,access=rw------,values=1,min=0,max=255,step=0 | ||
68 | : values=0 | ||
69 | numid=3,iface=MIXER,name='AK4490 Digital Filter' | ||
70 | ; type=INTEGER,access=rw------,values=1,min=0,max=4,step=0 | ||
71 | : values=0 | ||
72 | numid=4,iface=MIXER,name='AK4490 Soft Mute' | ||
73 | ; type=BOOLEAN,access=rw------,values=1 | ||
74 | : values=off | ||
75 | numid=5,iface=MIXER,name='Output Port Switch' | ||
76 | ; type=INTEGER,access=rw------,values=1,min=0,max=5,step=0 | ||
77 | : values=0 | ||
78 | |||
79 | */ | ||
80 | |||
39 | static int fd_hw = -1; | 81 | static int fd_hw = -1; |
40 | 82 | ||
41 | static long int vol_l_hw = 255; | 83 | static long int vol_l_hw = 255; |