122
122
char device[20], line[100], ab[100];
124
sprintf(device, "%s%d", INIT_FILE, unit);
124
snprintf(device, sizeof(device), "%s%d", INIT_FILE, unit);
125
125
if ((fd = fopen(device, "r")) == NULL) {
126
126
printf("audio_config_read: <%s> NO\n", device);
127
sprintf(device, "%s.%d", INIT_FILE, unit);
127
snprintf(device, sizeof(device), "%s.%d", INIT_FILE,
128
129
if ((fd = fopen(device, "r")) == NULL) {
129
130
printf("audio_config_read: <%s> NO\n", device);
130
sprintf(device, "%s.%d", INIT_FILE, unit);
131
snprintf(device, sizeof(device), "%s",
131
133
if ((fd = fopen(device, "r")) == NULL) {
132
printf("audio_config_read: <%s> NO\n", device);
134
printf("audio_config_read: <%s> NO\n",
235
238
#ifdef PCM_STYLE_SOUND
236
(void)sprintf(actl_dev, ACTL_DEV, unit);
239
snprintf(actl_dev, sizeof(actl_dev), ACTL_DEV, unit);
238
241
audio_config_read(unit, &actl, &dname);
239
242
/* If we have values for cf_c_dev or cf_i_dev, use them. */