Skip to contentSkip to conversation

ASoc: tac5x1x: mixer-test report

PATCH Superseded Niranjan H Y 2 participants 6 messages Jun 6, 2025 – Jun 10, 2025

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover ASoc: tac5x1x: mixer-test report

mixer-test report:
TAP version 13
# Card 0/titac5x1xsoundc - ti,tac5x1x-soundcard (ti,tac5x1x-soundcard) 1..679
ok 1 get_value.titac5x1xsoundc.96

  # titac5x1xsoundc.96 ASI_TX_CH4_EN Capture Switch
  ok 2 name.titac5x1xsoundc.96
  ok 3 write_default.titac5x1xsoundc.96
  ok 4 write_valid.titac5x1xsoundc.96
  ok 5 write_invalid.titac5x1xsoundc.96
  ok 6 event_missing.titac5x1xsoundc.96
  ok 7 event_spurious.titac5x1xsoundc.96
  ok 8 get_value.titac5x1xsoundc.95
  # titac5x1xsoundc.95 ASI_TX_CH3_EN Capture Switch
  ok 9 name.titac5x1xsoundc.95
  ok 10 write_default.titac5x1xsoundc.95
  ok 11 write_valid.titac5x1xsoundc.95
  ok 12 write_invalid.titac5x1xsoundc.95
  ok 13 event_missing.titac5x1xsoundc.95
  ok 14 event_spurious.titac5x1xsoundc.95
  ok 15 get_value.titac5x1xsoundc.94
  # titac5x1xsoundc.94 PDM ch3 & ch4 Datain Select
  ok 16 name.titac5x1xsoundc.94
  ok 17 write_default.titac5x1xsoundc.94
  ok 18 write_valid.titac5x1xsoundc.94
  ok 19 write_invalid.titac5x1xsoundc.94
  ok 20 event_missing.titac5x1xsoundc.94
  ok 21 event_spurious.titac5x1xsoundc.94
  ok 22 get_value.titac5x1xsoundc.93
  # titac5x1xsoundc.93 PDM ch1 & ch2 Datain Select
  ok 23 name.titac5x1xsoundc.93
  ok 24 write_default.titac5x1xsoundc.93
  ok 25 write_valid.titac5x1xsoundc.93
  ok 26 write_invalid.titac5x1xsoundc.93
  ok 27 event_missing.titac5x1xsoundc.93
  ok 28 event_spurious.titac5x1xsoundc.93
  ok 29 get_value.titac5x1xsoundc.92
  # titac5x1xsoundc.92 IN2 Source Mux
  ok 30 name.titac5x1xsoundc.92
  ok 31 write_default.titac5x1xsoundc.92
  ok 32 write_valid.titac5x1xsoundc.92
  ok 33 write_invalid.titac5x1xsoundc.92
  ok 34 event_missing.titac5x1xsoundc.92
  ok 35 event_spurious.titac5x1xsoundc.92
  ok 36 get_value.titac5x1xsoundc.91
  # titac5x1xsoundc.91 IN1 Source Mux
  ok 37 name.titac5x1xsoundc.91
  ok 38 write_default.titac5x1xsoundc.91
  ok 39 write_valid.titac5x1xsoundc.91
  ok 40 write_invalid.titac5x1xsoundc.91
  ok 41 event_missing.titac5x1xsoundc.91
  ok 42 event_spurious.titac5x1xsoundc.91
  ok 43 get_value.titac5x1xsoundc.90
  # titac5x1xsoundc.90 ADC2 Config
  ok 44 name.titac5x1xsoundc.90
  ok 45 write_default.titac5x1xsoundc.90
  ok 46 write_valid.titac5x1xsoundc.90
  ok 47 write_invalid.titac5x1xsoundc.90
  ok 48 event_missing.titac5x1xsoundc.90
  ok 49 event_spurious.titac5x1xsoundc.90
  ok 50 get_value.titac5x1xsoundc.89
  # titac5x1xsoundc.89 ADC2 Full-Scale
  ok 51 name.titac5x1xsoundc.89
  ok 52 write_default.titac5x1xsoundc.89
  ok 53 write_valid.titac5x1xsoundc.89
  ok 54 write_invalid.titac5x1xsoundc.89
  ok 55 event_missing.titac5x1xsoundc.89
  ok 56 event_spurious.titac5x1xsoundc.89
  ok 57 get_value.titac5x1xsoundc.88
  # titac5x1xsoundc.88 ASI_RX_CH2_EN Switch
  ok 58 name.titac5x1xsoundc.88
  ok 59 write_default.titac5x1xsoundc.88
  ok 60 write_valid.titac5x1xsoundc.88
  ok 61 write_invalid.titac5x1xsoundc.88
  ok 62 event_missing.titac5x1xsoundc.88
  ok 63 event_spurious.titac5x1xsoundc.88
  ok 64 get_value.titac5x1xsoundc.87
  # titac5x1xsoundc.87 OUT2x Driver
  ok 65 name.titac5x1xsoundc.87
  ok 66 write_default.titac5x1xsoundc.87
  ok 67 write_valid.titac5x1xsoundc.87
  ok 68 write_invalid.titac5x1xsoundc.87
  ok 69 event_missing.titac5x1xsoundc.87
  ok 70 event_spurious.titac5x1xsoundc.87
  ok 71 get_value.titac5x1xsoundc.86
  # titac5x1xsoundc.86 OUT2x Config
  ok 72 name.titac5x1xsoundc.86
  ok 73 write_default.titac5x1xsoundc.86
  ok 74 write_valid.titac5x1xsoundc.86
  ok 75 write_invalid.titac5x1xsoundc.86
  ok 76 event_missing.titac5x1xsoundc.86
  ok 77 event_spurious.titac5x1xsoundc.86
  ok 78 get_value.titac5x1xsoundc.85
  # titac5x1xsoundc.85 OUT2x Source
  ok 79 name.titac5x1xsoundc.85
  ok 80 write_default.titac5x1xsoundc.85
  ok 81 write_valid.titac5x1xsoundc.85
  ok 82 write_invalid.titac5x1xsoundc.85
  ok 83 event_missing.titac5x1xsoundc.85
  ok 84 event_spurious.titac5x1xsoundc.85
  ok 85 get_value.titac5x1xsoundc.84
  # titac5x1xsoundc.84 ASI_RX_CH1_EN Switch
  ok 86 name.titac5x1xsoundc.84
  ok 87 write_default.titac5x1xsoundc.84
  ok 88 write_valid.titac5x1xsoundc.84
  ok 89 write_invalid.titac5x1xsoundc.84
  ok 90 event_missing.titac5x1xsoundc.84
  ok 91 event_spurious.titac5x1xsoundc.84
  ok 92 get_value.titac5x1xsoundc.83
  # titac5x1xsoundc.83 OUT1x Driver
  ok 93 name.titac5x1xsoundc.83
  ok 94 write_default.titac5x1xsoundc.83
  ok 95 write_valid.titac5x1xsoundc.83
  ok 96 write_invalid.titac5x1xsoundc.83
  ok 97 event_missing.titac5x1xsoundc.83
  ok 98 event_spurious.titac5x1xsoundc.83
  ok 99 get_value.titac5x1xsoundc.82
  # titac5x1xsoundc.82 OUT1x Config
  ok 100 name.titac5x1xsoundc.82
  ok 101 write_default.titac5x1xsoundc.82
  ok 102 write_valid.titac5x1xsoundc.82
  ok 103 write_invalid.titac5x1xsoundc.82
  ok 104 event_missing.titac5x1xsoundc.82
  ok 105 event_spurious.titac5x1xsoundc.82
  ok 106 get_value.titac5x1xsoundc.81
  # titac5x1xsoundc.81 OUT1x Source
  ok 107 name.titac5x1xsoundc.81
  ok 108 write_default.titac5x1xsoundc.81
  ok 109 write_valid.titac5x1xsoundc.81
  ok 110 write_invalid.titac5x1xsoundc.81
  ok 111 event_missing.titac5x1xsoundc.81
  ok 112 event_spurious.titac5x1xsoundc.81
  ok 113 get_value.titac5x1xsoundc.80
  # titac5x1xsoundc.80 ASI_TX_CH2_EN Capture Switch
  ok 114 name.titac5x1xsoundc.80
  ok 115 write_default.titac5x1xsoundc.80
  ok 116 write_valid.titac5x1xsoundc.80
  ok 117 write_invalid.titac5x1xsoundc.80
  ok 118 event_missing.titac5x1xsoundc.80
  ok 119 event_spurious.titac5x1xsoundc.80
  ok 120 get_value.titac5x1xsoundc.79
  # titac5x1xsoundc.79 ASI_TX_CH1_EN Capture Switch
  ok 121 name.titac5x1xsoundc.79
  ok 122 write_default.titac5x1xsoundc.79
  ok 123 write_valid.titac5x1xsoundc.79
  ok 124 write_invalid.titac5x1xsoundc.79
  ok 125 event_missing.titac5x1xsoundc.79
  ok 126 event_spurious.titac5x1xsoundc.79
  ok 127 get_value.titac5x1xsoundc.78
  # titac5x1xsoundc.78 ADC1 Config
  ok 128 name.titac5x1xsoundc.78
  ok 129 write_default.titac5x1xsoundc.78
  ok 130 write_valid.titac5x1xsoundc.78
  ok 131 write_invalid.titac5x1xsoundc.78
  ok 132 event_missing.titac5x1xsoundc.78
  ok 133 event_spurious.titac5x1xsoundc.78
  ok 134 get_value.titac5x1xsoundc.77
  # titac5x1xsoundc.77 ADC1 Full-Scale
  ok 135 name.titac5x1xsoundc.77
  ok 136 write_default.titac5x1xsoundc.77
  ok 137 write_valid.titac5x1xsoundc.77
  ok 138 write_invalid.titac5x1xsoundc.77
  ok 139 event_missing.titac5x1xsoundc.77
  ok 140 event_spurious.titac5x1xsoundc.77
  ok 141 get_value.titac5x1xsoundc.76
  # titac5x1xsoundc.76 IN_CH4_EN Capture Switch
  ok 142 name.titac5x1xsoundc.76
  ok 143 write_default.titac5x1xsoundc.76
  ok 144 write_valid.titac5x1xsoundc.76
  ok 145 write_invalid.titac5x1xsoundc.76
  ok 146 event_missing.titac5x1xsoundc.76
  ok 147 event_spurious.titac5x1xsoundc.76
  ok 148 get_value.titac5x1xsoundc.75
  # titac5x1xsoundc.75 IN_CH3_EN Capture Switch
  ok 149 name.titac5x1xsoundc.75
  ok 150 write_default.titac5x1xsoundc.75
  ok 151 write_valid.titac5x1xsoundc.75
  ok 152 write_invalid.titac5x1xsoundc.75
  ok 153 event_missing.titac5x1xsoundc.75
  ok 154 event_spurious.titac5x1xsoundc.75
  ok 155 get_value.titac5x1xsoundc.74
  # titac5x1xsoundc.74 IN_CH2_EN Capture Switch
  ok 156 name.titac5x1xsoundc.74
  ok 157 write_default.titac5x1xsoundc.74
  ok 158 write_valid.titac5x1xsoundc.74
  ok 159 write_invalid.titac5x1xsoundc.74
  ok 160 event_missing.titac5x1xsoundc.74
  ok 161 event_spurious.titac5x1xsoundc.74
  ok 162 get_value.titac5x1xsoundc.73
  # titac5x1xsoundc.73 IN_CH1_EN Capture Switch
  ok 163 name.titac5x1xsoundc.73
  ok 164 write_default.titac5x1xsoundc.73
  ok 165 write_valid.titac5x1xsoundc.73
  ok 166 write_invalid.titac5x1xsoundc.73
  ok 167 event_missing.titac5x1xsoundc.73
  ok 168 event_spurious.titac5x1xsoundc.73
  ok 169 get_value.titac5x1xsoundc.72
  # titac5x1xsoundc.72 ASI_TX_CH8_SLOT
  ok 170 name.titac5x1xsoundc.72
  ok 171 write_default.titac5x1xsoundc.72
  ok 172 write_valid.titac5x1xsoundc.72
  ok 173 write_invalid.titac5x1xsoundc.72
  ok 174 event_missing.titac5x1xsoundc.72
  ok 175 event_spurious.titac5x1xsoundc.72
  ok 176 get_value.titac5x1xsoundc.71
  # titac5x1xsoundc.71 ASI_TX_CH7_SLOT
  ok 177 name.titac5x1xsoundc.71
  ok 178 write_default.titac5x1xsoundc.71
  ok 179 write_valid.titac5x1xsoundc.71
  ok 180 write_invalid.titac5x1xsoundc.71
  ok 181 event_missing.titac5x1xsoundc.71
  ok 182 event_spurious.titac5x1xsoundc.71
  ok 183 get_value.titac5x1xsoundc.70
  # titac5x1xsoundc.70 ASI_TX_CH6_SLOT
  ok 184 name.titac5x1xsoundc.70
  ok 185 write_default.titac5x1xsoundc.70
  ok 186 write_valid.titac5x1xsoundc.70
  ok 187 write_invalid.titac5x1xsoundc.70
  ok 188 event_missing.titac5x1xsoundc.70
  ok 189 event_spurious.titac5x1xsoundc.70
  ok 190 get_value.titac5x1xsoundc.69
  # titac5x1xsoundc.69 ASI_TX_CH5_SLOT
  ok 191 name.titac5x1xsoundc.69
  ok 192 write_default.titac5x1xsoundc.69
  ok 193 write_valid.titac5x1xsoundc.69
  ok 194 write_invalid.titac5x1xsoundc.69
  ok 195 event_missing.titac5x1xsoundc.69
  ok 196 event_spurious.titac5x1xsoundc.69
  ok 197 get_value.titac5x1xsoundc.68
  # titac5x1xsoundc.68 ASI_TX_CH4_SLOT
  ok 198 name.titac5x1xsoundc.68
  ok 199 write_default.titac5x1xsoundc.68
  ok 200 write_valid.titac5x1xsoundc.68
  ok 201 write_invalid.titac5x1xsoundc.68
  ok 202 event_missing.titac5x1xsoundc.68
  ok 203 event_spurious.titac5x1xsoundc.68
  ok 204 get_value.titac5x1xsoundc.67
  # titac5x1xsoundc.67 ASI_TX_CH3_SLOT
  ok 205 name.titac5x1xsoundc.67
  ok 206 write_default.titac5x1xsoundc.67
  ok 207 write_valid.titac5x1xsoundc.67
  ok 208 write_invalid.titac5x1xsoundc.67
  ok 209 event_missing.titac5x1xsoundc.67
  ok 210 event_spurious.titac5x1xsoundc.67
  ok 211 get_value.titac5x1xsoundc.66
  # titac5x1xsoundc.66 ASI_TX_CH2_SLOT
  ok 212 name.titac5x1xsoundc.66
  ok 213 write_default.titac5x1xsoundc.66
  ok 214 write_valid.titac5x1xsoundc.66
  ok 215 write_invalid.titac5x1xsoundc.66
  ok 216 event_missing.titac5x1xsoundc.66
  ok 217 event_spurious.titac5x1xsoundc.66
  ok 218 get_value.titac5x1xsoundc.65
  # titac5x1xsoundc.65 ASI_TX_CH1_SLOT
  ok 219 name.titac5x1xsoundc.65
  ok 220 write_default.titac5x1xsoundc.65
  ok 221 write_valid.titac5x1xsoundc.65
  ok 222 write_invalid.titac5x1xsoundc.65
  ok 223 event_missing.titac5x1xsoundc.65
  ok 224 event_spurious.titac5x1xsoundc.65
  ok 225 get_value.titac5x1xsoundc.64
  # titac5x1xsoundc.64 ASI_TX_CH8_CFG
  ok 226 name.titac5x1xsoundc.64
  ok 227 write_default.titac5x1xsoundc.64
  ok 228 write_valid.titac5x1xsoundc.64
  ok 229 write_invalid.titac5x1xsoundc.64
  ok 230 event_missing.titac5x1xsoundc.64
  ok 231 event_spurious.titac5x1xsoundc.64
  ok 232 get_value.titac5x1xsoundc.63
  # titac5x1xsoundc.63 ASI_TX_CH7_CFG
  ok 233 name.titac5x1xsoundc.63
  ok 234 write_default.titac5x1xsoundc.63
  ok 235 write_valid.titac5x1xsoundc.63
  ok 236 write_invalid.titac5x1xsoundc.63
  ok 237 event_missing.titac5x1xsoundc.63
  ok 238 event_spurious.titac5x1xsoundc.63
  ok 239 get_value.titac5x1xsoundc.62
  # titac5x1xsoundc.62 ASI_TX_CH6_CFG
  ok 240 name.titac5x1xsoundc.62
  ok 241 write_default.titac5x1xsoundc.62
  ok 242 write_valid.titac5x1xsoundc.62
  ok 243 write_invalid.titac5x1xsoundc.62
  ok 244 event_missing.titac5x1xsoundc.62
  ok 245 event_spurious.titac5x1xsoundc.62
  ok 246 get_value.titac5x1xsoundc.61
  # titac5x1xsoundc.61 ASI_TX_CH5_CFG
  ok 247 name.titac5x1xsoundc.61
  ok 248 write_default.titac5x1xsoundc.61
  ok 249 write_valid.titac5x1xsoundc.61
  ok 250 write_invalid.titac5x1xsoundc.61
  ok 251 event_missing.titac5x1xsoundc.61
  ok 252 event_spurious.titac5x1xsoundc.61
  ok 253 get_value.titac5x1xsoundc.60
  # titac5x1xsoundc.60 ADC1 Phase Capture Volume
  ok 254 name.titac5x1xsoundc.60
  ok 255 write_default.titac5x1xsoundc.60
  ok 256 write_valid.titac5x1xsoundc.60
  ok 257 write_invalid.titac5x1xsoundc.60
  ok 258 event_missing.titac5x1xsoundc.60
  ok 259 event_spurious.titac5x1xsoundc.60
  ok 260 get_value.titac5x1xsoundc.59
  # titac5x1xsoundc.59 ADC1 Fine Capture Volume
  ok 261 name.titac5x1xsoundc.59
  ok 262 write_default.titac5x1xsoundc.59
  ok 263 write_valid.titac5x1xsoundc.59
  ok 264 write_invalid.titac5x1xsoundc.59
  ok 265 event_missing.titac5x1xsoundc.59
  ok 266 event_spurious.titac5x1xsoundc.59
  ok 267 get_value.titac5x1xsoundc.58
  # titac5x1xsoundc.58 ADC1 Digital Capture Volume
  ok 268 name.titac5x1xsoundc.58
  ok 269 write_default.titac5x1xsoundc.58
  ok 270 write_valid.titac5x1xsoundc.58
  ok 271 write_invalid.titac5x1xsoundc.58
  ok 272 event_missing.titac5x1xsoundc.58
  ok 273 event_spurious.titac5x1xsoundc.58
  ok 274 get_value.titac5x1xsoundc.57
  # titac5x1xsoundc.57 ADC1 Audio BW
  ok 275 name.titac5x1xsoundc.57
  ok 276 write_default.titac5x1xsoundc.57
  ok 277 write_valid.titac5x1xsoundc.57
  ok 278 write_invalid.titac5x1xsoundc.57
  ok 279 event_missing.titac5x1xsoundc.57
  ok 280 event_spurious.titac5x1xsoundc.57
  ok 281 get_value.titac5x1xsoundc.56
  # titac5x1xsoundc.56 Record Decimation Filter
  ok 282 name.titac5x1xsoundc.56
  ok 283 write_default.titac5x1xsoundc.56
  ok 284 write_valid.titac5x1xsoundc.56
  ok 285 write_invalid.titac5x1xsoundc.56
  ok 286 event_missing.titac5x1xsoundc.56
  ok 287 event_spurious.titac5x1xsoundc.56
  ok 288 get_value.titac5x1xsoundc.55
  # titac5x1xsoundc.55 GPIO2 GPI
  ok 289 name.titac5x1xsoundc.55
  # GPIO2 GPI is not writeable
  ok 290 # SKIP write_default.titac5x1xsoundc.55
  # GPIO2 GPI is not writeable
  ok 291 # SKIP write_valid.titac5x1xsoundc.55
  # GPIO2 GPI is not writeable
  ok 292 # SKIP write_invalid.titac5x1xsoundc.55
  ok 293 event_missing.titac5x1xsoundc.55
  ok 294 event_spurious.titac5x1xsoundc.55
  ok 295 get_value.titac5x1xsoundc.54
  # titac5x1xsoundc.54 PDM4 Phase Capture Volume
  ok 296 name.titac5x1xsoundc.54
  ok 297 write_default.titac5x1xsoundc.54
  ok 298 write_valid.titac5x1xsoundc.54
  ok 299 write_invalid.titac5x1xsoundc.54
  ok 300 event_missing.titac5x1xsoundc.54
  ok 301 event_spurious.titac5x1xsoundc.54
  ok 302 get_value.titac5x1xsoundc.53
  # titac5x1xsoundc.53 PDM3 Phase Capture Volume
  ok 303 name.titac5x1xsoundc.53
  ok 304 write_default.titac5x1xsoundc.53
  ok 305 write_valid.titac5x1xsoundc.53
  ok 306 write_invalid.titac5x1xsoundc.53
  ok 307 event_missing.titac5x1xsoundc.53
  ok 308 event_spurious.titac5x1xsoundc.53
  ok 309 get_value.titac5x1xsoundc.52
  # titac5x1xsoundc.52 PDM4 Fine Capture Volume
  ok 310 name.titac5x1xsoundc.52
  ok 311 write_default.titac5x1xsoundc.52
  ok 312 write_valid.titac5x1xsoundc.52
  ok 313 write_invalid.titac5x1xsoundc.52
  ok 314 event_missing.titac5x1xsoundc.52
  ok 315 event_spurious.titac5x1xsoundc.52
  ok 316 get_value.titac5x1xsoundc.51
  # titac5x1xsoundc.51 PDM3 Fine Capture Volume
  ok 317 name.titac5x1xsoundc.51
  ok 318 write_default.titac5x1xsoundc.51
  ok 319 write_valid.titac5x1xsoundc.51
  ok 320 write_invalid.titac5x1xsoundc.51
  ok 321 event_missing.titac5x1xsoundc.51
  ok 322 event_spurious.titac5x1xsoundc.51
  ok 323 get_value.titac5x1xsoundc.50
  # titac5x1xsoundc.50 PDM4 Digital Capture Volume
  ok 324 name.titac5x1xsoundc.50
  ok 325 write_default.titac5x1xsoundc.50
  ok 326 write_valid.titac5x1xsoundc.50
  ok 327 write_invalid.titac5x1xsoundc.50
  ok 328 event_missing.titac5x1xsoundc.50
  ok 329 event_spurious.titac5x1xsoundc.50
  ok 330 get_value.titac5x1xsoundc.49
  # titac5x1xsoundc.49 PDM3 Digital Capture Volume
  ok 331 name.titac5x1xsoundc.49
  ok 332 write_default.titac5x1xsoundc.49
  ok 333 write_valid.titac5x1xsoundc.49
  ok 334 write_invalid.titac5x1xsoundc.49
  ok 335 event_missing.titac5x1xsoundc.49
  ok 336 event_spurious.titac5x1xsoundc.49
  ok 337 get_value.titac5x1xsoundc.48
  # titac5x1xsoundc.48 PDM2 Phase Capture Volume
  ok 338 name.titac5x1xsoundc.48
  ok 339 write_default.titac5x1xsoundc.48
  ok 340 write_valid.titac5x1xsoundc.48
  ok 341 write_invalid.titac5x1xsoundc.48
  ok 342 event_missing.titac5x1xsoundc.48
  ok 343 event_spurious.titac5x1xsoundc.48
  ok 344 get_value.titac5x1xsoundc.47
  # titac5x1xsoundc.47 PDM1 Phase Capture Volume
  ok 345 name.titac5x1xsoundc.47
  ok 346 write_default.titac5x1xsoundc.47
  ok 347 write_valid.titac5x1xsoundc.47
  ok 348 write_invalid.titac5x1xsoundc.47
  ok 349 event_missing.titac5x1xsoundc.47
  ok 350 event_spurious.titac5x1xsoundc.47
  ok 351 get_value.titac5x1xsoundc.46
  # titac5x1xsoundc.46 PDM2 Fine Capture Volume
  ok 352 name.titac5x1xsoundc.46
  ok 353 write_default.titac5x1xsoundc.46
  ok 354 write_valid.titac5x1xsoundc.46
  ok 355 write_invalid.titac5x1xsoundc.46
  ok 356 event_missing.titac5x1xsoundc.46
  ok 357 event_spurious.titac5x1xsoundc.46
  ok 358 get_value.titac5x1xsoundc.45
  # titac5x1xsoundc.45 PDM1 Fine Capture Volume
  ok 359 name.titac5x1xsoundc.45
  ok 360 write_default.titac5x1xsoundc.45
  ok 361 write_valid.titac5x1xsoundc.45
  ok 362 write_invalid.titac5x1xsoundc.45
  ok 363 event_missing.titac5x1xsoundc.45
  ok 364 event_spurious.titac5x1xsoundc.45
  ok 365 get_value.titac5x1xsoundc.44
  # titac5x1xsoundc.44 PDM2 Digital Capture Volume
  ok 366 name.titac5x1xsoundc.44
  ok 367 write_default.titac5x1xsoundc.44
  ok 368 write_valid.titac5x1xsoundc.44
  ok 369 write_invalid.titac5x1xsoundc.44
  ok 370 event_missing.titac5x1xsoundc.44
  ok 371 event_spurious.titac5x1xsoundc.44
  ok 372 get_value.titac5x1xsoundc.43
  # titac5x1xsoundc.43 PDM1 Digital Capture Volume
  ok 373 name.titac5x1xsoundc.43
  ok 374 write_default.titac5x1xsoundc.43
  ok 375 write_valid.titac5x1xsoundc.43
  ok 376 write_invalid.titac5x1xsoundc.43
  ok 377 event_missing.titac5x1xsoundc.43
  ok 378 event_spurious.titac5x1xsoundc.43
  ok 379 get_value.titac5x1xsoundc.42
  # titac5x1xsoundc.42 PDM Clk Divider
  ok 380 name.titac5x1xsoundc.42
  ok 381 write_default.titac5x1xsoundc.42
  ok 382 write_valid.titac5x1xsoundc.42
  ok 383 write_invalid.titac5x1xsoundc.42
  ok 384 event_missing.titac5x1xsoundc.42
  ok 385 event_spurious.titac5x1xsoundc.42
  ok 386 get_value.titac5x1xsoundc.41
  # titac5x1xsoundc.41 OUT2X_VCOM
  ok 387 name.titac5x1xsoundc.41
  ok 388 write_default.titac5x1xsoundc.41
  ok 389 write_valid.titac5x1xsoundc.41
  ok 390 write_invalid.titac5x1xsoundc.41
  ok 391 event_missing.titac5x1xsoundc.41
  ok 392 event_spurious.titac5x1xsoundc.41
  ok 393 get_value.titac5x1xsoundc.40
  # titac5x1xsoundc.40 DAC2 Audio BW
  ok 394 name.titac5x1xsoundc.40
  ok 395 write_default.titac5x1xsoundc.40
  ok 396 write_valid.titac5x1xsoundc.40
  ok 397 write_invalid.titac5x1xsoundc.40
  ok 398 event_missing.titac5x1xsoundc.40
  ok 399 event_spurious.titac5x1xsoundc.40
  ok 400 get_value.titac5x1xsoundc.39
  # titac5x1xsoundc.39 DAC2 CHB Gain Calibration Playback Volume
  ok 401 name.titac5x1xsoundc.39
  ok 402 write_default.titac5x1xsoundc.39
  ok 403 write_valid.titac5x1xsoundc.39
  ok 404 write_invalid.titac5x1xsoundc.39
  ok 405 event_missing.titac5x1xsoundc.39
  ok 406 event_spurious.titac5x1xsoundc.39
  ok 407 get_value.titac5x1xsoundc.38
  # titac5x1xsoundc.38 DAC2 CHA Gain Calibration Playback Volume
  ok 408 name.titac5x1xsoundc.38
  ok 409 write_default.titac5x1xsoundc.38
  ok 410 write_valid.titac5x1xsoundc.38
  ok 411 write_invalid.titac5x1xsoundc.38
  ok 412 event_missing.titac5x1xsoundc.38
  ok 413 event_spurious.titac5x1xsoundc.38
  ok 414 get_value.titac5x1xsoundc.37
  # titac5x1xsoundc.37 DAC2 CHB Digital Playback Volume
  ok 415 name.titac5x1xsoundc.37
  ok 416 write_default.titac5x1xsoundc.37
  ok 417 write_valid.titac5x1xsoundc.37
  ok 418 write_invalid.titac5x1xsoundc.37
  ok 419 event_missing.titac5x1xsoundc.37
  ok 420 event_spurious.titac5x1xsoundc.37
  ok 421 get_value.titac5x1xsoundc.36
  # titac5x1xsoundc.36 DAC2 CHA Digital Playback Volume
  ok 422 name.titac5x1xsoundc.36
  ok 423 write_default.titac5x1xsoundc.36
  ok 424 write_valid.titac5x1xsoundc.36
  ok 425 write_invalid.titac5x1xsoundc.36
  ok 426 event_missing.titac5x1xsoundc.36
  ok 427 event_spurious.titac5x1xsoundc.36
  ok 428 get_value.titac5x1xsoundc.35
  # titac5x1xsoundc.35 OUT2M Analog Level Playback Volume
  ok 429 name.titac5x1xsoundc.35
  ok 430 write_default.titac5x1xsoundc.35
  ok 431 write_valid.titac5x1xsoundc.35
  ok 432 write_invalid.titac5x1xsoundc.35
  ok 433 event_missing.titac5x1xsoundc.35
  ok 434 event_spurious.titac5x1xsoundc.35
  ok 435 get_value.titac5x1xsoundc.34
  # titac5x1xsoundc.34 OUT2P Analog Level Playback Volume
  ok 436 name.titac5x1xsoundc.34
  ok 437 write_default.titac5x1xsoundc.34
  ok 438 write_valid.titac5x1xsoundc.34
  ok 439 write_invalid.titac5x1xsoundc.34
  ok 440 event_missing.titac5x1xsoundc.34
  ok 441 event_spurious.titac5x1xsoundc.34
  ok 442 get_value.titac5x1xsoundc.33
  # titac5x1xsoundc.33 ADC2 Phase Capture Volume
  ok 443 name.titac5x1xsoundc.33
  ok 444 write_default.titac5x1xsoundc.33
  ok 445 write_valid.titac5x1xsoundc.33
  ok 446 write_invalid.titac5x1xsoundc.33
  ok 447 event_missing.titac5x1xsoundc.33
  ok 448 event_spurious.titac5x1xsoundc.33
  ok 449 get_value.titac5x1xsoundc.32
  # titac5x1xsoundc.32 ADC2 Fine Capture Volume
  ok 450 name.titac5x1xsoundc.32
  ok 451 write_default.titac5x1xsoundc.32
  ok 452 write_valid.titac5x1xsoundc.32
  ok 453 write_invalid.titac5x1xsoundc.32
  ok 454 event_missing.titac5x1xsoundc.32
  ok 455 event_spurious.titac5x1xsoundc.32
  ok 456 get_value.titac5x1xsoundc.31
  # titac5x1xsoundc.31 ADC2 Digital Capture Volume
  ok 457 name.titac5x1xsoundc.31
  ok 458 write_default.titac5x1xsoundc.31
  ok 459 write_valid.titac5x1xsoundc.31
  ok 460 write_invalid.titac5x1xsoundc.31
  ok 461 event_missing.titac5x1xsoundc.31
  ok 462 event_spurious.titac5x1xsoundc.31
  ok 463 get_value.titac5x1xsoundc.30
  # titac5x1xsoundc.30 ADC2 Audio BW
  ok 464 name.titac5x1xsoundc.30
  ok 465 write_default.titac5x1xsoundc.30
  ok 466 write_valid.titac5x1xsoundc.30
  ok 467 write_invalid.titac5x1xsoundc.30
  ok 468 event_missing.titac5x1xsoundc.30
  ok 469 event_spurious.titac5x1xsoundc.30
  ok 470 get_value.titac5x1xsoundc.29
  # titac5x1xsoundc.29 OUT_CH4_EN Playback Switch
  ok 471 name.titac5x1xsoundc.29
  ok 472 write_default.titac5x1xsoundc.29
  ok 473 write_valid.titac5x1xsoundc.29
  ok 474 write_invalid.titac5x1xsoundc.29
  ok 475 event_missing.titac5x1xsoundc.29
  ok 476 event_spurious.titac5x1xsoundc.29
  ok 477 get_value.titac5x1xsoundc.28
  # titac5x1xsoundc.28 OUT_CH3_EN Playback Switch
  ok 478 name.titac5x1xsoundc.28
  ok 479 write_default.titac5x1xsoundc.28
  ok 480 write_valid.titac5x1xsoundc.28
  ok 481 write_invalid.titac5x1xsoundc.28
  ok 482 event_missing.titac5x1xsoundc.28
  ok 483 event_spurious.titac5x1xsoundc.28
  ok 484 get_value.titac5x1xsoundc.27
  # titac5x1xsoundc.27 OUT_CH2_EN Playback Switch
  ok 485 name.titac5x1xsoundc.27
  ok 486 write_default.titac5x1xsoundc.27
  ok 487 write_valid.titac5x1xsoundc.27
  ok 488 write_invalid.titac5x1xsoundc.27
  ok 489 event_missing.titac5x1xsoundc.27
  ok 490 event_spurious.titac5x1xsoundc.27
  ok 491 get_value.titac5x1xsoundc.26
  # titac5x1xsoundc.26 OUT_CH1_EN Playback Switch
  ok 492 name.titac5x1xsoundc.26
  ok 493 write_default.titac5x1xsoundc.26
  ok 494 write_valid.titac5x1xsoundc.26
  ok 495 write_invalid.titac5x1xsoundc.26
  ok 496 event_missing.titac5x1xsoundc.26
  ok 497 event_spurious.titac5x1xsoundc.26
  ok 498 get_value.titac5x1xsoundc.25
  # titac5x1xsoundc.25 ASI_RX_CH8_SLOT Playback
  ok 499 name.titac5x1xsoundc.25
  ok 500 write_default.titac5x1xsoundc.25
  ok 501 write_valid.titac5x1xsoundc.25
  ok 502 write_invalid.titac5x1xsoundc.25
  ok 503 event_missing.titac5x1xsoundc.25
  ok 504 event_spurious.titac5x1xsoundc.25
  ok 505 get_value.titac5x1xsoundc.24
  # titac5x1xsoundc.24 ASI_RX_CH7_SLOT Playback
  ok 506 name.titac5x1xsoundc.24
  ok 507 write_default.titac5x1xsoundc.24
  ok 508 write_valid.titac5x1xsoundc.24
  ok 509 write_invalid.titac5x1xsoundc.24
  ok 510 event_missing.titac5x1xsoundc.24
  ok 511 event_spurious.titac5x1xsoundc.24
  ok 512 get_value.titac5x1xsoundc.23
  # titac5x1xsoundc.23 ASI_RX_CH6_SLOT Playback
  ok 513 name.titac5x1xsoundc.23
  ok 514 write_default.titac5x1xsoundc.23
  ok 515 write_valid.titac5x1xsoundc.23
  ok 516 write_invalid.titac5x1xsoundc.23
  ok 517 event_missing.titac5x1xsoundc.23
  ok 518 event_spurious.titac5x1xsoundc.23
  ok 519 get_value.titac5x1xsoundc.22
  # titac5x1xsoundc.22 ASI_RX_CH5_SLOT Playback
  ok 520 name.titac5x1xsoundc.22
  ok 521 write_default.titac5x1xsoundc.22
  ok 522 write_valid.titac5x1xsoundc.22
  ok 523 write_invalid.titac5x1xsoundc.22
  ok 524 event_missing.titac5x1xsoundc.22
  ok 525 event_spurious.titac5x1xsoundc.22
  ok 526 get_value.titac5x1xsoundc.21
  # titac5x1xsoundc.21 ASI_RX_CH4_SLOT Playback
  ok 527 name.titac5x1xsoundc.21
  ok 528 write_default.titac5x1xsoundc.21
  ok 529 write_valid.titac5x1xsoundc.21
  ok 530 write_invalid.titac5x1xsoundc.21
  ok 531 event_missing.titac5x1xsoundc.21
  ok 532 event_spurious.titac5x1xsoundc.21
  ok 533 get_value.titac5x1xsoundc.20
  # titac5x1xsoundc.20 ASI_RX_CH3_SLOT Playback
  ok 534 name.titac5x1xsoundc.20
  ok 535 write_default.titac5x1xsoundc.20
  ok 536 write_valid.titac5x1xsoundc.20
  ok 537 write_invalid.titac5x1xsoundc.20
  ok 538 event_missing.titac5x1xsoundc.20
  ok 539 event_spurious.titac5x1xsoundc.20
  ok 540 get_value.titac5x1xsoundc.19
  # titac5x1xsoundc.19 ASI_RX_CH2_SLOT Playback
  ok 541 name.titac5x1xsoundc.19
  ok 542 write_default.titac5x1xsoundc.19
  ok 543 write_valid.titac5x1xsoundc.19
  ok 544 write_invalid.titac5x1xsoundc.19
  ok 545 event_missing.titac5x1xsoundc.19
  ok 546 event_spurious.titac5x1xsoundc.19
  ok 547 get_value.titac5x1xsoundc.18
  # titac5x1xsoundc.18 ASI_RX_CH1_SLOT Playback
  ok 548 name.titac5x1xsoundc.18
  ok 549 write_default.titac5x1xsoundc.18
  ok 550 write_valid.titac5x1xsoundc.18
  ok 551 write_invalid.titac5x1xsoundc.18
  ok 552 event_missing.titac5x1xsoundc.18
  ok 553 event_spurious.titac5x1xsoundc.18
  ok 554 get_value.titac5x1xsoundc.17
  # titac5x1xsoundc.17 ASI_RX_CH8_EN Playback
  ok 555 name.titac5x1xsoundc.17
  ok 556 write_default.titac5x1xsoundc.17
  ok 557 write_valid.titac5x1xsoundc.17
  ok 558 write_invalid.titac5x1xsoundc.17
  ok 559 event_missing.titac5x1xsoundc.17
  ok 560 event_spurious.titac5x1xsoundc.17
  ok 561 get_value.titac5x1xsoundc.16
  # titac5x1xsoundc.16 ASI_RX_CH7_EN Playback
  ok 562 name.titac5x1xsoundc.16
  ok 563 write_default.titac5x1xsoundc.16
  ok 564 write_valid.titac5x1xsoundc.16
  ok 565 write_invalid.titac5x1xsoundc.16
  ok 566 event_missing.titac5x1xsoundc.16
  ok 567 event_spurious.titac5x1xsoundc.16
  ok 568 get_value.titac5x1xsoundc.15
  # titac5x1xsoundc.15 ASI_RX_CH6_EN Playback
  ok 569 name.titac5x1xsoundc.15
  ok 570 write_default.titac5x1xsoundc.15
  ok 571 write_valid.titac5x1xsoundc.15
  ok 572 write_invalid.titac5x1xsoundc.15
  ok 573 event_missing.titac5x1xsoundc.15
  ok 574 event_spurious.titac5x1xsoundc.15
  ok 575 get_value.titac5x1xsoundc.14
  # titac5x1xsoundc.14 ASI_RX_CH5_EN Playback
  ok 576 name.titac5x1xsoundc.14
  ok 577 write_default.titac5x1xsoundc.14
  ok 578 write_valid.titac5x1xsoundc.14
  ok 579 write_invalid.titac5x1xsoundc.14
  ok 580 event_missing.titac5x1xsoundc.14
  ok 581 event_spurious.titac5x1xsoundc.14
  ok 582 get_value.titac5x1xsoundc.13
  # titac5x1xsoundc.13 ASI_RX_CH4_EN Playback
  ok 583 name.titac5x1xsoundc.13
  ok 584 write_default.titac5x1xsoundc.13
  ok 585 write_valid.titac5x1xsoundc.13
  ok 586 write_invalid.titac5x1xsoundc.13
  ok 587 event_missing.titac5x1xsoundc.13
  ok 588 event_spurious.titac5x1xsoundc.13
  ok 589 get_value.titac5x1xsoundc.12
  # titac5x1xsoundc.12 ASI_RX_CH3_EN Playback
  ok 590 name.titac5x1xsoundc.12
  ok 591 write_default.titac5x1xsoundc.12
  ok 592 write_valid.titac5x1xsoundc.12
  ok 593 write_invalid.titac5x1xsoundc.12
  ok 594 event_missing.titac5x1xsoundc.12
  ok 595 event_spurious.titac5x1xsoundc.12
  ok 596 get_value.titac5x1xsoundc.11
  # titac5x1xsoundc.11 DAC1 CHB Gain Calibration Playback Volume
  ok 597 name.titac5x1xsoundc.11
  ok 598 write_default.titac5x1xsoundc.11
  ok 599 write_valid.titac5x1xsoundc.11
  ok 600 write_invalid.titac5x1xsoundc.11
  ok 601 event_missing.titac5x1xsoundc.11
  ok 602 event_spurious.titac5x1xsoundc.11
  ok 603 get_value.titac5x1xsoundc.10
  # titac5x1xsoundc.10 DAC1 CHA Gain Calibration Playback Volume
  ok 604 name.titac5x1xsoundc.10
  ok 605 write_default.titac5x1xsoundc.10
  ok 606 write_valid.titac5x1xsoundc.10
  ok 607 write_invalid.titac5x1xsoundc.10
  ok 608 event_missing.titac5x1xsoundc.10
  ok 609 event_spurious.titac5x1xsoundc.10
  ok 610 get_value.titac5x1xsoundc.9
  # titac5x1xsoundc.9 DAC1 CHB Digital Playback Volume
  ok 611 name.titac5x1xsoundc.9
  ok 612 write_default.titac5x1xsoundc.9
  ok 613 write_valid.titac5x1xsoundc.9
  ok 614 write_invalid.titac5x1xsoundc.9
  ok 615 event_missing.titac5x1xsoundc.9
  ok 616 event_spurious.titac5x1xsoundc.9
  ok 617 get_value.titac5x1xsoundc.8
  # titac5x1xsoundc.8 DAC1 CHA Digital Playback Volume
  ok 618 name.titac5x1xsoundc.8
  ok 619 write_default.titac5x1xsoundc.8
  ok 620 write_valid.titac5x1xsoundc.8
  ok 621 write_invalid.titac5x1xsoundc.8
  ok 622 event_missing.titac5x1xsoundc.8
  ok 623 event_spurious.titac5x1xsoundc.8
  ok 624 get_value.titac5x1xsoundc.7
  # titac5x1xsoundc.7 OUT1M Analog Level Playback Volume
  ok 625 name.titac5x1xsoundc.7
  ok 626 write_default.titac5x1xsoundc.7
  ok 627 write_valid.titac5x1xsoundc.7
  ok 628 write_invalid.titac5x1xsoundc.7
  ok 629 event_missing.titac5x1xsoundc.7
  ok 630 event_spurious.titac5x1xsoundc.7
  ok 631 get_value.titac5x1xsoundc.6
  # titac5x1xsoundc.6 OUT1P Analog Level Playback Volume
  ok 632 name.titac5x1xsoundc.6
  ok 633 write_default.titac5x1xsoundc.6
  ok 634 write_valid.titac5x1xsoundc.6
  ok 635 write_invalid.titac5x1xsoundc.6
  ok 636 event_missing.titac5x1xsoundc.6
  ok 637 event_spurious.titac5x1xsoundc.6
  ok 638 get_value.titac5x1xsoundc.5
  # titac5x1xsoundc.5 DAC1 Audio BW
  ok 639 name.titac5x1xsoundc.5
  ok 640 write_default.titac5x1xsoundc.5
  ok 641 write_valid.titac5x1xsoundc.5
  ok 642 write_invalid.titac5x1xsoundc.5
  ok 643 event_missing.titac5x1xsoundc.5
  ok 644 event_spurious.titac5x1xsoundc.5
  ok 645 get_value.titac5x1xsoundc.4
  # titac5x1xsoundc.4 Playback Decimation Filter
  ok 646 name.titac5x1xsoundc.4
  ok 647 write_default.titac5x1xsoundc.4
  ok 648 write_valid.titac5x1xsoundc.4
  ok 649 write_invalid.titac5x1xsoundc.4
  ok 650 event_missing.titac5x1xsoundc.4
  ok 651 event_spurious.titac5x1xsoundc.4
  ok 652 get_value.titac5x1xsoundc.3
  # titac5x1xsoundc.3 ADC2 Common-mode Tolerance
  ok 653 name.titac5x1xsoundc.3
  ok 654 write_default.titac5x1xsoundc.3
  ok 655 write_valid.titac5x1xsoundc.3
  ok 656 write_invalid.titac5x1xsoundc.3
  ok 657 event_missing.titac5x1xsoundc.3
  ok 658 event_spurious.titac5x1xsoundc.3
  ok 659 get_value.titac5x1xsoundc.2
  # titac5x1xsoundc.2 ADC1 Common-mode Tolerance
  ok 660 name.titac5x1xsoundc.2
  ok 661 write_default.titac5x1xsoundc.2
  ok 662 write_valid.titac5x1xsoundc.2
  ok 663 write_invalid.titac5x1xsoundc.2
  ok 664 event_missing.titac5x1xsoundc.2
  ok 665 event_spurious.titac5x1xsoundc.2
  ok 666 get_value.titac5x1xsoundc.1
  # titac5x1xsoundc.1 ADC2 Impedance Select
  ok 667 name.titac5x1xsoundc.1
  ok 668 write_default.titac5x1xsoundc.1
  ok 669 write_valid.titac5x1xsoundc.1
  ok 670 write_invalid.titac5x1xsoundc.1
  ok 671 event_missing.titac5x1xsoundc.1
  ok 672 event_spurious.titac5x1xsoundc.1
  ok 673 get_value.titac5x1xsoundc.0
  # titac5x1xsoundc.0 ADC1 Impedance Select
  ok 674 name.titac5x1xsoundc.0
  ok 675 write_default.titac5x1xsoundc.0
  ok 676 write_valid.titac5x1xsoundc.0
  ok 677 write_invalid.titac5x1xsoundc.0
  ok 678 event_missing.titac5x1xsoundc.0
  ok 679 event_spurious.titac5x1xsoundc.0
  # 3 skipped test(s) detected. Consider enabling relevant config options to improve coverage.
  # Totals: pass:676 fail:0 xfail:0 xpass:0 skip:3 error:0

