/* Copyright (c) 2010, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include #include #include #include #include #include #include #include #include #include long mp3_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { MM_DBG("mp3_ioctl() cmd = %d\b", cmd); return -EINVAL; } void audpp_cmd_cfg_mp3_params(struct audio *audio) { struct audpp_cmd_cfg_adec_params_mp3 cmd; memset(&cmd, 0, sizeof(cmd)); cmd.common.cmd_id = AUDPP_CMD_CFG_ADEC_PARAMS; cmd.common.length = AUDPP_CMD_CFG_ADEC_PARAMS_MP3_LEN; cmd.common.dec_id = audio->dec_id; cmd.common.input_sampling_frequency = audio->out_sample_rate; audpp_send_queue2(&cmd, sizeof(cmd)); }