Commit 8f4e334
Soundwire: add sdw_slave_get_scale_index helper
Currently, we only set peripheral frequency when the peripheral is
initialized. However, curr_dr_freq may change to get required bandwidth.
For example, curr_dr_freq may increase from 4.8MHz to 9.6MHz when the
4th stream is opened. Add a helper to get the scale index so that we can
get the scale index and program it.
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20241218080155.102405-7-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent fdd1fae commit 8f4e334
2 files changed
Lines changed: 36 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | | - | |
| 1279 | + | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | 1285 | | |
1297 | 1286 | | |
1298 | 1287 | | |
| |||
1311 | 1300 | | |
1312 | 1301 | | |
1313 | 1302 | | |
1314 | | - | |
| 1303 | + | |
1315 | 1304 | | |
1316 | 1305 | | |
1317 | | - | |
| 1306 | + | |
1318 | 1307 | | |
1319 | 1308 | | |
1320 | | - | |
| 1309 | + | |
1321 | 1310 | | |
1322 | 1311 | | |
1323 | | - | |
| 1312 | + | |
1324 | 1313 | | |
1325 | 1314 | | |
1326 | | - | |
| 1315 | + | |
1327 | 1316 | | |
1328 | 1317 | | |
1329 | 1318 | | |
| |||
1354 | 1343 | | |
1355 | 1344 | | |
1356 | 1345 | | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1357 | 1374 | | |
1358 | 1375 | | |
1359 | 1376 | | |
| |||
1373 | 1390 | | |
1374 | 1391 | | |
1375 | 1392 | | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | 1393 | | |
1381 | 1394 | | |
1382 | 1395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| 1055 | + | |
| 1056 | + | |
1055 | 1057 | | |
1056 | 1058 | | |
1057 | 1059 | | |
| |||
0 commit comments