/* Helper function for getting the audio_dev_data by the interface number. 
This function searches through all audio devices the one with given interface number and returns the audio_dev_data structure for this device. */
static struct usb_audio_dev_data* get_audio_dev_data_by_iface(uint8_t interface)
/* Helper function for getting the audio_dev_data by the interface number. 
This function searches through all audio devices the one with given interface number and returns the audio_dev_data structure for this device. */
static struct usb_audio_dev_data* get_audio_dev_data_by_iface(uint8_t interface)
{
	struct usb_dev_data *dev_data;
	struct usb_audio_dev_data *audio_dev_data;
	SYS_SLIST_FOR_EACH_CONTAINER(&usb_audio_data_devlist, dev_data, node) {
		audio_dev_data = CONTAINER_OF(dev_data,
					      struct usb_audio_dev_data,
					      common);
		if (is_interface_valid(audio_dev_data, interface)) {
			return audio_dev_data;
		}
	}
	return NULL;
}