Niranjan H Y (4):
ASoc: tac5x1x: add codec driver tac5x1x family
Asoc: tac5x1x: document tac5x1x codec
Asoc: pcm6240: remove support for taac5x1x family
ASoc: pcm6240: dt-bindings device support list update

 .../devicetree/bindings/sound/ti,pcm6240.yaml |   10 -
 .../devicetree/bindings/sound/ti,tac5x1x.yaml |  222 ++
 sound/soc/codecs/Kconfig                      |   16 +
 sound/soc/codecs/Makefile                     |    6 +-
 sound/soc/codecs/pcm6240.c                    |  124 +-
 sound/soc/codecs/pcm6240.h                    |    4 -
 sound/soc/codecs/tac5x1x-i2c.c                |   81 +
 sound/soc/codecs/tac5x1x.c                    | 2389 +++++++++++++++++
 sound/soc/codecs/tac5x1x.h                    |  302 +++
 9 files changed, 3018 insertions(+), 136 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tac5x1x.yaml
 create mode 100644 sound/soc/codecs/tac5x1x-i2c.c
 create mode 100644 sound/soc/codecs/tac5x1x.c
 create mode 100644 sound/soc/codecs/tac5x1x.h
Signature · 1 line
2.45.2
#1 lore raw

PATCH 1/4 ASoc: tac5x1x: add codec driver tac5x1x family

tac5x1x family are series of low-power and high performance mono/stereo audio codecs consists of ADC and DAC combinations. The patch adds supports for Codecs(DAC & ADC), ADC only and DAC only configurations available in the tac5x1x family.

---
 sound/soc/codecs/Kconfig       |   16 +
 sound/soc/codecs/Makefile      |    6 +-
 sound/soc/codecs/tac5x1x-i2c.c |   81 ++
 sound/soc/codecs/tac5x1x.c     | 2389 ++++++++++++++++++++++++++++++++
 sound/soc/codecs/tac5x1x.h     |  302 ++++
 5 files changed, 2793 insertions(+), 1 deletion(-)
 create mode 100644 sound/soc/codecs/tac5x1x-i2c.c
 create mode 100644 sound/soc/codecs/tac5x1x.c
 create mode 100644 sound/soc/codecs/tac5x1x.h
sound/soc/codecs/Kconfig +16 -0
index 477d33234fdd..74abc0d68237 100644
@@ -258,6 +258,8 @@ config SND_SOC_ALL_CODECS
 	imply SND_SOC_STA529
 	imply SND_SOC_STAC9766
 	imply SND_SOC_STI_SAS
+	imply SND_SOC_TAC5X1X
+	imply SND_SOC_TAC5X1X_I2C
 	imply SND_SOC_TAS2552
 	imply SND_SOC_TAS2562
 	imply SND_SOC_TAS2764
@@ -2001,6 +2003,20 @@ config SND_SOC_STAC9766
 config SND_SOC_STI_SAS
 	tristate "codec Audio support for STI SAS codec"
 
+config SND_SOC_TAC5X1X
+	tristate "Texas Instruments TAC5X1X family codecs"
+	depends on I2C && REGMAP_I2C
+
+config SND_SOC_TAC5X1X_I2C
+	tristate "Texas Instruments TAC5X1X family driver based on I2C"
+	depends on I2C && REGMAP_I2C
+	select SND_SOC_TAC5X1X
+	help
+	  Enable support for Texas Instruments TAC5X1X family Audio chips.
+	  The family consists mono/stereo audio codecs, DACs and ADCs.
+	  Includes support for TAC5311-Q1, TAC5411-Q1, TAC5111, TAC5211,
+	  TAA5212, TAA5412-Q1, TAD5112, TAD5212, TAC5312, TAC5412-Q1,
+
 config SND_SOC_TAS2552
 	tristate "Texas Instruments TAS2552 Mono Audio amplifier"
 	depends on I2C
sound/soc/codecs/Makefile +5 -1
index 66e2f2381d40..ec315236f2d9 100644
@@ -312,6 +312,8 @@ snd-soc-tas2770-y := tas2770.o
 snd-soc-tas2781-comlib-y := tas2781-comlib.o
 snd-soc-tas2781-fmwlib-y := tas2781-fmwlib.o
 snd-soc-tas2781-i2c-y := tas2781-i2c.o
