~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/input/devices/yealink.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/input/devices/yealink.rst (Version linux-6.11.5) and /Documentation/input/devices/yealink.rst (Version unix-v6-master)


  1 ==============================================    
  2 Driver documentation for yealink usb-p1k phone    
  3 ==============================================    
  4                                                   
  5 Status                                            
  6 ======                                            
  7                                                   
  8 The p1k is a relatively cheap usb 1.1 phone wi    
  9                                                   
 10   - keyboard            full support, yealink.    
 11   - LCD                 full support, yealink.    
 12   - LED                 full support, yealink.    
 13   - dialtone            full support, yealink.    
 14   - ringtone            full support, yealink.    
 15   - audio playback      full support, snd_usb_    
 16   - audio record        full support, snd_usb_    
 17                                                   
 18 For vendor documentation see http://www.yealin    
 19                                                   
 20                                                   
 21 keyboard features                                 
 22 =================                                 
 23                                                   
 24 The current mapping in the kernel is provided     
 25 function::                                        
 26                                                   
 27    Physical USB-P1K button layout       input     
 28                                                   
 29                                                   
 30               up                             u    
 31         IN           OUT                left,     
 32              down                           do    
 33                                                   
 34       pickup   C    hangup              enter,    
 35         1      2      3                 1, 2,     
 36         4      5      6                 4, 5,     
 37         7      8      9                 7, 8,     
 38         *      0      #                 *, 0,     
 39                                                   
 40 The "up" and "down" keys, are symbolised by ar    
 41 The "pickup" and "hangup" keys are symbolised     
 42 on the button.                                    
 43                                                   
 44                                                   
 45 LCD features                                      
 46 ============                                      
 47                                                   
 48 The LCD is divided and organised as a 3 line d    
 49                                                   
 50     |[]   [][]   [][]   [][]   in   |[][]         
 51     |[] M [][] D [][] : [][]   out  |[][]         
 52                               store               
 53                                                   
 54     NEW REP         SU MO TU WE TH FR SA          
 55                                                   
 56     [] [] [] [] [] [] [] [] [] [] [] []           
 57     [] [] [] [] [] [] [] [] [] [] [] []           
 58                                                   
 59                                                   
 60   Line 1  Format (see below)    : 18.e8.M8.88.    
 61           Icon names            :   M  D  :  I    
 62   Line 2  Format                : .........       
 63           Icon name             : NEW REP SU M    
 64   Line 3  Format                : 888888888888    
 65                                                   
 66                                                   
 67 Format description:                               
 68   From a userspace perspective the world is se    
 69   A digit can have a character set, an icon ca    
 70                                                   
 71   Format specifier::                              
 72                                                   
 73     '8' :  Generic 7 segment digit with indivi    
 74                                                   
 75     Reduced capability 7 segment digit, when s    
 76     '1' : 2 segments digit only able to produc    
 77     'e' : Most significant day of the month di    
 78           able to produce at least 1 2 3.         
 79     'M' : Most significant minute digit,          
 80           able to produce at least 0 1 2 3 4 5    
 81                                                   
 82     Icons or pictograms:                          
 83     '.' : For example like AM, PM, SU, a 'dot'    
 84           elements.                               
 85                                                   
 86                                                   
 87 Driver usage                                      
 88 ============                                      
 89                                                   
 90 For userland the following interfaces are avai    
 91                                                   
 92   /sys/.../                                       
 93            line1        Read/Write, lcd line1     
 94            line2        Read/Write, lcd line2     
 95            line3        Read/Write, lcd line3     
 96                                                   
 97            get_icons    Read, returns a set of    
 98            hide_icon    Write, hide the elemen    
 99            show_icon    Write, display the ele    
100                                                   
101            map_seg7     Read/Write, the 7 segm    
102                         yealink phones. (see m    
103                                                   
104            ringtone     Write, upload binary r    
105                         see yealink.c. status     
106                         races between async. a    
107                                                   
108                                                   
109 lineX                                             
110 ~~~~~                                             
111                                                   
112 Reading /sys/../lineX will return the format s    
113                                                   
114   Example::                                       
115                                                   
116     cat ./line3                                   
117     888888888888                                  
118     Linux Rocks!                                  
119                                                   
120 Writing to /sys/../lineX will set the correspo    
121                                                   
122  - Excess characters are ignored.                 
123  - If less characters are written than allowed    
124    unchanged.                                     
125  - The tab '\t'and '\n' char does not overwrit    
126  - Writing a space to an icon will always hide    
127                                                   
128   Example::                                       
129                                                   
130     date +"%m.%e.%k:%M"  | sed 's/^0/ /' > ./l    
131                                                   
132   Will update the LCD with the current date &     
133                                                   
134                                                   
135 get_icons                                         
136 ~~~~~~~~~                                         
137                                                   
138 Reading will return all available icon names a    
139                                                   
140   cat ./get_icons                                 
141   on M                                            
142   on D                                            
143   on :                                            
144      IN                                           
145      OUT                                          
146      STORE                                        
147      NEW                                          
148      REP                                          
149      SU                                           
150      MO                                           
151      TU                                           
152      WE                                           
153      TH                                           
154      FR                                           
155      SA                                           
156      LED                                          
157      DIALTONE                                     
158      RINGTONE                                     
159                                                   
160                                                   
161 show/hide icons                                   
162 ~~~~~~~~~~~~~~~                                   
163                                                   
164 Writing to these files will update the state o    
165 Only one icon at a time can be updated.           
166                                                   
167 If an icon is also on a ./lineX the correspond    
168 updated with the first letter of the icon.        
169                                                   
170   Example - light up the store icon::             
171                                                   
172     echo -n "STORE" > ./show_icon                 
173                                                   
174     cat ./line1                                   
175     18.e8.M8.88...188                             
176                   S                               
177                                                   
178   Example - sound the ringtone for 10 seconds:    
179                                                   
180     echo -n RINGTONE > /sys/..../show_icon        
181     sleep 10                                      
182     echo -n RINGTONE > /sys/..../hide_icon        
183                                                   
184                                                   
185 Sound features                                    
186 ==============                                    
187                                                   
188 Sound is supported by the ALSA driver: snd_usb    
189                                                   
190 One 16-bit channel with sample and playback ra    
191 limit of the device.                              
192                                                   
193   Example - recording test::                      
194                                                   
195     arecord -v -d 10 -r 8000 -f S16_LE -t wav     
196                                                   
197   Example - playback test::                       
198                                                   
199     aplay foobar.wav                              
200                                                   
201                                                   
202 Troubleshooting                                   
203 ===============                                   
204                                                   
205 :Q: Module yealink compiled and installed with    
206     is not initialized and does not react to a    
207 :A: If you see something like:                    
208     hiddev0: USB HID v1.00 Device [Yealink Net    
209     in dmesg, it means that the hid driver has    
210     load module yealink before any other usb h    
211     instructions provided by your distribution    
212                                                   
213 :Q: Phone is working now (displays version and    
214     find the sysfs files.                         
215 :A: The sysfs files are located on the particu    
216     distributions you can do: "find /sys/ -nam    
217                                                   
218                                                   
219 Credits & Acknowledgments                         
220 =========================                         
221                                                   
222   - Olivier Vandorpe, for starting the usbb2k-    
223     the reverse engineering.                      
224   - Martin Diehl, for pointing out how to hand    
225   - Dmitry Torokhov, for the numerous code rev    
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php