Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: doc: ReSTize CMIPCI document

A simple conversion from a plain text file.
Put to cards subdirectory.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+41 -22
+40 -22
Documentation/sound/alsa/CMIPCI.txt Documentation/sound/cards/cmipci.rst
··· 1 - Brief Notes on C-Media 8338/8738/8768/8770 Driver 2 - ================================================= 1 + ================================================= 2 + Brief Notes on C-Media 8338/8738/8768/8770 Driver 3 + ================================================= 3 4 4 - Takashi Iwai <tiwai@suse.de> 5 + Takashi Iwai <tiwai@suse.de> 5 6 6 7 7 8 Front/Rear Multi-channel Playback ··· 31 30 disabled. Otherwise no signal will be routed to the rear speakers. 32 31 As default it's turned on. 33 32 34 - *** WARNING *** 35 - When "Four Channel Mode" switch is off, the output from rear speakers 36 - will be FULL VOLUME regardless of Master and PCM volumes. 37 - This might damage your audio equipment. Please disconnect speakers 38 - before your turn off this switch. 39 - *** WARNING *** 33 + .. WARNING:: 34 + When "Four Channel Mode" switch is off, the output from rear speakers 35 + will be FULL VOLUME regardless of Master and PCM volumes [#]_. 36 + This might damage your audio equipment. Please disconnect speakers 37 + before your turn off this switch. 40 38 41 - [ Well.. I once got the output with correct volume (i.e. same with the 39 + 40 + .. [#] 41 + Well.. I once got the output with correct volume (i.e. same with the 42 42 front one) and was so excited. It was even with "Four Channel" bit 43 43 on and "double DAC" mode. Actually I could hear separate 4 channels 44 44 from front and rear speakers! But.. after reboot, all was gone. 45 45 It's a very pity that I didn't save the register dump at that 46 - time.. Maybe there is an unknown register to achieve this... ] 46 + time.. Maybe there is an unknown register to achieve this... 47 47 48 48 If your card has an extra output jack for the rear output, the rear 49 49 playback should be routed there as default. If not, there is a ··· 75 73 76 74 The 4.0 and 5.1 modes are defined as the pcm "surround40" and "surround51" 77 75 in alsa-lib. For example, you can play a WAV file with 6 channels like 76 + :: 78 77 79 78 % aplay -Dsurround51 sixchannels.wav 80 79 81 80 For programming the 4/6 channel playback, you need to specify the PCM 82 81 channels as you like and set the format S16LE. For example, for playback 83 82 with 4 channels, 83 + :: 84 84 85 85 snd_pcm_hw_params_set_access(pcm, hw, SND_PCM_ACCESS_RW_INTERLEAVED); 86 86 // or mmap if you like ··· 93 89 94 90 There are some control switches affecting to the speaker connections: 95 91 96 - "Line-In Mode" - an enum control to change the behavior of line-in 92 + Line-In Mode 93 + an enum control to change the behavior of line-in 97 94 jack. Either "Line-In", "Rear Output" or "Bass Output" can 98 95 be selected. The last item is available only with model 039 99 96 or newer. 100 97 When "Rear Output" is chosen, the surround channels 3 and 4 101 98 are output to line-in jack. 102 - "Mic-In Mode" - an enum control to change the behavior of mic-in 99 + Mic-In Mode 100 + an enum control to change the behavior of mic-in 103 101 jack. Either "Mic-In" or "Center/LFE Output" can be 104 102 selected. 105 103 When "Center/LFE Output" is chosen, the center and bass ··· 117 111 (hw:0,2). Usually this is assigned to the PCM device "spdif". 118 112 The available rates are 44100 and 48000 Hz. 119 113 For playback with aplay, you can run like below: 114 + :: 120 115 121 116 % aplay -Dhw:0,2 foo.wav 122 117 123 118 or 119 + 120 + :: 124 121 125 122 % aplay -Dspdif foo.wav 126 123 ··· 149 140 150 141 Additionally there are relevant control switches: 151 142 152 - "IEC958 Mix Analog" - Mix analog PCM playback and FM-OPL/3 streams and 143 + IEC958 Mix Analog 144 + Mix analog PCM playback and FM-OPL/3 streams and 153 145 output through SPDIF. This switch appears only on old chip 154 146 models (CM8738 033 and 037). 147 + 155 148 Note: without this control you can output PCM to SPDIF. 156 149 This is "mixing" of streams, so e.g. it's not for AC3 output 157 150 (see the next section). 158 151 159 - "IEC958 In Select" - Select SPDIF input, the internal CD-in (false) 152 + IEC958 In Select 153 + Select SPDIF input, the internal CD-in (false) 160 154 and the external input (true). 161 155 162 - "IEC958 Loop" - SPDIF input data is loop back into SPDIF 156 + IEC958 Loop 157 + SPDIF input data is loop back into SPDIF 163 158 output (aka bypass) 164 159 165 - "IEC958 Copyright" - Set the copyright bit. 160 + IEC958 Copyright 161 + Set the copyright bit. 166 162 167 - "IEC958 5V" - Select 0.5V (coax) or 5V (optical) interface. 163 + IEC958 5V 164 + Select 0.5V (coax) or 5V (optical) interface. 168 165 On some cards this doesn't work and you need to change the 169 166 configuration with hardware dip-switch. 170 167 171 - "IEC958 In Monitor" - SPDIF input is routed to DAC. 168 + IEC958 In Monitor 169 + SPDIF input is routed to DAC. 172 170 173 - "IEC958 In Phase Inverse" - Set SPDIF input format as inverse. 171 + IEC958 In Phase Inverse 172 + Set SPDIF input format as inverse. 174 173 [FIXME: this doesn't work on all chips..] 175 174 176 - "IEC958 In Valid" - Set input validity flag detection. 175 + IEC958 In Valid 176 + Set input validity flag detection. 177 177 178 178 Note: When "PCM Playback Switch" is on, you'll hear the digital output 179 179 stream through analog line-out. ··· 235 217 With CMI8738 and newer chips, the MIDI interface is enabled by default 236 218 and the driver automatically chooses a port address. 237 219 238 - There is _no_ hardware wavetable function on this chip (except for 220 + There is *no* hardware wavetable function on this chip (except for 239 221 OPL3 synth below). 240 222 What's said as MIDI synth on Windows is a software synthesizer 241 223 emulation. On Linux use TiMidity or other softsynth program for
+1
Documentation/sound/cards/index.rst
··· 5 5 :maxdepth: 2 6 6 7 7 joystick 8 + cmipci