+snd-soc-tac5x1x-y := tac5x1x.o
+snd-soc-tac5x1x-i2c-y := tac5x1x-i2c.o
 snd-soc-tfa9879-y := tfa9879.o
 snd-soc-tfa989x-y := tfa989x.o
 snd-soc-tlv320adc3xxx-y := tlv320adc3xxx.o
@@ -717,6 +719,8 @@ obj-$(CONFIG_SND_SOC_STA32X)   += snd-soc-sta32x.o
 obj-$(CONFIG_SND_SOC_STA350)   += snd-soc-sta350.o
 obj-$(CONFIG_SND_SOC_STA529)   += snd-soc-sta529.o
 obj-$(CONFIG_SND_SOC_STAC9766)	+= snd-soc-stac9766.o
+obj-$(CONFIG_SND_SOC_TAC5X1X)	+= snd-soc-tac5x1x.o
+obj-$(CONFIG_SND_SOC_TAC5X1X_I2C)	+= snd-soc-tac5x1x-i2c.o
 obj-$(CONFIG_SND_SOC_STI_SAS)	+= snd-soc-sti-sas.o
 obj-$(CONFIG_SND_SOC_TAS2552)	+= snd-soc-tas2552.o
 obj-$(CONFIG_SND_SOC_TAS2562)	+= snd-soc-tas2562.o
@@ -851,4 +855,4 @@ obj-$(CONFIG_SND_SOC_LPASS_RX_MACRO)	+= snd-soc-lpass-rx-macro.o
 obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO)	+= snd-soc-lpass-tx-macro.o
 
 # Mux
-obj-$(CONFIG_SND_SOC_SIMPLE_MUX)	+= snd-soc-simple-mux.o
\ No newline at end of file
+obj-$(CONFIG_SND_SOC_SIMPLE_MUX)	+= snd-soc-simple-mux.o
sound/soc/codecs/tac5x1x-i2c.c new file +81 -0

81 lines not on this page · raw message

sound/soc/codecs/tac5x1x.c new file +2389 -0

2,389 lines not on this page · raw message

sound/soc/codecs/tac5x1x.h new file +302 -0

302 lines not on this page · raw message

Signature · 1 line
2.45.2
maintainer
#2 lore raw

Re: [PATCH v1 1/4] ASoc: tac5x1x: add codec driver tac5x1x family

Quoted 4 lines · Niranjan H Y

tac5x1x family are series of low-power and high performance mono/stereo audio codecs consists of ADC and DAC combinations. The patch adds supports for Codecs(DAC & ADC), ADC only and DAC only configurations available in the tac5x1x family.

There's a few issues below but nothing that's *hugely* structural, the bulk of the code here looks good.

sound/soc/codecs/Kconfig config SND_SOC_STAC9766 · line 2013

Quoted 8 lines
sound/soc/codecs/Kconfig +8 -0
+config SND_SOC_TAC5X1X
+	tristate "Texas Instruments TAC5X1X family codecs"
+	depends on I2C && REGMAP_I2C
+
+config SND_SOC_TAC5X1X_I2C
+	tristate "Texas Instruments TAC5X1X family driver based on I2C"
+	depends on I2C && REGMAP_I2C
+	select SND_SOC_TAC5X1X

You need to select REGMAP_I2C if you use it, it can't be turned on independently. If the device is I2C only then there's no need to have the second option for I2C, that's used for devices that support both I2C and SPI to avoid problems with dependencies on the I2C and SPI core code.

sound/soc/codecs/Makefile snd-soc-tas2770-y := tas2770.o · line 317

Quoted 4 lines

snd-soc-tas2781-i2c-y := tas2781-i2c.o

sound/soc/codecs/Makefile +2 -0
+snd-soc-tac5x1x-y := tac5x1x.o
+snd-soc-tac5x1x-i2c-y := tac5x1x-i2c.o
 snd-soc-tfa9879-y := tfa9879.o

Please keep these files alphanumerically sorted.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 7 lines

obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO) += snd-soc-lpass-tx-macro.o

# Mux

sound/soc/codecs/Makefile +1 -1
-obj-$(CONFIG_SND_SOC_SIMPLE_MUX)	+= snd-soc-simple-mux.o
\ No newline at end of file
+obj-$(CONFIG_SND_SOC_SIMPLE_MUX)	+= snd-soc-simple-mux.o
sound/soc/codecs/tac5x1x-i2c.c +0 -0

Looks like this whitespace change crept in accidentally.

sound/soc/codecs/tac5x1x-i2c.c line 53

Quoted 12 lines
sound/soc/codecs/tac5x1x-i2c.c +12 -0
+static int tac5x1x_i2c_probe(struct i2c_client *i2c)
+{
+	int ret;
+	enum tac5x1x_type type;
+	struct regmap *regmap;
+	const struct regmap_config *config = &tac5x1x_regmap;
+
+	regmap = devm_regmap_init_i2c(i2c, config);
+	type = (uintptr_t)i2c_get_match_data(i2c);
+
+	dev_info(&i2c->dev, "probing %s codec_type = %d\n",
+		 i2c->name, type);

Just drop this print, it's probably a bit noisy.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+static const char * const int_ltch0[] = {
+	"Clock Error",
+	"PLL Lock",
+	"Boost Over Temperature",
+	"Boost Over Current",
+	"Boost Mode",
+	"Reserved",
+	"Reserved",
+	"Reserved",
+};

You can just set the maximum value for the enum to be whatever the maximum valid value is and then not need to list the Reserved entries at all.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+static const char * const out_ch2_ltch[] = {
+	"OUT_CH2 OUT2P Short circuit Fault",
+	"OUT_CH2 OUT2M Short circuit Fault",
+	"OUT_CH2 DRVRP Virtual Ground Fault",
+	"OUT_CH2 DRVRM Virtual ground Fault",
+	"Reserved",
+	"Reserved",
+	"AREG SC Fault Mask",
+	"AREG SC Fault",
+};

For ones where the reserved values are in the middle of the set of values you can use _VAL_ENUM() which lets you skip over the values that are invalid.

Quoted 8 lines
sound/soc/codecs/tac5x1x-i2c.c +8 -0
+static s32 tac5x1x_regmap_write(struct tac5x1x_priv *tac5x1x,
+				u32 reg, u32 value)
+{
+	s32 ret;
+	s32 retry_count = 5;
+
+	while (retry_count--) {
+		ret = regmap_write(tac5x1x->regmap, reg,

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+				   value);
+		if (ret >= 0)
+			break;
+		usleep_range(5000, 5050);
+	}
+	if (retry_count == -1)
+		return 3;
+	else
+		return ret;
+}

Is the hardware genuinely so unstable that we need to retry all the I/O? This seems really concerning.

