Lines Matching +full:5 +full:mm
99 #define D_DESC (1<<5)
127 __u8 data[4]; /* Data mode: Time slots 5-8 */
146 #define CS4215_RSRVD_1 (1<<5)
164 /* { NA, (1 << 4), (5 << 3) }, */
172 { 44100, (2 << 4), (5 << 3) },
198 /* Time Slot 5, Parallel Port Register */
213 /* Time Slot 5, Output Setting */
226 #define CS4215_OVR (1<<5) /* 1: Over range condition occurred */
319 struct cs4215 mm; /* mmcodec special info */ member
334 #define D_N (1<<5) /* Permit activation of the NT interface */
353 #define D_ENPIO1 (1<<5) /* Enable Pin 1 */
411 #define D_DTS_PRVOUT(v) ((v)<<5) /* Previous Out Pipe */
421 #define D_TS_MON(v) ((v)<<5) /* Monitor Pipe */
444 #define D_NT_RLB(v) ((v)<<5) /* Remote Loopback */
479 #define D_INTR_EOL 5 /* End of List */
507 #define D_P_5 5 /* CHI receive data */
558 #define DBRI_RD_ABT (1 << 5) /* Abort: frame aborted */
1325 * Pipe 20: Send timeslots 5-8 (part of ctrl data) in cs4215_setup_pipes()
1328 * interrupt, and the rest of the data (slot 5 and 8) is in cs4215_setup_pipes()
1332 * Pipe 17: Send timeslots 1-4 (slots 5-8 are read only) in cs4215_setup_pipes()
1350 static int cs4215_init_data(struct cs4215 *mm) in cs4215_init_data() argument
1355 * Data Time Slot 5-8 in cs4215_init_data()
1359 mm->data[0] = CS4215_LO(0x20) | CS4215_HE | CS4215_LE; in cs4215_init_data()
1360 mm->data[1] = CS4215_RO(0x20) | CS4215_SE; in cs4215_init_data()
1361 mm->data[2] = CS4215_LG(0x8) | CS4215_IS | CS4215_PIO0 | CS4215_PIO1; in cs4215_init_data()
1362 mm->data[3] = CS4215_RG(0x8) | CS4215_MA(0xf); in cs4215_init_data()
1371 mm->ctrl[0] = CS4215_RSRVD_1 | CS4215_MLB; in cs4215_init_data()
1372 mm->ctrl[1] = CS4215_DFR_ULAW | CS4215_FREQ[0].csval; in cs4215_init_data()
1373 mm->ctrl[2] = CS4215_XCLK | CS4215_BSEL_128 | CS4215_FREQ[0].xtal; in cs4215_init_data()
1374 mm->ctrl[3] = 0; in cs4215_init_data()
1376 mm->status = 0; in cs4215_init_data()
1377 mm->version = 0xff; in cs4215_init_data()
1378 mm->precision = 8; /* For ULAW */ in cs4215_init_data()
1379 mm->channels = 1; in cs4215_init_data()
1387 dbri->mm.data[0] |= 63; in cs4215_setdata()
1388 dbri->mm.data[1] |= 63; in cs4215_setdata()
1389 dbri->mm.data[2] &= ~15; in cs4215_setdata()
1390 dbri->mm.data[3] &= ~15; in cs4215_setdata()
1397 dbri->mm.data[0] &= ~0x3f; /* Reset the volume bits */ in cs4215_setdata()
1398 dbri->mm.data[1] &= ~0x3f; in cs4215_setdata()
1399 dbri->mm.data[0] |= (DBRI_MAX_VOLUME - left_gain); in cs4215_setdata()
1400 dbri->mm.data[1] |= (DBRI_MAX_VOLUME - right_gain); in cs4215_setdata()
1406 dbri->mm.data[2] |= CS4215_LG(left_gain); in cs4215_setdata()
1407 dbri->mm.data[3] |= CS4215_RG(right_gain); in cs4215_setdata()
1410 xmit_fixed(dbri, 20, *(int *)dbri->mm.data); in cs4215_setdata()
1423 dbri->mm.channels, dbri->mm.precision); in cs4215_open()
1435 * Pipe 20: Send timeslots 5-8 (part of ctrl data) in cs4215_open()
1438 * interrupt, and the rest of the data (slot 5 and 8) is in cs4215_open()
1452 (dbri->mm.onboard ? D_PIO0 : D_PIO2), dbri->regs + REG2); in cs4215_open()
1462 data_width = dbri->mm.channels * dbri->mm.precision; in cs4215_open()
1464 link_time_slot(dbri, 4, 16, 16, data_width, dbri->mm.offset); in cs4215_open()
1465 link_time_slot(dbri, 20, 4, 16, 32, dbri->mm.offset + 32); in cs4215_open()
1466 link_time_slot(dbri, 6, 16, 16, data_width, dbri->mm.offset); in cs4215_open()
1467 link_time_slot(dbri, 21, 6, 16, 16, dbri->mm.offset + 40); in cs4215_open()
1499 val = D_ENPIO | D_PIO1 | (dbri->mm.onboard ? D_PIO0 : D_PIO2); in cs4215_setctrl()
1531 * Pipe 17: Send timeslots 1-4 (slots 5-8 are read only) in cs4215_setctrl()
1536 link_time_slot(dbri, 17, 16, 16, 32, dbri->mm.offset); in cs4215_setctrl()
1537 link_time_slot(dbri, 18, 16, 16, 8, dbri->mm.offset); in cs4215_setctrl()
1538 link_time_slot(dbri, 19, 18, 16, 8, dbri->mm.offset + 48); in cs4215_setctrl()
1542 dbri->mm.ctrl[0] &= ~CS4215_CLB; in cs4215_setctrl()
1543 xmit_fixed(dbri, 17, *(int *)dbri->mm.ctrl); in cs4215_setctrl()
1551 for (i = 10; ((dbri->mm.status & 0xe4) != 0x20); --i) in cs4215_setctrl()
1556 dbri->mm.status); in cs4215_setctrl()
1568 dbri->mm.ctrl[0] |= CS4215_CLB; in cs4215_setctrl()
1569 xmit_fixed(dbri, 17, *(int *)dbri->mm.ctrl); in cs4215_setctrl()
1603 dbri->mm.ctrl[1] = CS4215_DFR_ULAW; in cs4215_prepare()
1604 dbri->mm.precision = 8; in cs4215_prepare()
1607 dbri->mm.ctrl[1] = CS4215_DFR_ALAW; in cs4215_prepare()
1608 dbri->mm.precision = 8; in cs4215_prepare()
1611 dbri->mm.ctrl[1] = CS4215_DFR_LINEAR8; in cs4215_prepare()
1612 dbri->mm.precision = 8; in cs4215_prepare()
1615 dbri->mm.ctrl[1] = CS4215_DFR_LINEAR16; in cs4215_prepare()
1616 dbri->mm.precision = 16; in cs4215_prepare()
1624 dbri->mm.ctrl[1] |= CS4215_FREQ[freq_idx].csval; in cs4215_prepare()
1625 dbri->mm.ctrl[2] = CS4215_XCLK | in cs4215_prepare()
1628 dbri->mm.channels = channels; in cs4215_prepare()
1630 dbri->mm.ctrl[1] |= CS4215_DFR_STEREO; in cs4215_prepare()
1650 dbri->mm.onboard = 1; in cs4215_init()
1654 dbri->mm.onboard = 0; in cs4215_init()
1669 cs4215_init_data(&dbri->mm); in cs4215_init()
1672 recv_fixed(dbri, 18, &dbri->mm.status); in cs4215_init()
1673 recv_fixed(dbri, 19, &dbri->mm.version); in cs4215_init()
1675 dbri->mm.offset = dbri->mm.onboard ? 0 : 8; in cs4215_init()
1676 if (cs4215_setctrl(dbri) == -1 || dbri->mm.version == 0xff) { in cs4215_init()
1678 dbri->mm.offset); in cs4215_init()
1681 dprintk(D_MM, "Found CS4215 at offset %d\n", dbri->mm.offset); in cs4215_init()
1851 dprintk(D_CMD, "INTR: Command: %-5s Value:%d\n", in dbri_process_one_interrupt()
2346 (dbri->mm.data[elem] >> shift) & mask; in snd_cs4215_get_single()
2349 (dbri->mm.ctrl[elem - 4] >> shift) & mask; in snd_cs4215_get_single()
2377 dbri->mm.data[elem] = (dbri->mm.data[elem] & in snd_cs4215_put_single()
2379 changed = (val != dbri->mm.data[elem]); in snd_cs4215_put_single()
2381 dbri->mm.ctrl[elem - 4] = (dbri->mm.ctrl[elem - 4] & in snd_cs4215_put_single()
2383 changed = (val != dbri->mm.ctrl[elem - 4]); in snd_cs4215_put_single()
2387 "mixer-value=%ld, mm-value=0x%x\n", in snd_cs4215_put_single()
2389 dbri->mm.data[elem & 3]); in snd_cs4215_put_single()
2435 CS4215_SINGLE("High Pass Filter switch", 5, 7, 1, 0)
2648 dbri->irq, op->dev.of_node->name[9], dbri->mm.version); in dbri_probe()