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

Commit ccadffa0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: add SBC support for BT sink mode"

parents 67a099c6 f4fd5f33
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3541,6 +3541,10 @@ static int q6afe_send_dec_config(u16 port_id,
		media_type.sample_rate =
			cfg->data.aac_config.sample_rate;
		break;
	case ASM_MEDIA_FMT_SBC:
		media_type.sample_rate =
			cfg->data.sbc_config.sample_rate;
		break;
	default:
		media_type.sample_rate =
			afe_config.slim_sch.sample_rate;
+16 −2
Original line number Diff line number Diff line
@@ -4311,9 +4311,23 @@ struct afe_port_media_type_t {
 * #ASM_MEDIA_FMT_SBC media format.
 */
struct asm_sbc_dec_cfg_t {
	/* All configuration is extracted from the stream */
} __packed;
	uint16_t          channels;
	/*
	 * Number of channels present in the SBC stream.
	 *
	 * @values
	 * - 1 -- Mono
	 * - 2 -- Stereo
	 */

	uint32_t          sample_rate;
	/*
	 * Number of samples per second.
	 *
	 * @values 8000, 11025, 12000, 16000, 22050, 24000, 32000,
	 *         44100, 48000, 64000, 88200, 96000 Hz
	 */
} __packed;
/*
 * Payload of the MP3 decoder configuration parameters in the
 * #ASM_MEDIA_FMT_MP3 media format.