Quoted 9 lines
sound/soc/codecs/tac5x1x-i2c.c +9 -0
+static s32 tac5x1x_regmap_read(struct tac5x1x_priv *tac5x1x,
+			       u32 reg, u32 *value)
+{
+	s32 ret;
+	s32 retry_count = 5;
+
+	ret = regmap_reinit_cache(tac5x1x->regmap, &tac5x1x_regmap);
+	if (ret) {
+		dev_err(tac5x1x->dev, "Failed to reinit reg cache\n");

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+		return ret;
+	}
+
+	while (retry_count--) {
+		ret = regmap_read(tac5x1x->regmap, reg,
+				  value);
+		if (ret >= 0)
+			break;
+		usleep_range(5000, 5050);
+	}

This seems *really* scary and confusing, why would we reset the register cache in what looks like a normal read operation.

Quoted 5 lines
sound/soc/codecs/tac5x1x-i2c.c +5 -0
+static s32 tac5x1x_dev_read(struct tac5x1x_priv *tac5x1x,
+			    u32 dev_no, u32 reg,
+			    u32 *ref_value)
+{
+	s32 ret;

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+
+	guard(mutex)(&tac5x1x->dev_lock);
+	if (dev_no < tac5x1x->ndev) {
+		ret = tac5x1x_regmap_write(tac5x1x,
+					   TAC_PAGE_SELECT, 0);
+		if (ret < 0) {
+			dev_err(tac5x1x->dev, "%s, E=%d\n",
+				__func__, ret);
+			return ret;
+		}

This doesn't actually appear to do anything to support or choose between multiple devices? The code all looks like it only supports one device, and this is only used in the interrupt handler.

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+static void tac5x1x_irq_work_func(struct tac5x1x_priv *tac5x1x)
+{
+	u32 reg_val, array_size, i, index = 0, bit = 0;
+	s32 rc;
+
+	tac5x1x_enable_irq(tac5x1x, false);
+	array_size =  ARRAY_SIZE(int_reg_array);
+	for (i = 0; i < array_size; i++) {
+		rc = tac5x1x_dev_read(tac5x1x, index,
+				      int_reg_array[i], &reg_val);

...

sound/soc/codecs/tac5x1x-i2c.c

Quoted 2 lines
sound/soc/codecs/tac5x1x-i2c.c +2 -0
+	}
+	tac5x1x_enable_irq(tac5x1x, true);

The interrupt disabling here seems odd - what's the story there? I see this is a work function rather than an irq thread to add some delay and introduce some debouncing but it's not clear why the disable during handling.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 4 lines
sound/soc/codecs/tac5x1x-i2c.c +3 -0
+const struct regmap_config tac5x1x_regmap = {
+	.max_register = 12 * 128,
 
+EXPORT_SYMBOL(tac5x1x_regmap);

EXPORT_SYMBOL_GPL().

Quoted 9 lines
sound/soc/codecs/tac5x1x-i2c.c +9 -0
+static s32 tac5x1x_set_GPO1_gpio(struct snd_kcontrol *kcontrol,
+				 struct snd_ctl_elem_value *ucontrol)
+{
+	struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
+	s32 gpio_check, val;
+
+	val = snd_soc_component_read(component, TAC5X1X_GPO1);
+	gpio_check = ((val & TAC5X1X_GPIOX_CFG_MASK) >> 0);
+	if (gpio_check != TAC5X1X_GPIO_GPO) {

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+		dev_err(component->dev,
+			"%s: GPO1 is not configure as a GPO output\n",
+			__func__);
+		return -EINVAL;
+	}
+
+	if (ucontrol->value.integer.value[0])
+		val = 0;
+	else
+		val = TAC5X1X_GPO1_VAL;

This seems to be exposing a GPIO directly to userspace, which will prevent using that GPIO with other kernel subsystems. It would be better to expose this via gpiolib, then if userspace control is needed that can be done through gpiolib.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 11 lines
sound/soc/codecs/tac5x1x-i2c.c +11 -0
+/* Impedance Selection */
+static const char *const resistor_text[] = {
+	"5 kOhm",
+	"10 kOhm",
+	"40 kOhm",
+};
+
+static SOC_ENUM_SINGLE_DECL(adc1_resistor_enum, TAC5X1X_ADCCH1C0, 4,
+		resistor_text);
+static SOC_ENUM_SINGLE_DECL(adc2_resistor_enum, TAC5X1X_ADCCH2C0, 4,
+		resistor_text);

Is this something that would be adjusted at runtime, or should it be a device tree setting?

sound/soc/codecs/tac5x1x-i2c.c

Quoted 4 lines
sound/soc/codecs/tac5x1x-i2c.c +4 -0
+static const char *const rx_ch3_asi_cfg_text[] = {
+		"Disable",
+		"DAC channel data",
+};

On/off switches should be plain controls ending in "Switch" rather than enums.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+static const char *const tac5x1x_slot_select_text[] = {
+	"Slot 0", "Slot 1", "Slot 2", "Slot 3",
+	"Slot 4", "Slot 5", "Slot 6", "Slot 7",
+	"Slot 8", "Slot 9", "Slot 10", "Slot 11",
+	"Slot 12", "Slot 13", "Slot 14", "Slot 15",
+	"Slot 16", "Slot 17", "Slot 18", "Slot 19",
+	"Slot 20", "Slot 21", "Slot 22", "Slot 23",
+	"Slot 24", "Slot 25", "Slot 26", "Slot 27",
+	"Slot 28", "Slot 29", "Slot 30", "Slot 31",
+};

TDM slot control would usually be done via set_tdm_slot().

Quoted 8 lines
sound/soc/codecs/tac5x1x-i2c.c +8 -0
+static const char *const out2x_vcom_text[] = {
+	"0.6 * Vref",
+	"AVDD by 2",
+};
+
+static const char *const diag_cfg_text[] = {
+	"0mv", "30mv", "60mv", "90mv",
+	"120mv", "150mv", "180mv", "210mv",

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+	"240mv", "270mv", "300mv", "330mv",
+	"360mv", "390mv", "420mv", "450mv",
+};
+
+static const char *const diag_cfg_gnd_text[] = {
+	"0mv", "60mv", "120mv", "180mv",
+	"240mv", "300mv", "360mv", "420mv",
+	"480mv", "540mv", "600mv", "660mv",
+	"720mv", "780mv", "840mv", "900mv",
+};

Are these controls that should be device tree data?

sound/soc/codecs/tac5x1x-i2c.c

Quoted 1 line
sound/soc/codecs/tac5x1x-i2c.c +1 -0
+	switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {

SND_SOC_DAIFMT_CLOCK_MASK.

sound/soc/codecs/tac5x1x-i2c.c

Quoted 11 lines
sound/soc/codecs/tac5x1x-i2c.c +11 -0
+#ifdef CONFIG_PM
+static s32 tac5x1x_soc_suspend(struct snd_soc_component *component)
+{
+	struct tac5x1x_priv *tac5x1x =
+		snd_soc_component_get_drvdata(component);
+
+	regcache_cache_only(tac5x1x->regmap, true);
+	regcache_mark_dirty(tac5x1x->regmap);
+
+	regulator_disable(tac5x1x->supply_avdd);
+	regulator_disable(tac5x1x->supply_iovdd);

Consider using the regulator_bulk_ APIs - the current code is fine, but I don't see any cases where you're controlling the regulators separately so it'd be a little simpler and allows the core to do things like bring multiple regulators up in parallel.

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+static s32 tac5x1x_soc_resume(struct snd_soc_component *component)
+{
+	struct tac5x1x_priv *tac5x1x =
+		snd_soc_component_get_drvdata(component);
+	s32 ret;
+
+	regcache_cache_only(tac5x1x->regmap, false);
+	snd_soc_component_cache_sync(component);
+
+	ret = regulator_enable(tac5x1x->supply_avdd);

sound/soc/codecs/tac5x1x-i2c.c

Quoted 10 lines
sound/soc/codecs/tac5x1x-i2c.c +10 -0
+	if (ret) {
+		regulator_disable(tac5x1x->supply_avdd);
+		return ret;
+	}
+
+	ret = regulator_enable(tac5x1x->supply_iovdd);
+	if (ret) {
+		regulator_disable(tac5x1x->supply_iovdd);
+		return ret;
+	}

This will try to do the cache sync with the regulators disabled which won't work if they were actually turned off.

#3 lore raw

PATCH 2/4 Asoc: tac5x1x: document tac5x1x codec

In reply to Niranjan H Y

tac5x1x family are series of low-power and high performance mono/stereo audio codecs consists of ADC and DAC combinations. The family consist of Codecs(DAC & ADC), ADC only and DAC only configurations. The documentation explains the list of devices in the family, their power supply configurations and gpio configuration options available for various functionality.

---
 .../devicetree/bindings/sound/ti,tac5x1x.yaml | 222 ++++++++++++++++++
 1 file changed, 222 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tac5x1x.yaml
Documentation/devicetree/bindings/sound/ti,tac5x1x.yaml new file +222 -0
new file mode 100644
index 000000000000..b5f3f09a0465
@@ -0,0 +1,222 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+# Copyright (C) 2025 Texas Instruments Incorporated
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/ti,tac5x1x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments TAC5X1X Codec
+
+description: |
+  TAC5X1X are series of low-power and high performance mono or stereo
+  audio codecs, as well as multiple inputs and outputs programmable in
+  single-ended or fully differential configurations. Device supports both
+  Microphone and Line In input on ADC Channel. DAC Output can be configured
+  for either Line Out or Head Phone Load.
+
+  The serial control bus supports SPI or I2C protocols, while the serial audio
+  data bus is programmable for I2S, left/right-justified, DSP, or TDM modes.
+
+  Specification about the codecs can be found at:
+    https://www.ti.com/lit/gpn/taa5212
+    https://www.ti.com/lit/gpn/taa5412-q1
+    https://www.ti.com/lit/gpn/tac5111
+    https://www.ti.com/lit/gpn/tac5112
+    https://www.ti.com/lit/gpn/tac5211
+    https://www.ti.com/lit/gpn/tac5212
+    https://www.ti.com/lit/gpn/tac5311-q1
+    https://www.ti.com/lit/gpn/tac5312-q1
+    https://www.ti.com/lit/gpn/tac5411-q1
+    https://www.ti.com/lit/gpn/tac5412-q1
+    https://www.ti.com/lit/gpn/tad5112
+    https://www.ti.com/lit/gpn/tad5212
+
+maintainers:
+  - Niranjan H Y <[email protected]>
+  - Kevin Lu <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - ti,taa5212
+      - ti,taa5412
+      - ti,tac5111
+      - ti,tac5112
+      - ti,tac5211
+      - ti,tac5212
+      - ti,tac5311
+      - ti,tac5312
+      - ti,tac5411
+      - ti,tac5412
+      - ti,tad5112
+      - ti,tad5212
+
+  reg:
+    maxItems: 1
+
+  ti,vref:
+    description: VREF required voltage. If node is omitted then VREF is powered down.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    oneOf:
+      - const: 0
+        description: VREF output is powered to 2.75V.
+      - const: 1
+        description: VREF output is powered to 2.5V.
+      - const: 2
+        description: VREF output is powered to 1.375V.
+
+  ti,micbias-vg:
+    description: MicBias required voltage. If node is omitted then MicBias is powered down.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    oneOf:
+      - const: 0
+        description: MICBIAS output is same as the VREF output
+      - const: 1
+        description: MICBIAS output is 0.5 times the VREF output
+      - const: 3
+        description: MICBIAS output is same as the AVDD
+
+  avdd-supply:
+    description: Analog DAC voltage.
+
+  iovdd-supply:
+    description: I/O voltage.
+
+  ti,gpios-func:
+    description: |
+      Array indicating the GPIO1, GPIO2, GPO1 Functionality in the same order.
+      Each integer elemnent in the array represent the following
+      - 0  TAC5X1X_GPIO_DISABLE        - GPIO is Disabled
+      - 1  TAC5X1X_GPIO_GPI            - General Purpose Input
+      - 2  ADC3XXX_GPIO_GPO            - General Purpose Output
+      - 3  TAC5X1X_GPIO_IRQ            - Chip Interrupt
+      - 4  TAC5X1X_GPIO_PDMCLK         - PDM CLK Output
+      - 5  TAC5X1X_GPIO_P_DOUT         - Primary ASI DOUT
+      - 6  TAC5X1X_GPIO_P_DOUT2        - Primary ASI DOUT2
+      - 7  TAC5X1X_GPIO_S_DOUT         - Secondary ASI DOUT
+      - 8  TAC5X1X_GPIO_S_DOUT2        - Secondary ASI DOUT2
+      - 9  TAC5X1X_GPIO_S_BCLK         - Secondary BCLK Output
+      - 10 TAC5X1X_GPIO_S_FSYNC       - Secondary FSYNC Output
+      - 11 TAC5X1X_GPIO_CLKOUT        - General Purpose Output
+      - 12 TAC5X1X_GPIO_DOUT_MUX
+      - 13 TAC5X1X_GPIO_DAISY_OUT
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    minItems: 3
+    maxItems: 3
+
+  ti,gpios-drive:
+    description: |
+      Array indicating the GPIO1, GPIO2, GPO1 Driver values
+      Each number in the array indicate the following driver values.
+      - 0 # Hi-Z Output
+      - 1 # Drive active low and active High
+      - 2 # Drive active low and weak High
+      - 3 # Drive acive low and Hi-Z
+      - 4 # Drive weak low and active High
+      - 5 # Drive Hi-Z and active High
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    minItems: 3
+    maxItems: 3
+
+  ti,gpi1-func:
+    description: GPI1 Functionality
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum:
+      - 0 # TAC5X1X_GPIO_DISABLE       - I/O buffers powered down and not used
+      - 1 # TAC5X1X_GPIO_GPI          - General purpose input
+    default: 0
+
+  '#sound-dai-cells':
+    const: 0
+
+  clocks:
+    maxItems: 1
+
+  ti,gpa-gpio:
+    description: GPA using GPIO1 configuration
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum:
+      - 0 # GPA using GPIO1 is disabled
+      - 1 # GPA using GPIO1
+    default: 0
+
+  ti,in-ch-en:
+    description: Enable Input channel diagnostics for TAC54XX and TAC53XX device.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum:
+      - 0 # Disable input channel diagnostics
+      - 1 # Enable input channel diagnostics
+
+  ti,out-ch-en:
+    description: Enable Output channel diagnostics for TAC54XX and TAC53XX device
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum:
+      - 0 # Disable Output channel diagnostics
+      - 1 # Enable Output channel Diagnostics
+
+  ti,incl-se-inm:
+    description: INxM pin Diagnostics Scan Selection for Single Ended Configuration
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum:
+      - 0 # INxM pin Diagnostics Scan Selection for Single Ended excluded for diagnosis
+      - 1 # INxM pin Diagnostics Scan Selection for Single Ended included for diagnosis
+
+  ti,incl-ac-coup:
+    description: AC coupled channels pins Scan Selection for Diagnostics
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum:
+      - 0 # AC coupled channels pins Scan Selection for Diagnostics exluded for diagnosis
+      - 1 # AC coupled channels pins Scan Selection for Diagnostics included for diagnosis
+
+  ti,micbias-threshold:
+    description: Micbias Low and High threshold values for TAC54XX and TAC53XX series
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    maxItems: 2
+    minItems: 2
+    items:
+      minimum: 72
+      maximum: 162
+
+  ti,gpa-threshold:
+    description: GPA Low and High threshold Values
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    maxItems: 2
+    minItems: 2
+    items:
+      minimum: 75
+      maximum: 186
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      tac5x1x: tac5x1x@52 {
+        compatible = "ti,tac5212";
+        reg = <0x52>;
+        #sound-dai-cells = <0>;
+        avdd-supply = <&vdd_3v3_reg>;
+        iovdd-supply = <&vdd_3v3_reg>;
+        ti,vref = <0>;
+        ti,micbias-vg = <3>;
+        ti,gpi1-func = <0>;
+        ti,gpios-func = <4>, <1>, <0>;
+        ti,gpios-drive = <0>, <0>, <0>;
+        ti,gpa-gpio = <0>;
+        ti,in-ch-en = <1>;
+        ti,out-ch-en = <1>;
+        ti,incl-ac-coup = <0>;
+        ti,incl-se-inm = <0>;
+        ti,gpa-threshold = <75>, <186>;
+      };
+    };
+...
Signature · 1 line
2.45.2
#4 lore raw

PATCH 3/4 Asoc: pcm6240: remove support for taac5x1x family

In reply to Niranjan H Y

tac5x1x codec driver suporrts tac5x1x family which includes the following ADCs and DACs. So removed the duplicate entries in the pcm6240 i2c driver.

---
 sound/soc/codecs/pcm6240.c | 124 +------------------------------------
 sound/soc/codecs/pcm6240.h |   4 --
 2 files changed, 3 insertions(+), 125 deletions(-)
sound/soc/codecs/pcm6240.c +3 -121
index 75af12231d1d..bbf3eb18bf54 100644
@@ -44,10 +44,6 @@ static const struct i2c_device_id pcmdevice_i2c_id[] = {
 	{ "pcmd3140", PCMD3140 },
 	{ "pcmd3180", PCMD3180 },
 	{ "pcmd512x", PCMD512X },
-	{ "taa5212",  TAA5212  },
-	{ "taa5412",  TAA5412  },
-	{ "tad5212",  TAD5212  },
-	{ "tad5412",  TAD5412  },
 	{}
 };
 MODULE_DEVICE_TABLE(i2c, pcmdevice_i2c_id);
@@ -442,60 +438,6 @@ static const struct pcmdevice_mixer_control pcmd3180_fine_gain_ctl[] = {
 	}
 };
 
-static const struct pcmdevice_mixer_control taa5412_digi_vol_ctl[] = {
-	{
-		.shift = 0,
-		.reg = TAA5412_REG_CH1_DIGITAL_VOLUME,
-		.max = 0xff,
-		.invert = 0,
-	},
-	{
-		.shift = 0,
-		.reg = TAA5412_REG_CH2_DIGITAL_VOLUME,
-		.max = 0xff,
-		.invert = 0,
-	},
-	{
-		.shift = 0,
-		.reg = TAA5412_REG_CH3_DIGITAL_VOLUME,
-		.max = 0xff,
-		.invert = 0,
-	},
-	{
-		.shift = 0,
-		.reg = TAA5412_REG_CH4_DIGITAL_VOLUME,
-		.max = 0xff,
-		.invert = 0,
-	}
-};
-
-static const struct pcmdevice_mixer_control taa5412_fine_gain_ctl[] = {
-	{
-		.shift = 4,
-		.reg = TAA5412_REG_CH1_FINE_GAIN,
-		.max = 0xf,
-		.invert = 0,
-	},
-	{
-		.shift = 4,
-		.reg = TAA5412_REG_CH2_FINE_GAIN,
-		.max = 0xf,
-		.invert = 0,
-	},
-	{
-		.shift = 4,
-		.reg = TAA5412_REG_CH3_FINE_GAIN,
-		.max = 0xf,
-		.invert = 4,
-	},
-	{
-		.shift = 0,
-		.reg = TAA5412_REG_CH4_FINE_GAIN,
-		.max = 0xf,
-		.invert = 4,
-	}
-};
-
 static const DECLARE_TLV_DB_MINMAX_MUTE(pcmd3140_dig_gain_tlv,
 	-10000, 2700);
 static const DECLARE_TLV_DB_MINMAX_MUTE(pcm1690_fine_dig_gain_tlv,
@@ -512,7 +454,7 @@ static const DECLARE_TLV_DB_MINMAX_MUTE(pcm6260_fgain_tlv,
 static const DECLARE_TLV_DB_LINEAR(pcm6260_chgain_tlv, 0, 4200);
 static const DECLARE_TLV_DB_MINMAX_MUTE(taa5412_dig_vol_tlv,
 	-8050, 4700);
-static const DECLARE_TLV_DB_LINEAR(taa5412_fine_gain_tlv,
+static const DECLARE_TLV_DB_LINEAR(pcmd31x0_fine_gain_tlv,
 	-80, 70);
 
 static int pcmdev_change_dev(struct pcmdevice_priv *pcm_priv,
@@ -981,7 +923,7 @@ static const struct pcmdev_ctrl_info pcmdev_gain_ctl_info[][2] = {
 	// PCMD3140
 	{
 		{
-			.gain = taa5412_fine_gain_tlv,
+			.gain = pcmd31x0_fine_gain_tlv,
 			.pcmdev_ctrl = pcmd3140_fine_gain_ctl,
 			.ctrl_array_size = ARRAY_SIZE(pcmd3140_fine_gain_ctl),
 			.get = pcmdevice_get_volsw,
@@ -1000,7 +942,7 @@ static const struct pcmdev_ctrl_info pcmdev_gain_ctl_info[][2] = {
 	// PCMD3180
 	{
 		{
-			.gain = taa5412_fine_gain_tlv,
+			.gain = pcmd31x0_fine_gain_tlv,
 			.pcmdev_ctrl = pcmd3180_fine_gain_ctl,
 			.ctrl_array_size = ARRAY_SIZE(pcmd3180_fine_gain_ctl),
 			.get = pcmdevice_get_volsw,
@@ -1025,62 +967,6 @@ static const struct pcmdev_ctrl_info pcmdev_gain_ctl_info[][2] = {
 			.ctrl_array_size = 0,
 		},
 	},
-	// TAA5212
-	{
-		{
-			.gain = taa5412_fine_gain_tlv,
-			.pcmdev_ctrl = taa5412_fine_gain_ctl,
-			.ctrl_array_size = ARRAY_SIZE(taa5412_fine_gain_ctl),
-			.get = pcmdevice_get_volsw,
-			.put = pcmdevice_put_volsw,
-			.pcmdev_ctrl_name_id = 2,
-		},
-		{
-			.gain = taa5412_dig_vol_tlv,
-			.pcmdev_ctrl = taa5412_digi_vol_ctl,
-			.ctrl_array_size = ARRAY_SIZE(taa5412_digi_vol_ctl),
-			.get = pcmdevice_get_volsw,
-			.put = pcmdevice_put_volsw,
-			.pcmdev_ctrl_name_id = 1,
-		},
-	},
-	// TAA5412
-	{
-		{
-			.gain = taa5412_fine_gain_tlv,
-			.pcmdev_ctrl = taa5412_fine_gain_ctl,
-			.ctrl_array_size = ARRAY_SIZE(taa5412_fine_gain_ctl),
-			.get = pcmdevice_get_volsw,
-			.put = pcmdevice_put_volsw,
-			.pcmdev_ctrl_name_id = 2,
-		},
-		{
-			.gain = taa5412_dig_vol_tlv,
-			.pcmdev_ctrl = taa5412_digi_vol_ctl,
-			.ctrl_array_size = ARRAY_SIZE(taa5412_digi_vol_ctl),
-			.get = pcmdevice_get_volsw,
-			.put = pcmdevice_put_volsw,
-			.pcmdev_ctrl_name_id = 1,
-		},
-	},
-	// TAD5212
-	{
-		{
-			.ctrl_array_size = 0,
-		},
-		{
-			.ctrl_array_size = 0,
-		},
-	},
-	// TAD5412
-	{
-		{
-			.ctrl_array_size = 0,
-		},
-		{
-			.ctrl_array_size = 0,
-		},
-	},
 };
 
 static int pcmdev_dev_bulk_write(struct pcmdevice_priv *pcm_dev,
@@ -2002,10 +1888,6 @@ static const struct of_device_id pcmdevice_of_match[] = {
 	{ .compatible = "ti,pcmd3140" },
 	{ .compatible = "ti,pcmd3180" },
 	{ .compatible = "ti,pcmd512x" },
-	{ .compatible = "ti,taa5212"  },
-	{ .compatible = "ti,taa5412"  },
-	{ .compatible = "ti,tad5212"  },
-	{ .compatible = "ti,tad5412"  },
 	{},
 };
 MODULE_DEVICE_TABLE(of, pcmdevice_of_match);
sound/soc/codecs/pcm6240.h +0 -4
index 2d8f9e798139..86b1ef734a3d 100644
@@ -33,10 +33,6 @@ enum pcm_device {
 	PCMD3140,
 	PCMD3180,
 	PCMD512X,
-	TAA5212,
-	TAA5412,
-	TAD5212,
-	TAD5412,
 	MAX_DEVICE,
 };
 
Signature · 1 line
2.45.2
#5 lore raw

PATCH 4/4 ASoc: pcm6240: dt-bindings device support list update

In reply to Niranjan H Y

Removed taa* and tad* device from the support list as these devices are supported by tac5x1x codec driver

---
 .../devicetree/bindings/sound/ti,pcm6240.yaml          | 10 ----------
 1 file changed, 10 deletions(-)
Documentation/devicetree/bindings/sound/ti,pcm6240.yaml +0 -10
index d89b4255b51c..b0d5f57dc0f5 100644
@@ -29,8 +29,6 @@ description: |
     https://www.ti.com/lit/gpn/pcm9211
     https://www.ti.com/lit/gpn/pcmd3140
     https://www.ti.com/lit/gpn/pcmd3180
-    https://www.ti.com/lit/gpn/taa5212
-    https://www.ti.com/lit/gpn/tad5212
 
 properties:
   compatible:
@@ -81,10 +79,6 @@ properties:
       ti,pcmd3180: Eight-channel pulse-density-modulation input to TDM or
       I2S output converter.
 
-      ti,taa5212: Low-power high-performance stereo audio ADC with 118-dB
-      dynamic range.
-
-      ti,tad5212: Low-power stereo audio DAC with 120-dB dynamic range.
     oneOf:
       - items:
           - enum:
@@ -98,8 +92,6 @@ properties:
           - enum:
               - ti,pcmd512x
               - ti,pcm9211
-              - ti,taa5212
-              - ti,tad5212
           - const: ti,adc6120
       - items:
           - enum:
@@ -114,8 +106,6 @@ properties:
               - ti,pcmd3140
               - ti,pcmd3180
               - ti,pcm1690
-              - ti,taa5412
-              - ti,tad5412
           - const: ti,pcm6240
       - enum:
           - ti,adc6120
Signature · 1 line
2.45.2