Merge "f_audio_source: Use f_audiosource as first device name"
This commit is contained in:
commit
008dfbc55c
1 changed files with 7 additions and 1 deletions
|
@ -1050,8 +1050,14 @@ static struct usb_function_instance *audio_source_alloc_inst(void)
|
||||||
config_group_init_type_name(&fi_audio->func_inst.group, "",
|
config_group_init_type_name(&fi_audio->func_inst.group, "",
|
||||||
&audio_source_func_type);
|
&audio_source_func_type);
|
||||||
|
|
||||||
|
if (!count) {
|
||||||
|
snprintf(device_name, AUDIO_SOURCE_DEV_NAME_LENGTH,
|
||||||
|
"f_audio_source");
|
||||||
|
count++;
|
||||||
|
} else {
|
||||||
snprintf(device_name, AUDIO_SOURCE_DEV_NAME_LENGTH,
|
snprintf(device_name, AUDIO_SOURCE_DEV_NAME_LENGTH,
|
||||||
"f_audio_source%d", count++);
|
"f_audio_source%d", count++);
|
||||||
|
}
|
||||||
|
|
||||||
dev = create_function_device(device_name);
|
dev = create_function_device(device_name);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue