dvb-core: set default properties of ISDB-S

Message ID 1414324874-16417-1-git-send-email-tskd08@gmail.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

Akihiro TSUKADA Oct. 26, 2014, 12:01 p.m. UTC
  From: Akihiro Tsukada <tskd08@gmail.com>

delsys-fixed props should be set in dvb-core instead of in each driver.
---
 drivers/media/dvb-core/dvb_frontend.c | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Antti Palosaari Oct. 26, 2014, 12:13 p.m. UTC | #1
Moikka
How is channel bandwidth defined? Is it static? 38961000 Hz?

regards
Antti

On 10/26/2014 02:01 PM, tskd08@gmail.com wrote:
> From: Akihiro Tsukada <tskd08@gmail.com>
>
> delsys-fixed props should be set in dvb-core instead of in each driver.
> ---
>   drivers/media/dvb-core/dvb_frontend.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
> index c862ad7..1e9b814 100644
> --- a/drivers/media/dvb-core/dvb_frontend.c
> +++ b/drivers/media/dvb-core/dvb_frontend.c
> @@ -962,6 +962,10 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
>   	case SYS_ATSC:
>   		c->modulation = VSB_8;
>   		break;
> +	case SYS_ISDBS:
> +		c->symbol_rate = 28860000;
> +		c->rolloff = ROLLOFF_35;
> +		break;
>   	default:
>   		c->modulation = QAM_AUTO;
>   		break;
> @@ -2074,6 +2078,7 @@ static int dtv_set_frontend(struct dvb_frontend *fe)
>   		break;
>   	case SYS_DVBS:
>   	case SYS_TURBO:
> +	case SYS_ISDBS:
>   		rolloff = 135;
>   		break;
>   	case SYS_DVBS2:
>
  
Akihiro TSUKADA Oct. 27, 2014, 12:15 p.m. UTC | #2
On 2014?10?27? 01:33, Antti Palosaari wrote:
> You should calculate bw too as tuners needs set filters according to
> used channel bw. You could calculate nominal needed be using formula:
> bandwidth = roll-off factor * symbol rate

I'll include it in the next version.
thx
--
Akihiro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  

Patch

diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index c862ad7..1e9b814 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -962,6 +962,10 @@  static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
 	case SYS_ATSC:
 		c->modulation = VSB_8;
 		break;
+	case SYS_ISDBS:
+		c->symbol_rate = 28860000;
+		c->rolloff = ROLLOFF_35;
+		break;
 	default:
 		c->modulation = QAM_AUTO;
 		break;
@@ -2074,6 +2078,7 @@  static int dtv_set_frontend(struct dvb_frontend *fe)
 		break;
 	case SYS_DVBS:
 	case SYS_TURBO:
+	case SYS_ISDBS:
 		rolloff = 135;
 		break;
 	case SYS_DVBS2: