linux/drivers/staging/greybus/audio_module.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Greybus audio driver
 * Copyright 2015 Google Inc.
 * Copyright 2015 Linaro Ltd.
 */
#include <linux/kernel.h>
#include <linux/module.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>

#include "audio_codec.h"
#include "audio_apbridgea.h"
#include "audio_manager.h"

/*
 * gb_snd management functions
 */

static int gbaudio_request_jack(struct gbaudio_module_info *module,
				struct gb_audio_jack_event_request *req)
{}

static int gbaudio_request_button(struct gbaudio_module_info *module,
				  struct gb_audio_button_event_request *req)
{}

static int gbaudio_request_stream(struct gbaudio_module_info *module,
				  struct gb_audio_streaming_event_request *req)
{}

static int gbaudio_codec_request_handler(struct gb_operation *op)
{}

static int gb_audio_add_mgmt_connection(struct gbaudio_module_info *gbmodule,
					struct greybus_descriptor_cport *cport_desc,
					struct gb_bundle *bundle)
{}

static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule,
					struct greybus_descriptor_cport *cport_desc,
					struct gb_bundle *bundle)
{}

/*
 * This is the basic hook get things initialized and registered w/ gb
 */

static int gb_audio_probe(struct gb_bundle *bundle,
			  const struct greybus_bundle_id *id)
{}

static void gb_audio_disconnect(struct gb_bundle *bundle)
{}

static const struct greybus_bundle_id gb_audio_id_table[] =;
MODULE_DEVICE_TABLE(greybus, gb_audio_id_table);

#ifdef CONFIG_PM
static int gb_audio_suspend(struct device *dev)
{}

static int gb_audio_resume(struct device *dev)
{}
#endif

static const struct dev_pm_ops gb_audio_pm_ops =;

static struct greybus_driver gb_audio_driver =;
module_greybus_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_ALIAS();