forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request thesofproject#4 from nashif/update_1
- Loading branch information
Showing
230 changed files
with
2,855 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule rimage
updated
8 files
+1 −0 | .gitignore | |
+5 −6 | README.md | |
+0 −54 | config/jsl.toml | |
+1 −0 | config/jsl.toml | |
+1 −0 | config/tgl-h.toml | |
+4 −0 | src/adsp_config.c | |
+10 −0 | src/include/rimage/rimage.h | |
+11 −7 | src/manifest.c | |
+200 −1 | src/pkcs1_5.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// | ||
// Copyright 2020 NXP | ||
// | ||
// Author: Daniel Baluta <daniel.baluta@nxp.com> | ||
// | ||
// Dummy codec implementation to demonstrate Codec Adapter API | ||
|
||
#include <sof/audio/codec_adapter/codec/generic.h> | ||
#include <sof/audio/codec_adapter/codec/dummy.h> | ||
|
||
int dummy_codec_init(struct comp_dev *dev) | ||
{ | ||
comp_info(dev, "dummy_codec_init() start"); | ||
return 0; | ||
} | ||
|
||
int dummy_codec_prepare(struct comp_dev *dev) | ||
{ | ||
struct codec_data *codec = comp_get_codec(dev); | ||
struct comp_data *cd = comp_get_drvdata(dev); | ||
|
||
comp_info(dev, "dummy_codec_process()"); | ||
|
||
codec->cpd.in_buff = rballoc(0, SOF_MEM_CAPS_RAM, cd->period_bytes); | ||
if (!codec->cpd.in_buff) { | ||
comp_err(dev, "dummy_codec_prepare(): Failed to alloc in_buff"); | ||
return -ENOMEM; | ||
} | ||
codec->cpd.in_buff_size = cd->period_bytes; | ||
|
||
codec->cpd.out_buff = rballoc(0, SOF_MEM_CAPS_RAM, cd->period_bytes); | ||
if (!codec->cpd.out_buff) { | ||
comp_err(dev, "dummy_codec_prepare(): Failed to alloc out_buff"); | ||
rfree(codec->cpd.in_buff); | ||
return -ENOMEM; | ||
} | ||
codec->cpd.out_buff_size = cd->period_bytes; | ||
|
||
return 0; | ||
} | ||
|
||
int dummy_codec_process(struct comp_dev *dev) | ||
{ | ||
struct codec_data *codec = comp_get_codec(dev); | ||
struct comp_data *cd = comp_get_drvdata(dev); | ||
|
||
comp_dbg(dev, "dummy_codec_process()"); | ||
|
||
memcpy_s(codec->cpd.out_buff, codec->cpd.out_buff_size, | ||
codec->cpd.in_buff, codec->cpd.in_buff_size); | ||
codec->cpd.produced = cd->period_bytes; | ||
|
||
return 0; | ||
} | ||
|
||
int dummy_codec_apply_config(struct comp_dev *dev) | ||
{ | ||
comp_info(dev, "dummy_codec_apply_config()"); | ||
|
||
/* nothing to do */ | ||
return 0; | ||
} | ||
|
||
int dummy_codec_reset(struct comp_dev *dev) | ||
{ | ||
comp_info(dev, "dummy_codec_reset()"); | ||
|
||
/* nothing to do */ | ||
return 0; | ||
} | ||
|
||
int dummy_codec_free(struct comp_dev *dev) | ||
{ | ||
struct codec_data *codec = comp_get_codec(dev); | ||
|
||
comp_info(dev, "dummy_codec_free()"); | ||
|
||
rfree(codec->cpd.in_buff); | ||
rfree(codec->cpd.out_buff); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.