Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3ca2392 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa
Browse files

f_audio_source: Use f_audiosource as first device name



Keep first instance name as f_audiosource and change name
for next intance as per number of instance.

Change-Id: I9888d10e1faceff16f950f20ac42261417f1d8e8
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 84822319
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1029,8 +1029,14 @@ static struct usb_function_instance *audio_source_alloc_inst(void)
	config_group_init_type_name(&fi_audio->func_inst.group, "",
						&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,
					"f_audio_source%d", count++);
	}

	dev = create_function_device(device_name);