.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Programming the mspx4xx sound processor family |
---|
3 | 4 | * |
---|
.. | .. |
---|
11 | 12 | * |
---|
12 | 13 | * FM-Mono |
---|
13 | 14 | * should work. The stereo modes are backward compatible to FM-mono, |
---|
14 | | - * therefore FM-Mono should be allways available. |
---|
| 15 | + * therefore FM-Mono should be always available. |
---|
15 | 16 | * |
---|
16 | 17 | * FM-Stereo (B/G, used in germany) |
---|
17 | 18 | * should work, with autodetect |
---|
.. | .. |
---|
29 | 30 | * |
---|
30 | 31 | * 980623 Thomas Sailer (sailer@ife.ee.ethz.ch) |
---|
31 | 32 | * using soundcore instead of OSS |
---|
32 | | - * |
---|
33 | | - * This program is free software; you can redistribute it and/or |
---|
34 | | - * modify it under the terms of the GNU General Public License |
---|
35 | | - * as published by the Free Software Foundation; either version 2 |
---|
36 | | - * of the License, or (at your option) any later version. |
---|
37 | | - * |
---|
38 | | - * This program is distributed in the hope that it will be useful, |
---|
39 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
40 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
41 | | - * GNU General Public License for more details. |
---|
42 | 33 | */ |
---|
43 | 34 | |
---|
44 | 35 | |
---|
.. | .. |
---|
688 | 679 | #endif |
---|
689 | 680 | |
---|
690 | 681 | if (!id) |
---|
691 | | - strlcpy(client->name, "msp3400", sizeof(client->name)); |
---|
| 682 | + strscpy(client->name, "msp3400", sizeof(client->name)); |
---|
692 | 683 | |
---|
693 | 684 | if (msp_reset(client) == -1) { |
---|
694 | 685 | dev_dbg_lvl(&client->dev, 1, msp_debug, "msp3400 not found\n"); |
---|
.. | .. |
---|
703 | 694 | v4l2_i2c_subdev_init(sd, client, &msp_ops); |
---|
704 | 695 | |
---|
705 | 696 | #if defined(CONFIG_MEDIA_CONTROLLER) |
---|
706 | | - state->pads[IF_AUD_DEC_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK; |
---|
707 | | - state->pads[IF_AUD_DEC_PAD_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
| 697 | + state->pads[MSP3400_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK; |
---|
| 698 | + state->pads[MSP3400_PAD_IF_INPUT].sig_type = PAD_SIGNAL_AUDIO; |
---|
| 699 | + state->pads[MSP3400_PAD_OUT].flags = MEDIA_PAD_FL_SOURCE; |
---|
| 700 | + state->pads[MSP3400_PAD_OUT].sig_type = PAD_SIGNAL_AUDIO; |
---|
708 | 701 | |
---|
709 | 702 | sd->entity.function = MEDIA_ENT_F_IF_AUD_DECODER; |
---|
710 | 703 | |
---|